Skip to content

Commit 6ac3970

Browse files
feat: adds Rashaad's quiz (#111)
1 parent 5226501 commit 6ac3970

File tree

3 files changed

+61
-0
lines changed

3 files changed

+61
-0
lines changed

lesson_03/quiz/quiz.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,7 @@ quiz:
1414
- $2y$10$hRwUbEYSqz761B.cG79T2uYsYPiEtKu.JgD3Aj7.Mofx27TtX5YHa
1515
- $2y$10$qE/gXxpq62FEGJOJd9MDA.vpDYLTNSsZbqZLpD/0368CKkcNBzW1y
1616
- $2y$10$yI/2BgOyqQfLdHM3ixPE5uLu89su/sHRJB2c5szDFIAYXDhRakS.C
17+
rmill:
18+
- $2y$10$FquR69q7W4E68TX/SNCB7u8Ri0DOFRDqsUPdGfuyIBjZJRVFkNI.6
19+
- $2y$10$FSWRA7hulVpyVxd8s67Nxuq/1cdmviW24qqoUbqihBf79cR.w9yly
20+
- $2y$10$Qy1IsNsfuJvA384ypL/72uWubUuNbMRp4LD6j/LM0RIH66D/HIjF6

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import { AnotherQuiz } from './another_quiz.js';
33
import { AnthonyMaysQuiz } from './anthony_mays_quiz.js';
44
import { Jbeyquiz } from './jbeyquiz.js';
55
import { MercedesMathewsQuiz } from './mercedes_mathews_quiz.js';
6+
import { RasheedMillerQuiz } from './rasheed_miller_quiz.js';
67

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

@@ -12,6 +13,7 @@ const QUIZ_PROVIDERS = [
1213
AnotherQuiz,
1314
MercedesMathewsQuiz,
1415
Jbeyquiz,
16+
RasheedMillerQuiz,
1517
];
1618

1719
@Module({
Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
import {
2+
AnswerChoice,
3+
MultipleChoiceQuizQuestion,
4+
} from 'codedifferently-instructional';
5+
export class RasheedMillerQuiz {
6+
getProviderName() {
7+
return 'rmill';
8+
}
9+
makeQuizQuestions() {
10+
return [
11+
RasheedMillerQuiz.makeQuestion0(),
12+
RasheedMillerQuiz.makeQuestion1(),
13+
RasheedMillerQuiz.makeQuestion2(),
14+
];
15+
}
16+
static makeQuestion0() {
17+
return new MultipleChoiceQuizQuestion(
18+
0,
19+
'What command is used to navigate to a different directory in the terminal?',
20+
new Map([
21+
[AnswerChoice.A, 'cd'],
22+
[AnswerChoice.B,'ls'],
23+
[AnswerChoice.C,'mkdir'],
24+
[AnswerChoice.D, 'rm'],
25+
]),
26+
AnswerChoice.UNANSWERED,
27+
); // Replace `UNANSWERED` with the correct answer.
28+
}
29+
static makeQuestion1() {
30+
return new MultipleChoiceQuizQuestion(
31+
1,
32+
'What is GitHub mainly used for?',
33+
new Map([
34+
[AnswerChoice.A,'Playing Games'],
35+
[AnswerChoice.B, 'Sharing and managing code'],
36+
[AnswerChoice.C,'Watching Videos'],
37+
[AnswerChoice.D,'Sending Emails'],
38+
]),
39+
AnswerChoice.UNANSWERED,
40+
); // Replace `UNANSWERED` with the correct answer.
41+
}
42+
static makeQuestion2() {
43+
return new MultipleChoiceQuizQuestion(
44+
2,
45+
'What is the primary purpose of the "Inspect" tool in a web browser?',
46+
new Map([
47+
[AnswerChoice.A, 'Edit website code temporarily'],
48+
[AnswerChoice.B, 'Download videos'],
49+
[AnswerChoice.C, 'Change website themes'],
50+
[AnswerChoice.D,'Install Apps'],
51+
]),
52+
AnswerChoice.UNANSWERED,
53+
); // Replace `UNANSWERED` with the correct answer.
54+
}
55+
}

0 commit comments

Comments
 (0)