Skip to content

Commit a3b3941

Browse files
author
AmiyahJo
committed
Created my first two questions
1 parent f7c396b commit a3b3941

File tree

1 file changed

+15
-20
lines changed

1 file changed

+15
-20
lines changed

lesson_03/quiz/src/quizzes/amiyah_jones_quiz.ts

Lines changed: 15 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -17,26 +17,29 @@ export class AmiyahJonesQuiz implements QuizQuestionProvider {
1717
private static makeQuestion0(): QuizQuestion {
1818
return new MultipleChoiceQuizQuestion(
1919
0,
20-
'What is a multiple choice question?',
20+
'What two computer parts get mixed up often?',
2121
new Map<AnswerChoice, string>([
22-
[AnswerChoice.A, 'A question about agency'],
23-
[AnswerChoice.B, 'The hardest kind of quiz question there is'],
24-
[
25-
AnswerChoice.C,
26-
'A question that can be answered using one or more provided choices',
27-
],
28-
[AnswerChoice.D, 'Whatever you want it to be!'],
22+
[AnswerChoice.A, 'Power supply and mother board'],
23+
[AnswerChoice.B, 'Graphics card and ram'],
24+
[AnswerChoice.C, 'Ram and hard drive'],
25+
[AnswerChoice.D, 'None, all of them are different'],
2926
]),
3027
AnswerChoice.UNANSWERED,
3128
); // Replace `UNANSWERED` with the correct answer.
3229
}
3330

3431
private static makeQuestion1(): QuizQuestion {
35-
return new QuizQuestion(
32+
return new MultipleChoiceQuizQuestion(
3633
1,
37-
'What is a computer?',
38-
'A machine that automatically transforms input into output.',
39-
); // Provide an answer.
34+
'Which computer part figures out how everything is supposed to look on your screen?',
35+
new Map<AnswerChoice, string>([
36+
[AnswerChoice.A, 'Graphics card'],
37+
[AnswerChoice.B, 'CPU'],
38+
[AnswerChoice.C, 'mother board'],
39+
[AnswerChoice.D, 'mother board'],
40+
]),
41+
AnswerChoice.UNANSWERED,
42+
); // Replace `UNANSWERED` with the correct answer.
4043
}
4144

4245
private static makeQuestion2(): QuizQuestion {
@@ -46,12 +49,4 @@ export class AmiyahJonesQuiz implements QuizQuestionProvider {
4649
'A machine that automatically transforms input into output.',
4750
); // Provide an answer.
4851
}
49-
50-
private static makeQuestion3(): QuizQuestion {
51-
return new QuizQuestion(
52-
1,
53-
'What is a computer?',
54-
'A machine that automatically transforms input into output.',
55-
); // Provide an answer.
56-
}
5752
}

0 commit comments

Comments
 (0)