Skip to content

Commit 6edb8ac

Browse files
feat: adds Devyn's custom quiz (#134)
* finished all attributes of assignment * New Proper Course Questions * Update quizzes.module.ts --------- Co-authored-by: Anthony D. Mays <[email protected]>
1 parent 418ec40 commit 6edb8ac

File tree

3 files changed

+178
-0
lines changed

3 files changed

+178
-0
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 command is used to initialize a new Git repository?',
32+
new Map<AnswerChoice, string>([
33+
[AnswerChoice.A, 'git start'],
34+
[AnswerChoice.B, 'git create'],
35+
[AnswerChoice.C, 'git new'],
36+
[AnswerChoice.D, 'git init'],
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+
'Which of the following is NOT a basic data type in most programming languages?',
46+
new Map<AnswerChoice, string>([
47+
[AnswerChoice.A, 'Integer'],
48+
[AnswerChoice.B, 'String'],
49+
[AnswerChoice.C, 'Boolean'],
50+
[AnswerChoice.D, 'Repository'],
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 is the basic unit of computer memory?',
74+
new Map<AnswerChoice, string>([
75+
[AnswerChoice.A, 'Bit'],
76+
[AnswerChoice.B, 'Byte'],
77+
[AnswerChoice.C, 'Word'],
78+
[AnswerChoice.D, 'Block'],
79+
]),
80+
AnswerChoice.UNANSWERED,
81+
); // Replace `UNANSWERED` with the correct answer.
82+
}
83+
private static makeQuestion4(): QuizQuestion {
84+
return new MultipleChoiceQuizQuestion(
85+
4,
86+
'What does CPU stand for?',
87+
new Map<AnswerChoice, string>([
88+
[AnswerChoice.A, 'Computer Processing Unit'],
89+
[AnswerChoice.B, 'Central Program Unit'],
90+
[AnswerChoice.C, 'Core Processing Unit'],
91+
[AnswerChoice.D, 'Central Processing Unit'],
92+
]),
93+
AnswerChoice.UNANSWERED,
94+
); // Replace `UNANSWERED` with the correct answer.
95+
}
96+
private static makeQuestion5(): QuizQuestion {
97+
return new MultipleChoiceQuizQuestion(
98+
5,
99+
'Which Git command is used to create a new branch?',
100+
new Map<AnswerChoice, string>([
101+
[AnswerChoice.A, 'git new-branch'],
102+
[AnswerChoice.B, 'git create-branch'],
103+
[AnswerChoice.C, 'git make-branch'],
104+
[AnswerChoice.D, 'git branch'],
105+
]),
106+
AnswerChoice.UNANSWERED,
107+
); // Replace `UNANSWERED` with the correct answer.
108+
}
109+
private static makeQuestion6(): QuizQuestion {
110+
return new MultipleChoiceQuizQuestion(
111+
6,
112+
'What is the main purpose of GitHub?',
113+
new Map<AnswerChoice, string>([
114+
[AnswerChoice.A, 'Social networking'],
115+
[AnswerChoice.B, 'Online shopping'],
116+
[AnswerChoice.C, 'Video streaming'],
117+
[AnswerChoice.D, 'Code hosting and version control'],
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+
'Which component is considered the "brain" of the computer?',
127+
new Map<AnswerChoice, string>([
128+
[AnswerChoice.A, 'RAM'],
129+
[AnswerChoice.B, 'CPU'],
130+
[AnswerChoice.C, 'Hard Drive'],
131+
[AnswerChoice.D, 'Motherboard'],
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+
'In programming, what does "debugging" mean?',
141+
new Map<AnswerChoice, string>([
142+
[AnswerChoice.A, 'Writing new code'],
143+
[AnswerChoice.B, 'Deleting old files'],
144+
[AnswerChoice.C, 'Finding and fixing errors in code'],
145+
[AnswerChoice.D, 'Compiling code'],
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 does RAM stand for in computer architecture?',
155+
new Map<AnswerChoice, string>([
156+
[AnswerChoice.A, 'Read Access Memory'],
157+
[AnswerChoice.B, 'Rapid Application Memory'],
158+
[AnswerChoice.C, 'Remote Access Module'],
159+
[AnswerChoice.D, 'Random Access Memory'],
160+
]),
161+
AnswerChoice.UNANSWERED,
162+
); // Replace `UNANSWERED` with the correct answer.
163+
}
164+
}

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,12 @@ import { BrooklynHardenQuiz } from './brooklyn_harden_quiz.js';
1111
import { TaliaCrockettQuiz } from './talia_crockett_quiz.js';
1212
import { TrinitieJacksonQuiz } from './trinitie_jackson_quiz.js';
1313
import { TyranRicesQuiz } from './tyran_rices_quiz.js';
14+
import { DevynBensonQuiz } from './devyn_benson_quiz.js';
1415
import { MarthaOQuiz } from './martha_o_quiz.js';
1516
import { LindaQuinoaQuiz } from './linda_quinoa_quiz.js';
1617
import { DeanWalstonQuiz } from './dean_walston_quiz.js';
1718
import { EvanderBlueQuiz } from './evander_blue_quiz.js';
19+
1820
export const Quizzes = Symbol.for('Quizzes');
1921

2022
// Add your quiz provider here.
@@ -23,6 +25,7 @@ const QUIZ_PROVIDERS = [
2325
NicoleJacksonQuiz,
2426
TrinitieJacksonQuiz,
2527
BrooklynHardenQuiz,
28+
DevynBensonQuiz,
2629
TyranRicesQuiz,
2730
AnotherQuiz,
2831
MattieWeathersbyQuiz,

0 commit comments

Comments
 (0)