Skip to content

Commit d49c5bf

Browse files
committed
R2D2
1 parent 9f4034b commit d49c5bf

File tree

3 files changed

+68
-1
lines changed

3 files changed

+68
-1
lines changed

lesson_03/quiz/quiz.yaml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,8 @@ quiz:
1717
rmill:
1818
- $2y$10$FquR69q7W4E68TX/SNCB7u8Ri0DOFRDqsUPdGfuyIBjZJRVFkNI.6
1919
- $2y$10$FSWRA7hulVpyVxd8s67Nxuq/1cdmviW24qqoUbqihBf79cR.w9yly
20-
- $2y$10$Qy1IsNsfuJvA384ypL/72uWubUuNbMRp4LD6j/LM0RIH66D/HIjF6
20+
- $2y$10$Qy1IsNsfuJvA384ypL/72uWubUuNbMRp4LD6j/LM0RIH66D/HIjF6
21+
DavisDarius:
22+
- $2y$10$s9Dh1bJak9WjT3sziuq1KeloNnDCuhgjsT6HA.m/fxjJSrJMK0lOu
23+
- $2y$10$Q58g8gsWhL1Zhje9WoLHKuqF44I3NK16i..EQ2SYVAa.PEkowhgOK
24+
- $2y$10$U3eJ/7JtxbPlofL.3K08AeKmVTKWLvyhNCcS.cgF6gNn/cmm5Psia
Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
import {
2+
AnswerChoice,
3+
MultipleChoiceQuizQuestion,
4+
QuizQuestion,
5+
QuizQuestionProvider,
6+
} from 'codedifferently-instructional';
7+
8+
export class DavisQuiz implements QuizQuestionProvider {
9+
getProviderName(): string {
10+
return 'DavisDarius';
11+
}
12+
13+
makeQuizQuestions(): QuizQuestion[] {
14+
return [
15+
DavisQuiz.makeQuestion0(),
16+
DavisQuiz.makeQuestion1(),
17+
DavisQuiz.makeQuestion2(),
18+
];
19+
}
20+
21+
private static makeQuestion0(): QuizQuestion {
22+
return new MultipleChoiceQuizQuestion(
23+
0,
24+
'What should you not be doing during a Tech Talk?',
25+
new Map<AnswerChoice, string>([
26+
[AnswerChoice.A, 'Talk Amongst Friends'],
27+
[AnswerChoice.B, 'Take Notes'],
28+
[AnswerChoice.C, 'Ask speaker questions'],
29+
[AnswerChoice.D, 'Be attentive'],
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+
'3 Levels of Tech Talk',
39+
new Map<AnswerChoice, string>([
40+
[AnswerChoice.A, 'Push, Pull, Punch'],
41+
[AnswerChoice.B, 'Pay, Listen, Persuade'],
42+
[AnswerChoice.C, 'Purpose, Prep, Show-up'],
43+
]),
44+
AnswerChoice.UNANSWERED,
45+
); // Provide an answer.
46+
}
47+
48+
private static makeQuestion2(): QuizQuestion {
49+
return new MultipleChoiceQuizQuestion(
50+
2,
51+
'During Tech Talks should you be marketing yourself to secure a job?',
52+
new Map<AnswerChoice, string>([
53+
[AnswerChoice.A, 'No'],
54+
[AnswerChoice.B, 'Yes'],
55+
[AnswerChoice.C, 'Maybe'],
56+
[AnswerChoice.D, 'IDK'],
57+
]),
58+
AnswerChoice.UNANSWERED,
59+
); // Provide an answer.
60+
}
61+
}

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import { AnthonyMaysQuiz } from './anthony_mays_quiz.js';
44
import { Jbeyquiz } from './jbeyquiz.js';
55
import { MercedesMathewsQuiz } from './mercedes_mathews_quiz.js';
66
import { RasheedMillerQuiz } from './rasheed_miller_quiz.js';
7+
import { DavisQuiz } from './Davis_quiz.js';
78

89
export const Quizzes = Symbol.for('Quizzes');
910

@@ -14,6 +15,7 @@ const QUIZ_PROVIDERS = [
1415
MercedesMathewsQuiz,
1516
Jbeyquiz,
1617
RasheedMillerQuiz,
18+
DavisQuiz,
1719
];
1820

1921
@Module({

0 commit comments

Comments
 (0)