Skip to content

Commit e78b68d

Browse files
committed
Chore: getting my file to be readded to my repo and also have added Jerimiahs quiz
1 parent 7646667 commit e78b68d

File tree

1 file changed

+61
-0
lines changed

1 file changed

+61
-0
lines changed
Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
import {
2+
AnswerChoice,
3+
MultipleChoiceQuizQuestion,
4+
QuizQuestion,
5+
QuizQuestionProvider,
6+
} from 'codedifferently-instructional';
7+
8+
export class DylanLaffertyQuiz implements QuizQuestionProvider {
9+
getProviderName(): string {
10+
return 'dylanlafferty';
11+
}
12+
13+
makeQuizQuestions(): QuizQuestion[] {
14+
return [
15+
DylanLaffertyQuiz.makeQuestion0(),
16+
DylanLaffertyQuiz.makeQuestion1(),
17+
DylanLaffertyQuiz.makeQuestion2(),
18+
];
19+
}
20+
21+
private static makeQuestion0(): QuizQuestion {
22+
return new MultipleChoiceQuizQuestion(
23+
0,
24+
'What is the Power supply unit most compared to when comparing it to a human body?',
25+
new Map<AnswerChoice, string>([
26+
[AnswerChoice.A, 'Heart'],
27+
[AnswerChoice.B, 'Arm'],
28+
[AnswerChoice.C, 'Leg'],
29+
[AnswerChoice.D, 'Brain'],
30+
]),
31+
AnswerChoice.UNANSWERED,
32+
);
33+
}
34+
private static makeQuestion1(): QuizQuestion {
35+
return new MultipleChoiceQuizQuestion(
36+
1,
37+
'What is the full name of CPU?',
38+
new Map<AnswerChoice, string>([
39+
[AnswerChoice.A, 'Central Place Unit'],
40+
[AnswerChoice.B, 'Certified Processing Unit'],
41+
[AnswerChoice.C, 'Central Processing Unit'],
42+
[AnswerChoice.D, 'Configured Procerdale Unicode'],
43+
]),
44+
AnswerChoice.UNANSWERED,
45+
);
46+
}
47+
48+
private static makeQuestion2(): QuizQuestion {
49+
return new MultipleChoiceQuizQuestion(
50+
2,
51+
'What is used to keep Short term memory in a computer?',
52+
new Map<AnswerChoice, string>([
53+
[AnswerChoice.A, 'Hard Drive'],
54+
[AnswerChoice.B, 'SSD'],
55+
[AnswerChoice.C, 'GPU'],
56+
[AnswerChoice.D, 'RAM'],
57+
]),
58+
AnswerChoice.UNANSWERED,
59+
);
60+
}
61+
}

0 commit comments

Comments
 (0)