Skip to content

Commit 9f5c7e8

Browse files
authored
Merge branch 'main' into Shawn-Lesson03
2 parents 4e572db + de452f0 commit 9f5c7e8

File tree

6 files changed

+276
-0
lines changed

6 files changed

+276
-0
lines changed

lesson_03/quiz/quiz.yaml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,14 @@ quiz:
66
anotherone:
77
- $2y$10$8eHSzy3aCu4Ry3LzO9nWCeGpofSxsNVbnF.wCfn3ZADwQ6MEtN/KK
88
- $2y$10$dGB0CGv7.XQC5OqfyY6iXOiJsdVyxU3ve5YE0gt4m2I8P8H13lNXa
9+
dasiaenglish:
10+
- $2y$10$ANtdDzA0GAqn/QeExPO/Du8LgHUwznRLxpv0W0ib2seYk23BZowOC
11+
- $2y$10$6vAkOUmpPrUtWrh010f8e.A4M9kEzuzCrQ8ghWI9hQSEsZeGHpQ9W
12+
- $2y$10$YYTJf2QW.BJST9EUB7NZneVpNkOywIfhsWRpxIsPBg/oTmgqoYWse
13+
chigazograham:
14+
- $2y$10$OTnSih9kHykUnsuM/YKufu3MXTpOZrif.dL13XwXt8rquJL4mV.m.
15+
- $2y$10$je60MntrKRBd/1tz7hNUY.D/cyKOEM.hp6/1fVVVGJRIIitmUGI5e
16+
- $2y$10$pPTmEp0acs8.NIAamLpmmuF7B72bXFZsikHywQI/JvfXuySkhHH5S
917
oyeyemijimoh:
1018
- $2y$10$2LlSxAEM1HmR3Wl2fO6LQueu/77spr5SuWAh4b3MKesIWNy3CFjGe
1119
- $2y$10$csA90DFxK7.uq6dSfS06Yukk5fQPrzLvU2Lp43ArTs2za28LVvRGO
@@ -18,3 +26,12 @@ quiz:
1826
- $2y$10$XcsVuO66KZiUiN75NtssdOkKvHKhuBo91JgE/TJEnSrrzbhjxuql.
1927
- $2y$10$9fZs867NHxoPQ/VWMeLyj.us5Kg3SLPcbt9O5ki/FdJ37TbhgFMFC
2028
- $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
33+
amiyahjones:
34+
- $2y$10$QsN9VkjWORsKgZRiBT46VOUgc5HVnswKAT4uDbs7JYbTF7DdKbsw.
35+
- $2y$10$sqXEOL0L8o0kRyiAb.2s4u0RlBC2.LmOGDbGWXHj5IfBNwinkv2yq
36+
- $2y$10$HaWueXgrIzd7z8yf39HfVeTjjyr.Kgx0GFBqwCRSzW3zRSreN19yi
37+
Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
import {
2+
AnswerChoice,
3+
MultipleChoiceQuizQuestion,
4+
QuizQuestion,
5+
QuizQuestionProvider,
6+
} from 'codedifferently-instructional';
7+
8+
export class AmiyahJonesQuiz implements QuizQuestionProvider {
9+
getProviderName(): string {
10+
return 'amiyahjones';
11+
}
12+
13+
makeQuizQuestions(): QuizQuestion[] {
14+
return [
15+
AmiyahJonesQuiz.makeQuestion0(),
16+
AmiyahJonesQuiz.makeQuestion1(),
17+
AmiyahJonesQuiz.makeQuestion2(),
18+
];
19+
}
20+
21+
private static makeQuestion0(): QuizQuestion {
22+
return new MultipleChoiceQuizQuestion(
23+
0,
24+
'What two computer parts get mixed up often?',
25+
new Map<AnswerChoice, string>([
26+
[AnswerChoice.A, 'Power supply and mother board'],
27+
[AnswerChoice.B, 'Graphics card and ram'],
28+
[AnswerChoice.C, 'Ram and hard drive'],
29+
[AnswerChoice.D, 'None of them get mixed up'],
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+
'Which computer part figures out how everything is supposed to look on your screen?',
39+
new Map<AnswerChoice, string>([
40+
[AnswerChoice.A, 'Graphics card'],
41+
[AnswerChoice.B, 'CPU'],
42+
[AnswerChoice.C, 'Mother board'],
43+
[AnswerChoice.D, 'Ram'],
44+
]),
45+
AnswerChoice.UNANSWERED,
46+
); // Replace `UNANSWERED` with the correct answer.
47+
}
48+
49+
private static makeQuestion2(): QuizQuestion {
50+
return new MultipleChoiceQuizQuestion(
51+
2,
52+
'Which computer part houses everything?',
53+
new Map<AnswerChoice, string>([
54+
[AnswerChoice.A, 'Hard drive'],
55+
[AnswerChoice.B, 'Case'],
56+
[AnswerChoice.C, 'CPU'],
57+
[AnswerChoice.D, 'Power supply'],
58+
]),
59+
AnswerChoice.UNANSWERED,
60+
); // Replace `UNANSWERED` with the correct answer.
61+
}
62+
}
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: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
import {
2+
AnswerChoice,
3+
MultipleChoiceQuizQuestion,
4+
QuizQuestion,
5+
QuizQuestionProvider,
6+
} from 'codedifferently-instructional';
7+
8+
export class ChigazoGrahamsQuiz implements QuizQuestionProvider {
9+
getProviderName(): string {
10+
return 'chigazograham';
11+
}
12+
13+
makeQuizQuestions(): QuizQuestion[] {
14+
return [
15+
ChigazoGrahamsQuiz.makeQuestion0(),
16+
ChigazoGrahamsQuiz.makeQuestion1(),
17+
ChigazoGrahamsQuiz.makeQuestion2(),
18+
];
19+
}
20+
21+
private static makeQuestion0(): QuizQuestion {
22+
return new MultipleChoiceQuizQuestion(
23+
0,
24+
'What is the sign for modulo?',
25+
new Map<AnswerChoice, string>([
26+
[AnswerChoice.A, '^'],
27+
[AnswerChoice.B, '*'],
28+
[AnswerChoice.C, '%'],
29+
[AnswerChoice.D, '//'],
30+
]),
31+
AnswerChoice.UNANSWERED,
32+
); // Provide an answer. | AnswerChoice.C, '%'
33+
}
34+
35+
private static makeQuestion1(): QuizQuestion {
36+
return new MultipleChoiceQuizQuestion(
37+
1,
38+
'Who are hip hops big three',
39+
new Map<AnswerChoice, string>([
40+
[AnswerChoice.A, 'Kendrick Lamar, J. Cole, and Drake'],
41+
[AnswerChoice.B, 'Tupac, Biggie, and Nas'],
42+
[AnswerChoice.C, 'Kanye West, Eminem, and Lil Wayne'],
43+
[AnswerChoice.D, 'K. Dot'],
44+
]),
45+
AnswerChoice.UNANSWERED,
46+
); // Provide an answer. | AnswerChoice.C, '%'
47+
}
48+
49+
private static makeQuestion2(): QuizQuestion {
50+
return new MultipleChoiceQuizQuestion(
51+
2,
52+
'what is the answer to life, the universe, and everything else?',
53+
new Map<AnswerChoice, string>([
54+
[AnswerChoice.A, '42'],
55+
[AnswerChoice.B, 'Jesus'],
56+
[AnswerChoice.C, 'N/A'],
57+
[AnswerChoice.D, 'Whatever you want it to be!'],
58+
]),
59+
AnswerChoice.UNANSWERED,
60+
); // Provide an answer. | AnswerChoice.A, '42'
61+
}
62+
}
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: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,14 @@
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';
5+
import { DasiaEnglishQuiz } from './dasia_english_quiz.js';
6+
import { ChigazoGrahamsQuiz } from './chigazo_graham_quiz.js';
47
import { JosephCaballeroQuiz } from './joseph_caballero_quiz.js';
58
import { OyeyemiJimohQuiz } from './oyeyemi_jimoh_quiz.js';
69
import { ShawnDunsmoreQuiz } from './shawn_dunsmore_quiz.js';
710
import { YafiahAbdullahQuiz } from './yafiah_abdullah_quiz.js';
11+
import { AmiyahJonesQuiz } from './amiyah_jones_quiz.js';
812

913
export const Quizzes = Symbol.for('Quizzes');
1014

@@ -15,8 +19,12 @@ const QUIZ_PROVIDERS = [
1519
YafiahAbdullahQuiz,
1620
AnotherQuiz,
1721
JosephCaballeroQuiz,
22+
AngelicaCQuiz,
1823
OyeyemiJimohQuiz,
1924
ShawnDunsmoreQuiz,
25+
DasiaEnglishQuiz,
26+
ChigazoGrahamsQuiz,
27+
AmiyahJonesQuiz
2028
];
2129

2230
@Module({

0 commit comments

Comments
 (0)