Skip to content

Commit d3119c4

Browse files
authored
Merge branch 'main' into DavidSmith-Lesson03
2 parents b665d5a + 03e8542 commit d3119c4

File tree

6 files changed

+285
-3
lines changed

6 files changed

+285
-3
lines changed

lesson_03/quiz/quiz.yaml

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,18 +4,22 @@ quiz:
44
- $2y$10$8eHSzy3aCu4Ry3LzO9nWCeGpofSxsNVbnF.wCfn3ZADwQ6MEtN/KK
55
- $2y$10$55EXRjF26JIgebtoH800ZOJecfefvMgHicuxf/rwTENuxiUaFQcNe
66
anotherone:
7-
- $2y$10$g1XJB.GyuK8RVdnc4JeU7ezsXL8DYgjS.KhqRLRh/PQnxdLUDL5tG
7+
- $2y$10$8eHSzy3aCu4Ry3LzO9nWCeGpofSxsNVbnF.wCfn3ZADwQ6MEtN/KK
88
- $2y$10$dGB0CGv7.XQC5OqfyY6iXOiJsdVyxU3ve5YE0gt4m2I8P8H13lNXa
99
davidsmith:
1010
- $2y$10$EM5346ILJER4xu66qf1OcuJ/7f6hCOb9z1OUHgSXvl3QuCohBySTm
1111
- $2y$10$gWIUYJPn94weKopOVQKTl.XOwODK1tamszmt4uXCJupZofi7vXPdq
1212
- $2y$10$eh1.Cd6tXSmolUnY02xwM.BVR7RkYqJIDHepPfk8wJBIwol4jRw0S
13+
jamescapparell:
14+
- $2y$10$iLvL/AaFPzcGZrcna7umMuHqkZe1f9at/ix77NUI6uakDGNuVKQCy
15+
- $2y$10$FLxmGXJLm5EziyhA5D33ju0kUjXhiDbuUdImciLQz8lBRu5ou0hee
16+
- $2y$10$hQTJ1d2giJ40AI8rSgBqWOij7j3WVqsvAMYOLFiixbYTcvETuF5cC
1317
xaviercruz:
1418
- $2y$10$1WMmkMjazP78KVns1l85zOC5r8cwgTnxLLs/scOzIkgCQ8HP28Y.q
1519
- $2y$10$9D.oRC8h/PD/10NMSR6MMOzjVAJKm.vfw4te8Rxgw1M1.0Q9x8pjK
1620
- $2y$10$ypLhtfxJikRhLaQdW0Y8GOEqO/X1uoBD8w.kSSSUPggBa9wHLkw0i
1721
- $2y$10$cYuji5D0xOEFAV2fyMaJAuaODeWEwIYu.X3089qnojdx3nQljil5G
18-
dasiaenglish:
22+
dasiaenglish:
1923
- $2y$10$ANtdDzA0GAqn/QeExPO/Du8LgHUwznRLxpv0W0ib2seYk23BZowOC
2024
- $2y$10$6vAkOUmpPrUtWrh010f8e.A4M9kEzuzCrQ8ghWI9hQSEsZeGHpQ9W
2125
- $2y$10$YYTJf2QW.BJST9EUB7NZneVpNkOywIfhsWRpxIsPBg/oTmgqoYWse
@@ -43,4 +47,15 @@ quiz:
4347
- $2y$10$QsN9VkjWORsKgZRiBT46VOUgc5HVnswKAT4uDbs7JYbTF7DdKbsw.
4448
- $2y$10$sqXEOL0L8o0kRyiAb.2s4u0RlBC2.LmOGDbGWXHj5IfBNwinkv2yq
4549
- $2y$10$HaWueXgrIzd7z8yf39HfVeTjjyr.Kgx0GFBqwCRSzW3zRSreN19yi
46-
50+
tommytran:
51+
- $2y$10$6Mf9m8JXRHUyCgRNPn4nceimRZVOhtmsZbOGoFnI4ZJp..RluHmwy
52+
- $2y$10$Xr6W53IVq52orDvf6.TQQuXeMGaysQdgAu1cm5DYi1NyCskG2ByPe
53+
- $2y$10$x8BG/EcIbVohTU1s/thyc.TIzlfc8f/aVZaD4/1yMpcks2OWzKKMe
54+
zionbuchanan:
55+
- $2y$10$ufNCdP1efvioBYIih6K92uye33p5ckN/IrxfCvw4n7agHjN8aNfhe
56+
- $2y$10$Mb7LA1kqlDRWlN9jdBYvF.u1B8cmJqXWkrxQeMr/3ETRVOAzFlflG
57+
- $2y$10$9bTVOlLmkj4y5f9u1b3sgeTQ9hIrVFrGiz71B0HTxiIidqq0VXHGS
58+
shawndunsmore:
59+
- $2y$10$Kpde4LAfDyEhgWezFoI5texc53Sge6QQs8y5hR8DA7zHfyK8It5LW
60+
- $2y$10$T061IZuccoHb2XGjaICB/Olchf62DqrSDVIE0TE9Q9qidfLAL7sHS
61+
- $2y$10$T061IZuccoHb2XGjaICB/Olchf62DqrSDVIE0TE9Q9qidfLAL7sHS
Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
import {
2+
AnswerChoice,
3+
MultipleChoiceQuizQuestion,
4+
QuizQuestion,
5+
QuizQuestionProvider,
6+
} from 'codedifferently-instructional';
7+
8+
export class JamesCapparellQuiz implements QuizQuestionProvider {
9+
getProviderName(): string {
10+
return 'jamescapparell';
11+
}
12+
13+
makeQuizQuestions(): QuizQuestion[] {
14+
return [
15+
JamesCapparellQuiz.makeQuestion0(),
16+
JamesCapparellQuiz.makeQuestion1(),
17+
JamesCapparellQuiz.makeQuestion2(),
18+
];
19+
}
20+
21+
private static makeQuestion0(): QuizQuestion {
22+
return new MultipleChoiceQuizQuestion(
23+
0,
24+
'What county in Delaware is Code differently offices in?',
25+
new Map<AnswerChoice, string>([
26+
[AnswerChoice.A, 'Sussex County'],
27+
[AnswerChoice.B, 'Kent County'],
28+
[AnswerChoice.C, 'New Castle County'],
29+
[AnswerChoice.D, 'Lancaster County'],
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 video game charcter has the most games in their series?',
38+
new Map<AnswerChoice, string>([
39+
[AnswerChoice.A, 'Mario'],
40+
[AnswerChoice.B, 'Sonic'],
41+
[AnswerChoice.C, 'Mega Man'],
42+
[AnswerChoice.D, 'Pikachu'],
43+
]),
44+
AnswerChoice.UNANSWERED,
45+
); // Replace `UNANSWERED` with the correct answer.
46+
}
47+
48+
private static makeQuestion2(): QuizQuestion {
49+
return new QuizQuestion(
50+
2,
51+
'Type the full answer while filling in the blanks! A _____ that transforms ____ data into ____ data using automatically executed, pre-programmed ____.',
52+
'A _____ that transforms ____ data into ____ data using automatically executed, pre-programmed ____.',
53+
); // Provide an answer.
54+
}
55+
}

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

Lines changed: 14 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 { AnotherQuiz } from './another_quiz.js';
34
import { AngelicaCQuiz } from './angelica_c_quiz.js';
45
import { AnthonyMaysQuiz } from './anthony_mays_quiz.js';
56
import { ChigazoGrahamsQuiz } from './chigazo_graham_quiz.js';
@@ -9,6 +10,14 @@ import { JosephCaballeroQuiz } from './joseph_caballero_quiz.js';
910
import { OyeyemiJimohQuiz } from './oyeyemi_jimoh_quiz.js';
1011
import { XavierCruzQuiz } from './xavier_cruz_quiz.js';
1112
import { YafiahAbdullahQuiz } from './yafiah_abdullah_quiz.js';
13+
import { JamesCapparellQuiz } from './james_capparell_quiz.js';
14+
import { JosephCaballeroQuiz } from './joseph_caballero_quiz.js';
15+
import { OyeyemiJimohQuiz } from './oyeyemi_jimoh_quiz.js';
16+
import { ShawnDunsmoreQuiz } from './shawn_dunsmore_quiz.js';
17+
import { TommyTranQuiz } from './tommy.tran.quiz.js';
18+
import { XavierCruzQuiz } from './xavier_cruz_quiz.js';
19+
import { YafiahAbdullahQuiz } from './yafiah_abdullah_quiz.js';
20+
import { ZionBuchananQuiz } from './zion_buchanan_quiz.js';
1221

1322
export const Quizzes = Symbol.for('Quizzes');
1423

@@ -17,13 +26,18 @@ const QUIZ_PROVIDERS = [
1726
AnthonyMaysQuiz,
1827
YafiahAbdullahQuiz,
1928
DavidSmithQuiz,
29+
JamesCapparellQuiz,
30+
AnotherQuiz,
2031
JosephCaballeroQuiz,
2132
AngelicaCQuiz,
2233
OyeyemiJimohQuiz,
34+
ShawnDunsmoreQuiz,
2335
DasiaEnglishQuiz,
2436
ChigazoGrahamsQuiz,
2537
AmiyahJonesQuiz,
2638
XavierCruzQuiz,
39+
ZionBuchananQuiz,
40+
TommyTranQuiz,
2741
];
2842

2943
@Module({
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 ShawnDunsmoreQuiz implements QuizQuestionProvider {
9+
getProviderName(): string {
10+
return 'shawndunsmore';
11+
}
12+
13+
makeQuizQuestions(): QuizQuestion[] {
14+
return [
15+
ShawnDunsmoreQuiz.makeQuestion0(),
16+
ShawnDunsmoreQuiz.makeQuestion1(),
17+
ShawnDunsmoreQuiz.makeQuestion2(),
18+
];
19+
}
20+
21+
private static makeQuestion0(): QuizQuestion {
22+
return new MultipleChoiceQuizQuestion(
23+
0,
24+
'What is Davids Favorite Color?',
25+
new Map<AnswerChoice, string>([
26+
[AnswerChoice.A, 'Idc'],
27+
[AnswerChoice.B, 'Blue'],
28+
[AnswerChoice.C, 'Black'],
29+
[AnswerChoice.D, 'Whatever you think it is.'],
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 Jordan famous for?',
39+
new Map<AnswerChoice, string>([
40+
[AnswerChoice.A, 'Photography'],
41+
[AnswerChoice.B, 'Being short'],
42+
[AnswerChoice.C, 'Pickleball'],
43+
[AnswerChoice.D, 'Trampoline Dunking.'],
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+
'How mnay states are there?',
53+
new Map<AnswerChoice, string>([
54+
[AnswerChoice.A, '50'],
55+
[AnswerChoice.B, '35'],
56+
[AnswerChoice.C, '20'],
57+
[AnswerChoice.D, '65'],
58+
]),
59+
AnswerChoice.UNANSWERED,
60+
); // Replace `UNANSWERED` with the correct answer.
61+
}
62+
}
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 TommyTranQuiz implements QuizQuestionProvider {
9+
getProviderName(): string {
10+
return 'tommytran';
11+
}
12+
13+
makeQuizQuestions(): QuizQuestion[] {
14+
return [
15+
TommyTranQuiz.makeQuestion0(),
16+
TommyTranQuiz.makeQuestion1(),
17+
TommyTranQuiz.makeQuestion2(),
18+
];
19+
}
20+
21+
private static makeQuestion0(): QuizQuestion {
22+
return new MultipleChoiceQuizQuestion(
23+
0,
24+
'What is the capital city of Japan?',
25+
new Map<AnswerChoice, string>([
26+
[AnswerChoice.A, 'Seoul'],
27+
[AnswerChoice.B, 'Tokyo'],
28+
[AnswerChoice.C, 'Beijing'],
29+
[AnswerChoice.D, 'Bangkok'],
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 planet is known as the "Red Planet?',
39+
new Map<AnswerChoice, string>([
40+
[AnswerChoice.A, 'Venus'],
41+
[AnswerChoice.B, 'Jupiter'],
42+
[AnswerChoice.C, 'Mars'],
43+
[AnswerChoice.D, 'Saturn'],
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+
'Who wrote the play "Romeo and Juliet?',
53+
new Map<AnswerChoice, string>([
54+
[AnswerChoice.A, 'Charles Dickens'],
55+
[AnswerChoice.B, 'William Shakespeare'],
56+
[AnswerChoice.C, 'Jane Austen'],
57+
[AnswerChoice.D, 'Mark Twain'],
58+
]),
59+
AnswerChoice.UNANSWERED,
60+
); // Replace `UNANSWERED` with the correct answer.
61+
}
62+
}
Lines changed: 74 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
1+
import {
2+
AnswerChoice,
3+
MultipleChoiceQuizQuestion,
4+
QuizQuestion,
5+
QuizQuestionProvider,
6+
} from 'codedifferently-instructional';
7+
8+
export class ZionBuchananQuiz implements QuizQuestionProvider {
9+
getProviderName(): string {
10+
return 'zionbuchanan';
11+
}
12+
13+
makeQuizQuestions(): QuizQuestion[] {
14+
return [
15+
ZionBuchananQuiz.makeQuestion0(),
16+
ZionBuchananQuiz.makeQuestion1(),
17+
ZionBuchananQuiz.makeQuestion2(),
18+
];
19+
}
20+
21+
private static makeQuestion0(): QuizQuestion {
22+
return new MultipleChoiceQuizQuestion(
23+
0,
24+
'What is a computer?',
25+
new Map<AnswerChoice, string>([
26+
[AnswerChoice.A, 'A machine that transforms input data to output'],
27+
[AnswerChoice.B, 'A device that only stores information'],
28+
[AnswerChoice.C, 'A system that requires no user input to function'],
29+
[
30+
AnswerChoice.D,
31+
'A machine that operates only when connected to the internet.',
32+
],
33+
]),
34+
AnswerChoice.UNANSWERED,
35+
); // Replace `UNANSWERED` with the correct answer.
36+
}
37+
38+
private static makeQuestion1(): QuizQuestion {
39+
return new MultipleChoiceQuizQuestion(
40+
1,
41+
'Why do we use IDEs?',
42+
new Map<AnswerChoice, string>([
43+
[AnswerChoice.A, 'to issue tracking and debugging'],
44+
[AnswerChoice.B, 'Managing source control'],
45+
[AnswerChoice.C, 'Refactoring code'],
46+
[AnswerChoice.D, 'All of the above'],
47+
]),
48+
AnswerChoice.UNANSWERED,
49+
); // Replace `UNANSWERED` with the correct answer.
50+
}
51+
52+
private static makeQuestion2(): QuizQuestion {
53+
return new MultipleChoiceQuizQuestion(
54+
2,
55+
'What is a branch?',
56+
new Map<AnswerChoice, string>([
57+
[
58+
AnswerChoice.A,
59+
'A kind of software program that runs on every computer automatically.',
60+
],
61+
[AnswerChoice.B, 'Both Choices A and D'],
62+
[
63+
AnswerChoice.C,
64+
'A specialized type of car engine designed for off-road vehicles.',
65+
],
66+
[
67+
AnswerChoice.D,
68+
'A copy of the repository that allows you to make changes and merge them back later.',
69+
],
70+
]),
71+
AnswerChoice.UNANSWERED,
72+
); // Replace `UNANSWERED` with the correct answer.
73+
}
74+
}

0 commit comments

Comments
 (0)