Skip to content

Commit f95ade6

Browse files
author
AmiyahJo
committed
all questions properly fixed
1 parent 68a052b commit f95ade6

File tree

1 file changed

+12
-6
lines changed

1 file changed

+12
-6
lines changed

lesson_03/quiz/src/quizzes/amiyah_jones_quiz.ts

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -35,18 +35,24 @@ export class AmiyahJonesQuiz implements QuizQuestionProvider {
3535
new Map<AnswerChoice, string>([
3636
[AnswerChoice.A, 'Graphics card'],
3737
[AnswerChoice.B, 'CPU'],
38-
[AnswerChoice.C, 'mother board'],
39-
[AnswerChoice.D, 'mother board'],
38+
[AnswerChoice.C, 'Mother board'],
39+
[AnswerChoice.D, 'Ram'],
4040
]),
4141
AnswerChoice.UNANSWERED,
4242
); // Replace `UNANSWERED` with the correct answer.
4343
}
4444

4545
private static makeQuestion2(): QuizQuestion {
46-
return new QuizQuestion(
46+
return new MultipleChoiceQuizQuestion(
4747
2,
48-
'What is a computer?',
49-
'A machine that automatically transforms input into output.',
50-
); // Provide an answer.
48+
'Which computer part houses everything?',
49+
new Map<AnswerChoice, string>([
50+
[AnswerChoice.A, 'CPU'],
51+
[AnswerChoice.B, 'Hard drive'],
52+
[AnswerChoice.C, 'Case'],
53+
[AnswerChoice.D, 'Power Supply'],
54+
]),
55+
AnswerChoice.UNANSWERED,
56+
); // Replace `UNANSWERED` with the correct answer.
5157
}
5258
}

0 commit comments

Comments
 (0)