Skip to content

Commit 9190e13

Browse files
authored
Merge branch 'main' into lj-lesson-03
2 parents aedcf20 + 03e8542 commit 9190e13

File tree

3 files changed

+68
-0
lines changed

3 files changed

+68
-0
lines changed

lesson_03/quiz/quiz.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,10 @@ quiz:
4747
- $2y$10$krHODbBQL0Z.4Me1fsRc0.XODWzJQPjrEL1xzXwDa98TPONF8OeiK
4848
- $2y$10$S5HH5Vv834yLEUO2B3hHQO9gnR.8eBMA3zDORpXFrSYzXCuDsWHN6
4949
- $2y$10$nAd2FkTtyrmhHfTlhuxPcu1tWPimr7cX9mpDSGeIweUPLafpSTeiW
50+
tommytran:
51+
- $2y$10$6Mf9m8JXRHUyCgRNPn4nceimRZVOhtmsZbOGoFnI4ZJp..RluHmwy
52+
- $2y$10$Xr6W53IVq52orDvf6.TQQuXeMGaysQdgAu1cm5DYi1NyCskG2ByPe
53+
- $2y$10$x8BG/EcIbVohTU1s/thyc.TIzlfc8f/aVZaD4/1yMpcks2OWzKKMe
5054
zionbuchanan:
5155
- $2y$10$ufNCdP1efvioBYIih6K92uye33p5ckN/IrxfCvw4n7agHjN8aNfhe
5256
- $2y$10$Mb7LA1kqlDRWlN9jdBYvF.u1B8cmJqXWkrxQeMr/3ETRVOAzFlflG

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ import { JosephCaballeroQuiz } from './joseph_caballero_quiz.js';
1010
import { LjMcwilliamsQuiz } from './lj_mcwilliams_quiz.js';
1111
import { OyeyemiJimohQuiz } from './oyeyemi_jimoh_quiz.js';
1212
import { ShawnDunsmoreQuiz } from './shawn_dunsmore_quiz.js';
13+
import { TommyTranQuiz } from './tommy.tran.quiz.js';
1314
import { XavierCruzQuiz } from './xavier_cruz_quiz.js';
1415
import { YafiahAbdullahQuiz } from './yafiah_abdullah_quiz.js';
1516
import { ZionBuchananQuiz } from './zion_buchanan_quiz.js';
@@ -32,6 +33,7 @@ const QUIZ_PROVIDERS = [
3233
XavierCruzQuiz,
3334
LjMcwilliamsQuiz,
3435
ZionBuchananQuiz,
36+
TommyTranQuiz,
3537
];
3638

3739
@Module({
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 TommyTranQuiz implements QuizQuestionProvider {
9+
getProviderName(): string {
10+
return 'tommytran';
11+
}
12+
13+
makeQuizQuestions(): QuizQuestion[] {
14+
return [
15+
TommyTranQuiz.makeQuestion0(),
16+
TommyTranQuiz.makeQuestion1(),
17+
TommyTranQuiz.makeQuestion2(),
18+
];
19+
}
20+
21+
private static makeQuestion0(): QuizQuestion {
22+
return new MultipleChoiceQuizQuestion(
23+
0,
24+
'What is the capital city of Japan?',
25+
new Map<AnswerChoice, string>([
26+
[AnswerChoice.A, 'Seoul'],
27+
[AnswerChoice.B, 'Tokyo'],
28+
[AnswerChoice.C, 'Beijing'],
29+
[AnswerChoice.D, 'Bangkok'],
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 planet is known as the "Red Planet?',
39+
new Map<AnswerChoice, string>([
40+
[AnswerChoice.A, 'Venus'],
41+
[AnswerChoice.B, 'Jupiter'],
42+
[AnswerChoice.C, 'Mars'],
43+
[AnswerChoice.D, 'Saturn'],
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+
'Who wrote the play "Romeo and Juliet?',
53+
new Map<AnswerChoice, string>([
54+
[AnswerChoice.A, 'Charles Dickens'],
55+
[AnswerChoice.B, 'William Shakespeare'],
56+
[AnswerChoice.C, 'Jane Austen'],
57+
[AnswerChoice.D, 'Mark Twain'],
58+
]),
59+
AnswerChoice.UNANSWERED,
60+
); // Replace `UNANSWERED` with the correct answer.
61+
}
62+
}

0 commit comments

Comments
 (0)