Skip to content

Commit 53fded3

Browse files
angie-3anthonydmays
authored andcommitted
feat: create test questions for Angie (code-differently#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 d587d16 commit 53fded3

File tree

3 files changed

+68
-1
lines changed

3 files changed

+68
-1
lines changed

lesson_03/quiz/quiz.yaml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ quiz:
66
anotherone:
77
- $2y$10$8eHSzy3aCu4Ry3LzO9nWCeGpofSxsNVbnF.wCfn3ZADwQ6MEtN/KK
88
- $2y$10$dGB0CGv7.XQC5OqfyY6iXOiJsdVyxU3ve5YE0gt4m2I8P8H13lNXa
9-
dasiaenglish:
9+
dasiaenglish:
1010
- $2y$10$ANtdDzA0GAqn/QeExPO/Du8LgHUwznRLxpv0W0ib2seYk23BZowOC
1111
- $2y$10$6vAkOUmpPrUtWrh010f8e.A4M9kEzuzCrQ8ghWI9hQSEsZeGHpQ9W
1212
- $2y$10$YYTJf2QW.BJST9EUB7NZneVpNkOywIfhsWRpxIsPBg/oTmgqoYWse
@@ -26,10 +26,15 @@ 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+
3338
ljmcwilliams:
3439
- $2y$10$krHODbBQL0Z.4Me1fsRc0.XODWzJQPjrEL1xzXwDa98TPONF8OeiK
3540
- $2y$10$S5HH5Vv834yLEUO2B3hHQO9gnR.8eBMA3zDORpXFrSYzXCuDsWHN6
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,5 +1,6 @@
11
import { Module } from '@nestjs/common';
22
import { AmiyahJonesQuiz } from './amiyah_jones_quiz.js';
3+
import { AngelicaCQuiz } from './angelica_c_quiz.js';
34
import { AnotherQuiz } from './another_quiz.js';
45
import { AnthonyMaysQuiz } from './anthony_mays_quiz.js';
56
import { ChigazoGrahamsQuiz } from './chigazo_graham_quiz.js';
@@ -18,6 +19,7 @@ const QUIZ_PROVIDERS = [
1819
YafiahAbdullahQuiz,
1920
AnotherQuiz,
2021
JosephCaballeroQuiz,
22+
AngelicaCQuiz,
2123
OyeyemiJimohQuiz,
2224
DasiaEnglishQuiz,
2325
ChigazoGrahamsQuiz,

0 commit comments

Comments
 (0)