Skip to content

Commit ebdbff7

Browse files
committed
finished all attributes of assignment
1 parent 3d65265 commit ebdbff7

File tree

3 files changed

+182
-1
lines changed

3 files changed

+182
-1
lines changed

lesson_03/quiz/quiz.yaml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,16 @@
11
quiz:
22
answers:
3+
devynbenson:
4+
- $2y$10$sWKccZ3ayEvVSAKCRw5sQOkQsEJK97s1oPrhISEjdNgbd/XLQAu8a
5+
- $2y$10$wf66v6SXDp5Xg4WzYqFbx.MlKTBPARrJzqe63ab04Y6KaQf89nBuq
6+
- $2y$10$PJFq7P3tjX/qKT24YrzALeh4I/YQkBG.TBDPCAkkv2QlP1B55tFse
7+
- $2y$10$XHWsHjk0xK8biSZg7PdbNuq9eTl2avpRW4SREzkfLkTHums.P9s2G
8+
- $2y$10$LArQeWWDxFYuhNh1qOsid.dnAjCxzNXo9HVa2cMXszBMNMgJW.RDq
9+
- $2y$10$T4MnX8ziY73qQTQGoVASKe.X86SW/aO0uHcq5FjF1EqBfPM2H5YSC
10+
- $2y$10$kKpASEQjfI561W9KwagMse4vkCUTam2RL11/lbWcLGy07DjLJ8UAC
11+
- $2y$10$5KNllKrKykFg5BMMq4e0v.5wYVoBnJfPquc1yejWNyT1hLF.K0n46
12+
- $2y$10$wfUOFkQbjHL/j5ozsSE3MurP966.uCsTF03SeWw2EH4ukGDEqvNXe
13+
- $2y$10$J/UxnMY4pUQyRgnCTPolWeuMi0.CNUB6MG6UUL6f0lTdLn2..OF7q
314
anthonymays:
415
- $2y$10$8eHSzy3aCu4Ry3LzO9nWCeGpofSxsNVbnF.wCfn3ZADwQ6MEtN/KK
516
- $2y$10$55EXRjF26JIgebtoH800ZOJecfefvMgHicuxf/rwTENuxiUaFQcNe
Lines changed: 164 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,164 @@
1+
import {
2+
AnswerChoice,
3+
MultipleChoiceQuizQuestion,
4+
QuizQuestion,
5+
QuizQuestionProvider,
6+
} from 'codedifferently-instructional';
7+
8+
export class DevynBensonQuiz implements QuizQuestionProvider {
9+
getProviderName(): string {
10+
return 'devynbenson';
11+
}
12+
13+
makeQuizQuestions(): QuizQuestion[] {
14+
return [
15+
DevynBensonQuiz.makeQuestion0(),
16+
DevynBensonQuiz.makeQuestion1(),
17+
DevynBensonQuiz.makeQuestion2(),
18+
DevynBensonQuiz.makeQuestion3(),
19+
DevynBensonQuiz.makeQuestion4(),
20+
DevynBensonQuiz.makeQuestion5(),
21+
DevynBensonQuiz.makeQuestion6(),
22+
DevynBensonQuiz.makeQuestion7(),
23+
DevynBensonQuiz.makeQuestion8(),
24+
DevynBensonQuiz.makeQuestion9(),
25+
];
26+
}
27+
28+
private static makeQuestion0(): QuizQuestion {
29+
return new MultipleChoiceQuizQuestion(
30+
0,
31+
'What kind of dog does Mr. Mays have?',
32+
new Map<AnswerChoice, string>([
33+
[AnswerChoice.A, 'A Weiner Dog'],
34+
[AnswerChoice.B, 'Yorkshire Terrier'],
35+
[AnswerChoice.C, 'A Golden Retriever'],
36+
[AnswerChoice.D, 'Schnauzer'],
37+
]),
38+
AnswerChoice.UNANSWERED,
39+
); // Replace `UNANSWERED` with the correct answer.
40+
}
41+
42+
private static makeQuestion1(): QuizQuestion {
43+
return new MultipleChoiceQuizQuestion(
44+
1,
45+
'Answer the blank, which is false? : Mr. Mays is very _____.',
46+
new Map<AnswerChoice, string>([
47+
[AnswerChoice.A, 'Tall'],
48+
[AnswerChoice.B, 'Handsome'],
49+
[AnswerChoice.C, 'Smart'],
50+
[AnswerChoice.D, 'Evil'],
51+
]),
52+
AnswerChoice.UNANSWERED,
53+
); // Replace `UNANSWERED` with the correct answer.
54+
}
55+
56+
private static makeQuestion2(): QuizQuestion {
57+
return new MultipleChoiceQuizQuestion(
58+
2,
59+
'What is apart of the 6 steps?',
60+
new Map<AnswerChoice, string>([
61+
[AnswerChoice.A, 'Versatility'],
62+
[AnswerChoice.B, 'Adapt'],
63+
[AnswerChoice.C, 'Do Not Communicate'],
64+
[AnswerChoice.D, 'Ask Questions'],
65+
]),
66+
AnswerChoice.UNANSWERED,
67+
); // Replace `UNANSWERED` with the correct answer.
68+
}
69+
70+
private static makeQuestion3(): QuizQuestion {
71+
return new MultipleChoiceQuizQuestion(
72+
3,
73+
'What color is the sky?',
74+
new Map<AnswerChoice, string>([
75+
[AnswerChoice.A, 'Blue'],
76+
[AnswerChoice.B, 'Violet'],
77+
[AnswerChoice.C, 'Yellow'],
78+
[AnswerChoice.D, 'Red'],
79+
]),
80+
AnswerChoice.UNANSWERED,
81+
); // Replace `UNANSWERED` with the correct answer.
82+
}
83+
private static makeQuestion4(): QuizQuestion {
84+
return new MultipleChoiceQuizQuestion(
85+
4,
86+
'How many students are in Cohort 25.2?',
87+
new Map<AnswerChoice, string>([
88+
[AnswerChoice.A, '24'],
89+
[AnswerChoice.B, '28'],
90+
[AnswerChoice.C, '27'],
91+
[AnswerChoice.D, '23'],
92+
]),
93+
AnswerChoice.UNANSWERED,
94+
); // Replace `UNANSWERED` with the correct answer.
95+
}
96+
private static makeQuestion5(): QuizQuestion {
97+
return new MultipleChoiceQuizQuestion(
98+
5,
99+
'What did Mr. Mays eat from the food truck on 08/13/25?',
100+
new Map<AnswerChoice, string>([
101+
[AnswerChoice.A, 'Cheeseteak'],
102+
[AnswerChoice.B, 'Tacos'],
103+
[AnswerChoice.C, 'Chicken Katsu'],
104+
[AnswerChoice.D, 'Loaded Fries w/ brisket'],
105+
]),
106+
AnswerChoice.UNANSWERED,
107+
); // Replace `UNANSWERED` with the correct answer.
108+
}
109+
private static makeQuestion6(): QuizQuestion {
110+
return new MultipleChoiceQuizQuestion(
111+
6,
112+
'Who did Devyn introduce for the first tech talk?',
113+
new Map<AnswerChoice, string>([
114+
[AnswerChoice.A, 'Sadiq Hook'],
115+
[AnswerChoice.B, 'Terrance Bowman'],
116+
[AnswerChoice.C, 'Tarik Hook '],
117+
[AnswerChoice.D, 'Tariq Hook'],
118+
]),
119+
AnswerChoice.UNANSWERED,
120+
); // Replace `UNANSWERED` with the correct answer.
121+
}
122+
123+
private static makeQuestion7(): QuizQuestion {
124+
return new MultipleChoiceQuizQuestion(
125+
7,
126+
'How should you brush your teeth?',
127+
new Map<AnswerChoice, string>([
128+
[AnswerChoice.A, 'With no brush'],
129+
[AnswerChoice.B, 'With a Brush, Toothpaste, and Water'],
130+
[AnswerChoice.C, 'With Water and a Brush'],
131+
[AnswerChoice.D, 'With a Brush'],
132+
]),
133+
AnswerChoice.UNANSWERED,
134+
); // Replace `UNANSWERED` with the correct answer.
135+
}
136+
137+
private static makeQuestion8(): QuizQuestion {
138+
return new MultipleChoiceQuizQuestion(
139+
8,
140+
'What is Mr. Mays\'nickname?' ,
141+
new Map<AnswerChoice, string>([
142+
[AnswerChoice.A, 'Money Mays'],
143+
[AnswerChoice.B, 'Ant Man'],
144+
[AnswerChoice.C, 'Compton Google'],
145+
[AnswerChoice.D, 'Zoogler'],
146+
]),
147+
AnswerChoice.UNANSWERED,
148+
); // Replace `UNANSWERED` with the correct answer.
149+
}
150+
151+
private static makeQuestion9(): QuizQuestion {
152+
return new MultipleChoiceQuizQuestion(
153+
9,
154+
'What team does Jordan Eldrige ',
155+
new Map<AnswerChoice, string>([
156+
[AnswerChoice.A, 'Commanders'],
157+
[AnswerChoice.B, 'Pitsburgh'],
158+
[AnswerChoice.C, 'Cowboys (aka Cowgirls)'],
159+
[AnswerChoice.D, 'Eagles'],
160+
]),
161+
AnswerChoice.UNANSWERED,
162+
); // Replace `UNANSWERED` with the correct answer.
163+
}
164+
}

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

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,17 @@ import { Module } from '@nestjs/common';
22
import { AnotherQuiz } from './another_quiz.js';
33
import { AnthonyMaysQuiz } from './anthony_mays_quiz.js';
44
import { BrooklynHardenQuiz } from './brooklyn_harden_quiz.js';
5+
import { DevynBensonQuiz } from './devyn_benson_quiz.js';
56
export const Quizzes = Symbol.for('Quizzes');
67

78
// Add your quiz provider here.
89

9-
const QUIZ_PROVIDERS = [AnthonyMaysQuiz, AnotherQuiz, BrooklynHardenQuiz];
10+
const QUIZ_PROVIDERS = [
11+
AnthonyMaysQuiz,
12+
AnotherQuiz,
13+
BrooklynHardenQuiz,
14+
DevynBensonQuiz,
15+
];
1016

1117
@Module({
1218
providers: [

0 commit comments

Comments
 (0)