Skip to content

Commit 12b13f4

Browse files
committed
fix- found the file
1 parent 5dfcd70 commit 12b13f4

File tree

1 file changed

+79
-0
lines changed

1 file changed

+79
-0
lines changed

lesson_03/ethan_hillman_quiz.ts

Lines changed: 79 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,79 @@
1+
import {
2+
AnswerChoice,
3+
MultipleChoiceQuizQuestion,
4+
QuizQuestion,
5+
QuizQuestionProvider,
6+
} from 'codedifferently-instructional';
7+
8+
export class EthanHillmanQuiz implements QuizQuestionProvider {
9+
getProviderName(): string {
10+
return 'ethanhillman';
11+
}
12+
13+
makeQuizQuestions(): QuizQuestion[] {
14+
return [
15+
EthanHillmanQuiz.makeQuestion0(),
16+
EthanHillmanQuiz.makeQuestion1(),
17+
EthanHillmanQuiz.makeQuestion2(),
18+
EthanHillmanQuiz.makeQuestion3(),
19+
];
20+
}
21+
22+
private static makeQuestion0(): QuizQuestion {
23+
return new MultipleChoiceQuizQuestion(
24+
0,
25+
'What do 1/s and 0/s stand for in a binary signal?',
26+
new Map<AnswerChoice, string>([
27+
[AnswerChoice.A, '1s are on, 0s are off'],
28+
[AnswerChoice.B, '1s are off, 0s are on'],
29+
[AnswerChoice.C, '1s are high, 0s are low'],
30+
[AnswerChoice.D, '1s are low, 0s are high'],
31+
]),
32+
AnswerChoice.UNANSWERED,
33+
// Replace `UNANSWERED` with the correct answer.
34+
);
35+
}
36+
37+
private static makeQuestion1(): QuizQuestion {
38+
return new MultipleChoiceQuizQuestion(
39+
1,
40+
'What does CPU stand for?',
41+
new Map<AnswerChoice, string>([
42+
[AnswerChoice.A, 'Content Processing Unit'],
43+
[AnswerChoice.B, 'Control Processing Unit'],
44+
[AnswerChoice.C, 'Central Processing Unit'],
45+
[AnswerChoice.D, 'Computer Processing Unit'],
46+
]),
47+
AnswerChoice.UNANSWERED,
48+
// Replace `UNANSWERED` with the correct answer.
49+
);
50+
}
51+
52+
private static makeQuestion2(): QuizQuestion {
53+
return new MultipleChoiceQuizQuestion(
54+
2,
55+
'What does RAM stand for?',
56+
new Map<AnswerChoice, string>([
57+
[AnswerChoice.A, 'Raging Angry Man'],
58+
[AnswerChoice.B, 'Random Access Memory'],
59+
[AnswerChoice.C, 'Read Access Memory'],
60+
[AnswerChoice.D, 'Random Access Machine'],
61+
]),
62+
AnswerChoice.UNANSWERED,
63+
); // Replace `UNANSWERED` with the correct answer.
64+
}
65+
66+
private static makeQuestion3(): QuizQuestion {
67+
return new MultipleChoiceQuizQuestion(
68+
3,
69+
'What/s the purpose of the motherboard?',
70+
new Map<AnswerChoice, string>([
71+
[AnswerChoice.A, 'To store data'],
72+
[AnswerChoice.B, 'To run the operating system'],
73+
[AnswerChoice.C, 'Process data'],
74+
[AnswerChoice.D, 'To connect all components of the computer'],
75+
]),
76+
AnswerChoice.UNANSWERED,
77+
); // Replace `UNANSWERED` with the correct answer.
78+
}
79+
}

0 commit comments

Comments
 (0)