Skip to content

Commit 3d3b639

Browse files
authored
Merge branch 'main' into lesson03
2 parents 3449caa + bb21eb8 commit 3d3b639

File tree

4 files changed

+131
-0
lines changed

4 files changed

+131
-0
lines changed

lesson_03/quiz/quiz.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ quiz:
66
anotherone:
77
- $2y$10$8eHSzy3aCu4Ry3LzO9nWCeGpofSxsNVbnF.wCfn3ZADwQ6MEtN/KK
88
- $2y$10$dGB0CGv7.XQC5OqfyY6iXOiJsdVyxU3ve5YE0gt4m2I8P8H13lNXa
9+
jamescapparell:
10+
- $2y$10$iLvL/AaFPzcGZrcna7umMuHqkZe1f9at/ix77NUI6uakDGNuVKQCy
11+
- $2y$10$FLxmGXJLm5EziyhA5D33ju0kUjXhiDbuUdImciLQz8lBRu5ou0hee
12+
- $2y$10$hQTJ1d2giJ40AI8rSgBqWOij7j3WVqsvAMYOLFiixbYTcvETuF5cC
913
xaviercruz:
1014
- $2y$10$1WMmkMjazP78KVns1l85zOC5r8cwgTnxLLs/scOzIkgCQ8HP28Y.q
1115
- $2y$10$9D.oRC8h/PD/10NMSR6MMOzjVAJKm.vfw4te8Rxgw1M1.0Q9x8pjK
@@ -43,3 +47,7 @@ quiz:
4347
- $2y$10$ufNCdP1efvioBYIih6K92uye33p5ckN/IrxfCvw4n7agHjN8aNfhe
4448
- $2y$10$Mb7LA1kqlDRWlN9jdBYvF.u1B8cmJqXWkrxQeMr/3ETRVOAzFlflG
4549
- $2y$10$9bTVOlLmkj4y5f9u1b3sgeTQ9hIrVFrGiz71B0HTxiIidqq0VXHGS
50+
shawndunsmore:
51+
- $2y$10$Kpde4LAfDyEhgWezFoI5texc53Sge6QQs8y5hR8DA7zHfyK8It5LW
52+
- $2y$10$T061IZuccoHb2XGjaICB/Olchf62DqrSDVIE0TE9Q9qidfLAL7sHS
53+
- $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: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,15 @@ import { AmiyahJonesQuiz } from './amiyah_jones_quiz.js';
33
import { AngelicaCQuiz } from './angelica_c_quiz.js';
44
import { AnotherQuiz } from './another_quiz.js';
55
import { AnthonyMaysQuiz } from './anthony_mays_quiz.js';
6+
import { JamesCapparellQuiz } from './james_capparell_quiz.js';
7+
import { XavierCruzQuiz } from './xavier_cruz_quiz.js';
8+
import { DasiaEnglishQuiz } from './dasia_english_quiz.js';
69
import { ChigazoGrahamsQuiz } from './chigazo_graham_quiz.js';
710
import { DasiaEnglishQuiz } from './dasia_english_quiz.js';
811
import { JosephCaballeroQuiz } from './joseph_caballero_quiz.js';
912
import { OyeyemiJimohQuiz } from './oyeyemi_jimoh_quiz.js';
1013
import { XavierCruzQuiz } from './xavier_cruz_quiz.js';
14+
import { ShawnDunsmoreQuiz } from './shawn_dunsmore_quiz.js';
1115
import { YafiahAbdullahQuiz } from './yafiah_abdullah_quiz.js';
1216
import { ZionBuchananQuiz } from './zion_buchanan_quiz.js';
1317

@@ -17,10 +21,12 @@ export const Quizzes = Symbol.for('Quizzes');
1721
const QUIZ_PROVIDERS = [
1822
AnthonyMaysQuiz,
1923
YafiahAbdullahQuiz,
24+
JamesCapparellQuiz,
2025
AnotherQuiz,
2126
JosephCaballeroQuiz,
2227
AngelicaCQuiz,
2328
OyeyemiJimohQuiz,
29+
ShawnDunsmoreQuiz,
2430
DasiaEnglishQuiz,
2531
ChigazoGrahamsQuiz,
2632
AmiyahJonesQuiz,
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+
}

0 commit comments

Comments
 (0)