Skip to content

Commit 600f97f

Browse files
committed
fix: rename class and file
1 parent d9e4908 commit 600f97f

File tree

2 files changed

+68
-3
lines changed

2 files changed

+68
-3
lines changed
Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
import {
2+
AnswerChoice,
3+
MultipleChoiceQuizQuestion,
4+
QuizQuestion,
5+
QuizQuestionProvider,
6+
} from 'codedifferently-instructional';
7+
8+
export class AngelicaCQuiz implements QuizQuestionProvider {
9+
getProviderName(): string {
10+
return 'angelicacastillo';
11+
}
12+
13+
makeQuizQuestions(): QuizQuestion[] {
14+
return [AngelicaCQuiz.makeQuestion0(), AngelicaCQuiz.makeQuestion1(), AngelicaCQuiz.makeQuestion2()];
15+
}
16+
17+
private static makeQuestion0(): QuizQuestion {
18+
return new MultipleChoiceQuizQuestion(
19+
0,
20+
'What does CPU stand for?',
21+
new Map<AnswerChoice, string>([
22+
[AnswerChoice.A, 'Central Processing Unit'],
23+
[AnswerChoice.B, 'Central Program Unit'],
24+
[
25+
AnswerChoice.C,
26+
'Center Program Unit',
27+
],
28+
[AnswerChoice.D, 'Whatever you want it to be!'],
29+
]),
30+
AnswerChoice.UNANSWERED,
31+
); // Replace `UNANSWERED` with the correct answer.
32+
}
33+
private static makeQuestion1(): QuizQuestion {
34+
return new MultipleChoiceQuizQuestion(
35+
1,
36+
'Which of the following would be a "simple" essential part of the computer?',
37+
new Map<AnswerChoice, string>([
38+
[AnswerChoice.A, 'RAM'],
39+
[AnswerChoice.B, 'CPU'],
40+
[
41+
AnswerChoice.C,
42+
'CASE',
43+
],
44+
[AnswerChoice.D, 'HARD DRIVE'],
45+
]),
46+
AnswerChoice.UNANSWERED,
47+
); // Replace `UNANSWERED` with the correct answer.
48+
}
49+
private static makeQuestion2(): QuizQuestion {
50+
return new MultipleChoiceQuizQuestion(
51+
2,
52+
'What would be considered the brains long term memory?',
53+
new Map<AnswerChoice, string>([
54+
[AnswerChoice.A, 'Mother board'],
55+
[AnswerChoice.B, 'Hard drive'],
56+
[
57+
AnswerChoice.C,
58+
'Power supply',
59+
],
60+
[AnswerChoice.D, 'Computer'],
61+
]),
62+
AnswerChoice.UNANSWERED,
63+
); // Replace `UNANSWERED` with the correct answer.
64+
}
65+
}

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
import { Module } from '@nestjs/common';
2-
import { angelicaCquiz } from './angelica_castillo_quiz.js';
2+
import { AngelicaCQuiz } from './angelica_c_quiz.js';
33
import { AnotherQuiz } from './another_quiz.js';
4-
import { OyeyemiJimohQuiz } from './oyeyemi_jimoh_quiz.js';
54
import { AnthonyMaysQuiz } from './anthony_mays_quiz.js';
65
import { JosephCaballeroQuiz } from './joseph_caballero_quiz.js';
6+
import { OyeyemiJimohQuiz } from './oyeyemi_jimoh_quiz.js';
77
import { YafiahAbdullahQuiz } from './yafiah_abdullah_quiz.js';
88
export const Quizzes = Symbol.for('Quizzes');
99

@@ -14,7 +14,7 @@ const QUIZ_PROVIDERS = [
1414
YafiahAbdullahQuiz,
1515
AnotherQuiz,
1616
JosephCaballeroQuiz,
17-
angelicaCquiz,
17+
AngelicaCQuiz,
1818
OyeyemiJimohQuiz,
1919
];
2020

0 commit comments

Comments
 (0)