Skip to content

Commit 2f6dd75

Browse files
RMillerCohort251DavisD251
authored andcommitted
feat: adds Rashaad's quiz (code-differently#111)
1 parent 8b7220b commit 2f6dd75

File tree

3 files changed

+62
-0
lines changed

3 files changed

+62
-0
lines changed

lesson_03/quiz/quiz.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,3 +18,7 @@ quiz:
1818
- $2y$10$s9Dh1bJak9WjT3sziuq1KeloNnDCuhgjsT6HA.m/fxjJSrJMK0lOu
1919
- $2y$10$Q58g8gsWhL1Zhje9WoLHKuqF44I3NK16i..EQ2SYVAa.PEkowhgOK
2020
- $2y$10$U3eJ/7JtxbPlofL.3K08AeKmVTKWLvyhNCcS.cgF6gNn/cmm5Psia
21+
rmill:
22+
- $2y$10$FquR69q7W4E68TX/SNCB7u8Ri0DOFRDqsUPdGfuyIBjZJRVFkNI.6
23+
- $2y$10$FSWRA7hulVpyVxd8s67Nxuq/1cdmviW24qqoUbqihBf79cR.w9yly
24+
- $2y$10$Qy1IsNsfuJvA384ypL/72uWubUuNbMRp4LD6j/LM0RIH66D/HIjF6

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ import { AnthonyMaysQuiz } from './anthony_mays_quiz.js';
44
import { DavisQuiz } from './Davis_D._quiz.js';
55
import { Jbeyquiz } from './jbeyquiz.js';
66
import { MercedesMathewsQuiz } from './mercedes_mathews_quiz.js';
7+
import { RasheedMillerQuiz } from './rasheed_miller_quiz.js';
8+
79
export const Quizzes = Symbol.for('Quizzes');
810

911
// Add your quiz provider here.
@@ -13,6 +15,7 @@ const QUIZ_PROVIDERS = [
1315
MercedesMathewsQuiz,
1416
Jbeyquiz,
1517
DavisQuiz,
18+
RasheedMillerQuiz,
1619
];
1720

1821
@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)