Skip to content

Commit 6b3c963

Browse files
committed
answers to test
1 parent 70f0583 commit 6b3c963

File tree

3 files changed

+71
-1
lines changed

3 files changed

+71
-1
lines changed

lesson_03/quiz/quiz.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,7 @@ quiz:
1414
- $2y$10$XcsVuO66KZiUiN75NtssdOkKvHKhuBo91JgE/TJEnSrrzbhjxuql.
1515
- $2y$10$9fZs867NHxoPQ/VWMeLyj.us5Kg3SLPcbt9O5ki/FdJ37TbhgFMFC
1616
- $2y$10$GfjcKvtzr6n8553Mdr1RJOOYDfzOudlW.3i8otsH0HiW52CU7tUAW
17+
angelicacastillo:
18+
- $2y$10$MkiKfTFDIR5e4nWe3Q3XKOSEk2E06urRRykXIx/2JV6Y5j.OPIWMi
19+
- $2y$10$WsWcxQ.rCkq/WoUVMbdMNuUU8v5O9xDFpWdbWydVFu7/Ufz/8lLru
20+
- $2y$10$9FB5PKcxb5z0xijnLVnF8.127CghZcgd7.0Phn2QsWdCYBxxZWrwG
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: 2 additions & 1 deletion
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';
23
import { AnotherQuiz } from './another_quiz.js';
34
import { AnthonyMaysQuiz } from './anthony_mays_quiz.js';
45
import { JosephCaballeroQuiz } from './joseph_caballero_quiz.js';
56
import { YafiahAbdullahQuiz } from './yafiah_abdullah_quiz.js';
6-
77
export const Quizzes = Symbol.for('Quizzes');
88

99
// Add your quiz provider here.
@@ -12,6 +12,7 @@ const QUIZ_PROVIDERS = [
1212
YafiahAbdullahQuiz,
1313
AnotherQuiz,
1414
JosephCaballeroQuiz,
15+
angelicaCquiz
1516
];
1617

1718
@Module({

0 commit comments

Comments
 (0)