Skip to content

Commit 4e3e90c

Browse files
authored
Merge branch 'main' into lesson03_new
2 parents d9e4908 + c565a4f commit 4e3e90c

File tree

4 files changed

+139
-1
lines changed

4 files changed

+139
-1
lines changed

lesson_03/quiz/quiz.yaml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ quiz:
66
anotherone:
77
- $2y$10$8eHSzy3aCu4Ry3LzO9nWCeGpofSxsNVbnF.wCfn3ZADwQ6MEtN/KK
88
- $2y$10$dGB0CGv7.XQC5OqfyY6iXOiJsdVyxU3ve5YE0gt4m2I8P8H13lNXa
9+
chigazograham:
10+
- $2y$10$OTnSih9kHykUnsuM/YKufu3MXTpOZrif.dL13XwXt8rquJL4mV.m.
11+
- $2y$10$je60MntrKRBd/1tz7hNUY.D/cyKOEM.hp6/1fVVVGJRIIitmUGI5e
12+
- $2y$10$pPTmEp0acs8.NIAamLpmmuF7B72bXFZsikHywQI/JvfXuySkhHH5S
913
oyeyemijimoh:
1014
- $2y$10$2LlSxAEM1HmR3Wl2fO6LQueu/77spr5SuWAh4b3MKesIWNy3CFjGe
1115
- $2y$10$csA90DFxK7.uq6dSfS06Yukk5fQPrzLvU2Lp43ArTs2za28LVvRGO
@@ -21,4 +25,9 @@ quiz:
2125
angelicacastillo:
2226
- $2y$10$MkiKfTFDIR5e4nWe3Q3XKOSEk2E06urRRykXIx/2JV6Y5j.OPIWMi
2327
- $2y$10$WsWcxQ.rCkq/WoUVMbdMNuUU8v5O9xDFpWdbWydVFu7/Ufz/8lLru
24-
- $2y$10$9FB5PKcxb5z0xijnLVnF8.127CghZcgd7.0Phn2QsWdCYBxxZWrwG
28+
- $2y$10$9FB5PKcxb5z0xijnLVnF8.127CghZcgd7.0Phn2QsWdCYBxxZWrwG
29+
amiyahjones:
30+
- $2y$10$QsN9VkjWORsKgZRiBT46VOUgc5HVnswKAT4uDbs7JYbTF7DdKbsw.
31+
- $2y$10$sqXEOL0L8o0kRyiAb.2s4u0RlBC2.LmOGDbGWXHj5IfBNwinkv2yq
32+
- $2y$10$HaWueXgrIzd7z8yf39HfVeTjjyr.Kgx0GFBqwCRSzW3zRSreN19yi
33+
Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
import {
2+
AnswerChoice,
3+
MultipleChoiceQuizQuestion,
4+
QuizQuestion,
5+
QuizQuestionProvider,
6+
} from 'codedifferently-instructional';
7+
8+
export class AmiyahJonesQuiz implements QuizQuestionProvider {
9+
getProviderName(): string {
10+
return 'amiyahjones';
11+
}
12+
13+
makeQuizQuestions(): QuizQuestion[] {
14+
return [
15+
AmiyahJonesQuiz.makeQuestion0(),
16+
AmiyahJonesQuiz.makeQuestion1(),
17+
AmiyahJonesQuiz.makeQuestion2(),
18+
];
19+
}
20+
21+
private static makeQuestion0(): QuizQuestion {
22+
return new MultipleChoiceQuizQuestion(
23+
0,
24+
'What two computer parts get mixed up often?',
25+
new Map<AnswerChoice, string>([
26+
[AnswerChoice.A, 'Power supply and mother board'],
27+
[AnswerChoice.B, 'Graphics card and ram'],
28+
[AnswerChoice.C, 'Ram and hard drive'],
29+
[AnswerChoice.D, 'None of them get mixed up'],
30+
]),
31+
AnswerChoice.UNANSWERED,
32+
); // Replace `UNANSWERED` with the correct answer.
33+
}
34+
35+
private static makeQuestion1(): QuizQuestion {
36+
return new MultipleChoiceQuizQuestion(
37+
1,
38+
'Which computer part figures out how everything is supposed to look on your screen?',
39+
new Map<AnswerChoice, string>([
40+
[AnswerChoice.A, 'Graphics card'],
41+
[AnswerChoice.B, 'CPU'],
42+
[AnswerChoice.C, 'Mother board'],
43+
[AnswerChoice.D, 'Ram'],
44+
]),
45+
AnswerChoice.UNANSWERED,
46+
); // Replace `UNANSWERED` with the correct answer.
47+
}
48+
49+
private static makeQuestion2(): QuizQuestion {
50+
return new MultipleChoiceQuizQuestion(
51+
2,
52+
'Which computer part houses everything?',
53+
new Map<AnswerChoice, string>([
54+
[AnswerChoice.A, 'Hard drive'],
55+
[AnswerChoice.B, 'Case'],
56+
[AnswerChoice.C, 'CPU'],
57+
[AnswerChoice.D, 'Power supply'],
58+
]),
59+
AnswerChoice.UNANSWERED,
60+
); // Replace `UNANSWERED` with the correct answer.
61+
}
62+
}
Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
import {
2+
AnswerChoice,
3+
MultipleChoiceQuizQuestion,
4+
QuizQuestion,
5+
QuizQuestionProvider,
6+
} from 'codedifferently-instructional';
7+
8+
export class ChigazoGrahamsQuiz implements QuizQuestionProvider {
9+
getProviderName(): string {
10+
return 'chigazograham';
11+
}
12+
13+
makeQuizQuestions(): QuizQuestion[] {
14+
return [
15+
ChigazoGrahamsQuiz.makeQuestion0(),
16+
ChigazoGrahamsQuiz.makeQuestion1(),
17+
ChigazoGrahamsQuiz.makeQuestion2(),
18+
];
19+
}
20+
21+
private static makeQuestion0(): QuizQuestion {
22+
return new MultipleChoiceQuizQuestion(
23+
0,
24+
'What is the sign for modulo?',
25+
new Map<AnswerChoice, string>([
26+
[AnswerChoice.A, '^'],
27+
[AnswerChoice.B, '*'],
28+
[AnswerChoice.C, '%'],
29+
[AnswerChoice.D, '//'],
30+
]),
31+
AnswerChoice.UNANSWERED,
32+
); // Provide an answer. | AnswerChoice.C, '%'
33+
}
34+
35+
private static makeQuestion1(): QuizQuestion {
36+
return new MultipleChoiceQuizQuestion(
37+
1,
38+
'Who are hip hops big three',
39+
new Map<AnswerChoice, string>([
40+
[AnswerChoice.A, 'Kendrick Lamar, J. Cole, and Drake'],
41+
[AnswerChoice.B, 'Tupac, Biggie, and Nas'],
42+
[AnswerChoice.C, 'Kanye West, Eminem, and Lil Wayne'],
43+
[AnswerChoice.D, 'K. Dot'],
44+
]),
45+
AnswerChoice.UNANSWERED,
46+
); // Provide an answer. | AnswerChoice.C, '%'
47+
}
48+
49+
private static makeQuestion2(): QuizQuestion {
50+
return new MultipleChoiceQuizQuestion(
51+
2,
52+
'what is the answer to life, the universe, and everything else?',
53+
new Map<AnswerChoice, string>([
54+
[AnswerChoice.A, '42'],
55+
[AnswerChoice.B, 'Jesus'],
56+
[AnswerChoice.C, 'N/A'],
57+
[AnswerChoice.D, 'Whatever you want it to be!'],
58+
]),
59+
AnswerChoice.UNANSWERED,
60+
); // Provide an answer. | AnswerChoice.A, '42'
61+
}
62+
}

lesson_03/quiz/src/quizzes/quizzes.module.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,11 @@ import { angelicaCquiz } from './angelica_castillo_quiz.js';
33
import { AnotherQuiz } from './another_quiz.js';
44
import { OyeyemiJimohQuiz } from './oyeyemi_jimoh_quiz.js';
55
import { AnthonyMaysQuiz } from './anthony_mays_quiz.js';
6+
import { ChigazoGrahamsQuiz } from './chigazo_graham_quiz.js';
67
import { JosephCaballeroQuiz } from './joseph_caballero_quiz.js';
78
import { YafiahAbdullahQuiz } from './yafiah_abdullah_quiz.js';
9+
import { AmiyahJonesQuiz } from './amiyah_jones_quiz.js';
10+
811
export const Quizzes = Symbol.for('Quizzes');
912

1013
// Add your quiz provider here.
@@ -16,6 +19,8 @@ const QUIZ_PROVIDERS = [
1619
JosephCaballeroQuiz,
1720
angelicaCquiz,
1821
OyeyemiJimohQuiz,
22+
ChigazoGrahamsQuiz,
23+
AmiyahJonesQuiz
1924
];
2025

2126
@Module({

0 commit comments

Comments
 (0)