Skip to content

Commit de452f0

Browse files
feat: create test questions for Angie (#109)
* answers to test * fix: rename class and file * chore: eelete lesson_03/quiz/src/quizzes/angelica_castillo_quiz.ts * changes made and saved --------- Co-authored-by: Anthony D. Mays <[email protected]>
1 parent 3039ecd commit de452f0

File tree

3 files changed

+67
-0
lines changed

3 files changed

+67
-0
lines changed

lesson_03/quiz/quiz.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,12 @@ quiz:
2626
- $2y$10$XcsVuO66KZiUiN75NtssdOkKvHKhuBo91JgE/TJEnSrrzbhjxuql.
2727
- $2y$10$9fZs867NHxoPQ/VWMeLyj.us5Kg3SLPcbt9O5ki/FdJ37TbhgFMFC
2828
- $2y$10$GfjcKvtzr6n8553Mdr1RJOOYDfzOudlW.3i8otsH0HiW52CU7tUAW
29+
angelicacastillo:
30+
- $2y$10$MkiKfTFDIR5e4nWe3Q3XKOSEk2E06urRRykXIx/2JV6Y5j.OPIWMi
31+
- $2y$10$WsWcxQ.rCkq/WoUVMbdMNuUU8v5O9xDFpWdbWydVFu7/Ufz/8lLru
32+
- $2y$10$9FB5PKcxb5z0xijnLVnF8.127CghZcgd7.0Phn2QsWdCYBxxZWrwG
2933
amiyahjones:
3034
- $2y$10$QsN9VkjWORsKgZRiBT46VOUgc5HVnswKAT4uDbs7JYbTF7DdKbsw.
3135
- $2y$10$sqXEOL0L8o0kRyiAb.2s4u0RlBC2.LmOGDbGWXHj5IfBNwinkv2yq
3236
- $2y$10$HaWueXgrIzd7z8yf39HfVeTjjyr.Kgx0GFBqwCRSzW3zRSreN19yi
37+
Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
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 [
15+
AngelicaCQuiz.makeQuestion0(),
16+
AngelicaCQuiz.makeQuestion1(),
17+
AngelicaCQuiz.makeQuestion2(),
18+
];
19+
}
20+
21+
private static makeQuestion0(): QuizQuestion {
22+
return new MultipleChoiceQuizQuestion(
23+
0,
24+
'What does CPU stand for?',
25+
new Map<AnswerChoice, string>([
26+
[AnswerChoice.A, 'Central Processing Unit'],
27+
[AnswerChoice.B, 'Central Program Unit'],
28+
[AnswerChoice.C,'Center Program Unit'],
29+
[AnswerChoice.D, 'Whatever you want it to be!'],
30+
]),
31+
AnswerChoice.UNANSWERED,
32+
); // Replace `UNANSWERED` with the correct answer.
33+
}
34+
private static makeQuestion1(): QuizQuestion {
35+
return new MultipleChoiceQuizQuestion(
36+
1,
37+
'Which of the following would be a "simple" essential part of the computer?',
38+
new Map<AnswerChoice, string>([
39+
[AnswerChoice.A, 'RAM'],
40+
[AnswerChoice.B, 'CPU'],
41+
[AnswerChoice.C,'CASE'],
42+
[AnswerChoice.D, 'HARD DRIVE'],
43+
]),
44+
AnswerChoice.UNANSWERED,
45+
); // Replace `UNANSWERED` with the correct answer.
46+
}
47+
private static makeQuestion2(): QuizQuestion {
48+
return new MultipleChoiceQuizQuestion(
49+
2,
50+
'What would be considered the brains long term memory?',
51+
new Map<AnswerChoice, string>([
52+
[AnswerChoice.A, 'Mother board'],
53+
[AnswerChoice.B, 'Hard drive'],
54+
[AnswerChoice.C,'Power supply'],
55+
[AnswerChoice.D, 'Computer'],
56+
]),
57+
AnswerChoice.UNANSWERED,
58+
); // Replace `UNANSWERED` with the correct answer.
59+
}
60+
}

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import { Module } from '@nestjs/common';
2+
import { AngelicaCQuiz } from './angelica_c_quiz.js';
23
import { AnotherQuiz } from './another_quiz.js';
34
import { AnthonyMaysQuiz } from './anthony_mays_quiz.js';
45
import { DasiaEnglishQuiz } from './dasia_english_quiz.js';
@@ -17,6 +18,7 @@ const QUIZ_PROVIDERS = [
1718
YafiahAbdullahQuiz,
1819
AnotherQuiz,
1920
JosephCaballeroQuiz,
21+
AngelicaCQuiz,
2022
OyeyemiJimohQuiz,
2123
DasiaEnglishQuiz,
2224
ChigazoGrahamsQuiz,

0 commit comments

Comments
 (0)