Skip to content

Commit 397477f

Browse files
Merge branch 'main' into feature/lesson_03
2 parents 3087906 + de452f0 commit 397477f

File tree

4 files changed

+141
-1
lines changed

4 files changed

+141
-1
lines changed

lesson_03/quiz/quiz.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@ quiz:
1111
- $2y$10$9D.oRC8h/PD/10NMSR6MMOzjVAJKm.vfw4te8Rxgw1M1.0Q9x8pjK
1212
- $2y$10$ypLhtfxJikRhLaQdW0Y8GOEqO/X1uoBD8w.kSSSUPggBa9wHLkw0i
1313
- $2y$10$cYuji5D0xOEFAV2fyMaJAuaODeWEwIYu.X3089qnojdx3nQljil5G
14+
dasiaenglish:
15+
- $2y$10$ANtdDzA0GAqn/QeExPO/Du8LgHUwznRLxpv0W0ib2seYk23BZowOC
16+
- $2y$10$6vAkOUmpPrUtWrh010f8e.A4M9kEzuzCrQ8ghWI9hQSEsZeGHpQ9W
17+
- $2y$10$YYTJf2QW.BJST9EUB7NZneVpNkOywIfhsWRpxIsPBg/oTmgqoYWse
1418
chigazograham:
1519
- $2y$10$OTnSih9kHykUnsuM/YKufu3MXTpOZrif.dL13XwXt8rquJL4mV.m.
1620
- $2y$10$je60MntrKRBd/1tz7hNUY.D/cyKOEM.hp6/1fVVVGJRIIitmUGI5e
@@ -27,7 +31,12 @@ quiz:
2731
- $2y$10$XcsVuO66KZiUiN75NtssdOkKvHKhuBo91JgE/TJEnSrrzbhjxuql.
2832
- $2y$10$9fZs867NHxoPQ/VWMeLyj.us5Kg3SLPcbt9O5ki/FdJ37TbhgFMFC
2933
- $2y$10$GfjcKvtzr6n8553Mdr1RJOOYDfzOudlW.3i8otsH0HiW52CU7tUAW
34+
angelicacastillo:
35+
- $2y$10$MkiKfTFDIR5e4nWe3Q3XKOSEk2E06urRRykXIx/2JV6Y5j.OPIWMi
36+
- $2y$10$WsWcxQ.rCkq/WoUVMbdMNuUU8v5O9xDFpWdbWydVFu7/Ufz/8lLru
37+
- $2y$10$9FB5PKcxb5z0xijnLVnF8.127CghZcgd7.0Phn2QsWdCYBxxZWrwG
3038
amiyahjones:
3139
- $2y$10$QsN9VkjWORsKgZRiBT46VOUgc5HVnswKAT4uDbs7JYbTF7DdKbsw.
3240
- $2y$10$sqXEOL0L8o0kRyiAb.2s4u0RlBC2.LmOGDbGWXHj5IfBNwinkv2yq
3341
- $2y$10$HaWueXgrIzd7z8yf39HfVeTjjyr.Kgx0GFBqwCRSzW3zRSreN19yi
42+
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+
}
Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
import {
2+
AnswerChoice,
3+
MultipleChoiceQuizQuestion,
4+
QuizQuestion,
5+
QuizQuestionProvider,
6+
} from 'codedifferently-instructional';
7+
8+
export class DasiaEnglishQuiz implements QuizQuestionProvider {
9+
getProviderName(): string {
10+
return 'dasiaenglish';
11+
}
12+
13+
makeQuizQuestions(): QuizQuestion[] {
14+
return [
15+
DasiaEnglishQuiz.makeQuestion0(),
16+
DasiaEnglishQuiz.makeQuestion1(),
17+
DasiaEnglishQuiz.makeQuestion2(),
18+
];
19+
}
20+
21+
private static makeQuestion0(): QuizQuestion {
22+
return new MultipleChoiceQuizQuestion(
23+
0,
24+
'How often should you sync your fork?',
25+
new Map<AnswerChoice, string>([
26+
[AnswerChoice.A, 'Never'],
27+
[AnswerChoice.B, 'Once a day'],
28+
[AnswerChoice.C, 'About every hour or as often as possible'],
29+
[AnswerChoice.D, 'Once a week'],
30+
]),
31+
AnswerChoice.UNANSWERED,
32+
); // Replace `UNANSWERED` with the correct answer.
33+
}
34+
35+
private static makeQuestion1(): QuizQuestion {
36+
return new MultipleChoiceQuizQuestion(
37+
1,
38+
'What is a computer?',
39+
new Map<AnswerChoice, string>([
40+
[
41+
AnswerChoice.A,
42+
'A machine that transforms input to output data using automatically executed pre-programmed instructions',
43+
],
44+
[AnswerChoice.B, 'A machine'],
45+
[AnswerChoice.C, 'A laptop'],
46+
[
47+
AnswerChoice.D,
48+
'A machine that automatically executed pre-programmed instructions',
49+
],
50+
]),
51+
AnswerChoice.UNANSWERED,
52+
); // Replace `UNANSWERED` with the correct answer.
53+
}
54+
private static makeQuestion2(): QuizQuestion {
55+
return new MultipleChoiceQuizQuestion(
56+
2,
57+
'What part of the computer does everything have to run through?',
58+
new Map<AnswerChoice, string>([
59+
[AnswerChoice.A, 'CPU'],
60+
[AnswerChoice.B, 'GPU'],
61+
[AnswerChoice.C, 'RAM'],
62+
[AnswerChoice.D, 'Motherboard'],
63+
]),
64+
AnswerChoice.UNANSWERED,
65+
); // Replace `UNANSWERED` with the correct answer.
66+
}
67+
}

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

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
11
import { Module } from '@nestjs/common';
2+
import { AngelicaCQuiz } from './angelica_c_quiz.js';
23
import { AnotherQuiz } from './another_quiz.js';
3-
import { OyeyemiJimohQuiz } from './oyeyemi_jimoh_quiz.js';
44
import { AnthonyMaysQuiz } from './anthony_mays_quiz.js';
55
import { XavierCruzQuiz } from './xavier_cruz_quiz.js';
6+
import { DasiaEnglishQuiz } from './dasia_english_quiz.js';
67
import { ChigazoGrahamsQuiz } from './chigazo_graham_quiz.js';
78
import { JosephCaballeroQuiz } from './joseph_caballero_quiz.js';
9+
import { OyeyemiJimohQuiz } from './oyeyemi_jimoh_quiz.js';
810
import { YafiahAbdullahQuiz } from './yafiah_abdullah_quiz.js';
911
import { AmiyahJonesQuiz } from './amiyah_jones_quiz.js';
1012

@@ -16,7 +18,9 @@ const QUIZ_PROVIDERS = [
1618
YafiahAbdullahQuiz,
1719
AnotherQuiz,
1820
JosephCaballeroQuiz,
21+
AngelicaCQuiz,
1922
OyeyemiJimohQuiz,
23+
DasiaEnglishQuiz,
2024
ChigazoGrahamsQuiz,
2125
AmiyahJonesQuiz,
2226
XavierCruzQuiz

0 commit comments

Comments
 (0)