Skip to content

Commit 445e202

Browse files
lesson03quiz
1 parent 7e50490 commit 445e202

File tree

3 files changed

+61
-1
lines changed

3 files changed

+61
-1
lines changed

lesson_03/quiz/quiz.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,7 @@ quiz:
1010
- $2y$10$7TUXmYaJlWnRZTzYR..CsefgVcOZJMGt7ctxyAf.G3obBBFEAB342
1111
- $2y$10$0ghuTDegle177q8VjCgQ2OhManKjotYXrcDT3SLyUF8KvI152Wd0.
1212
- $2y$10$JXoeInFy4UzHhi2Lskxzeu7CQ9RprnJgBw9pjAlV.t6zQyJTyy8OK
13+
rmill:
14+
- $2y$09$n52EjarVxI2L53RsGD2e9eN87y4FK2OaESJGiT8zeZXEfAsgMLfy.
15+
- $2y$09$oyfa2Bq/V6gnXfv7QTjTA.c5T47Bkn4kb5irl2iyDPj09DeVqvP9W
16+
- $2y$09$lNMu2x/T0LOqCfoj4CrUXeahG1bfT2IFPwfibEM0LJ8TT.uOTUcSC
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, 'ls'],
22+
[AnswerChoice.B,'mkdir'],
23+
[AnswerChoice.C,'rm'],
24+
[AnswerChoice.D, 'cd'],
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, 'Watching videos'],
36+
[AnswerChoice.C, 'Sharing and managing code.'],
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, 'Download videos'],
48+
[AnswerChoice.B, 'Edit website code temporarily'],
49+
[AnswerChoice.C, 'Change website themes'],
50+
[AnswerChoice.D, 'Install apps'],
51+
]),
52+
AnswerChoice.UNANSWERED,
53+
); // Replace `UNANSWERED` with the correct answer.
54+
}
55+
}

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,12 @@ import { Module } from '@nestjs/common';
22
import { AnotherQuiz } from './another_quiz.js';
33
import { AnthonyMaysQuiz } from './anthony_mays_quiz.js';
44
import { Jbeyquiz } from './jbeyquiz.js';
5+
import { RasheedMillerQuiz } from './RasheedMillerQuiz.js';
56

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

89
// Add your quiz provider here.
9-
const QUIZ_PROVIDERS = [AnthonyMaysQuiz, AnotherQuiz, Jbeyquiz];
10+
const QUIZ_PROVIDERS = [AnthonyMaysQuiz, AnotherQuiz, Jbeyquiz, RasheedMillerQuiz];
1011

1112
@Module({
1213
providers: [

0 commit comments

Comments
 (0)