Skip to content

Commit 5abe218

Browse files
JEKLUND251VicenteViguerasanthonydmays
authored
feat: adds Justin's custom quiz (#129)
* Create README.md * Update README.md * Update README.md * Create Images subfolder pictures * Add files via upload picture subfolder * Delete lesson_00/JustinEKlund.md/Images subfolder * Rename IMG_2810.jpg to Images subfolder * Rename Images subfolder to Images * Rename lesson_00/JustinEKlund.md/Images to lesson_00/JustinEKlund.md/Images file/img file * Add files via upload * Rename IMG_2810 (1).jpg to readme pic 1 * Update README.md * Delete lesson_00/JustinEKlund.md/Images files directory * Add files via upload * Delete lesson_00/JustinEKlund.md/Images file directory * Create txt * Add files via upload * Delete lesson_00/JustinEKlund.md/Images/txt * Update README.md * Fix: Punctuation and grammar * added in lesson 3 quiz work * commited the changes requested by anthony * chore: cleaning up errors in quiz for test run. * chore:pushing changes up * chore: delete lesson_04/anthonydmays/justineklund/README.md --------- Co-authored-by: Vicente Vigueras <[email protected]> Co-authored-by: Anthony D. Mays <[email protected]>
1 parent b87802c commit 5abe218

File tree

3 files changed

+69
-1
lines changed

3 files changed

+69
-1
lines changed

lesson_03/quiz/quiz.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,10 @@ quiz:
5050
- $2y$10$FquR69q7W4E68TX/SNCB7u8Ri0DOFRDqsUPdGfuyIBjZJRVFkNI.6
5151
- $2y$10$FSWRA7hulVpyVxd8s67Nxuq/1cdmviW24qqoUbqihBf79cR.w9yly
5252
- $2y$10$Qy1IsNsfuJvA384ypL/72uWubUuNbMRp4LD6j/LM0RIH66D/HIjF6
53+
justin:
54+
- $2y$10$yAoLMl8ij6NqmOWbedu/bu0jBUwJn29cr/l2riI9I89tSXvk6RD.q
55+
- $2y$10$6wlesIJWKciE1ljq3CC0W.kOlNyNhkCdUxaLUWFFd/4GKn5FUT/2O
56+
- $2y$10$5iFZunbLe8IG3LBzoRYGluE2.7gSl/L4cXEbib08pX3tYmiDyS/7G
5357
niapack:
5458
- $2y$10$AHKmPPaTlafHO3T5q..kAuAhAy4n8Kn.wcY7ZAeYgokCjitwyjqE2
5559
- $2y$10$Z0g.9UO7qwkwoeNe8byn3.MVNIiIKBxa6ztLVHzDz.m5Ao5ozGqh6
@@ -84,3 +88,4 @@ quiz:
8488
- $2y$10$7/GS4n5j/5TXQc5zjDzlc.2xBKwRqrsksWzcl7VKRwa.fDxzdficS
8589
- $2y$10$9mfdal67CXoVG2phPKe1s.BpAT6HQeyQIiDtStfFazkPMW2AaW6Zu
8690
- $2y$10$LiCnvad23bwZWZbxXLhs3.r/YdwIX9eAFtjofaW1AH3Htnc9sEU1G
91+
Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
import {
2+
AnswerChoice,
3+
MultipleChoiceQuizQuestion,
4+
QuizQuestion,
5+
QuizQuestionProvider,
6+
} from 'codedifferently-instructional';
7+
8+
export class JustinsQuiz implements QuizQuestionProvider {
9+
getProviderName(): string {
10+
return 'justin';
11+
}
12+
13+
makeQuizQuestions(): QuizQuestion[] {
14+
return [
15+
JustinsQuiz.makeQuestion0(),
16+
JustinsQuiz.makeQuestion1(),
17+
JustinsQuiz.makeQuestion2(),
18+
];
19+
}
20+
21+
private static makeQuestion0(): QuizQuestion {
22+
return new MultipleChoiceQuizQuestion(
23+
0,
24+
'How many planets are in our solar system?',
25+
new Map<AnswerChoice, string>([
26+
[AnswerChoice.A, '8'],
27+
[AnswerChoice.B, '9'],
28+
[AnswerChoice.C, '12'],
29+
[AnswerChoice.D, '10'],
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+
'How many states are there in the United States?',
39+
new Map<AnswerChoice, string>([
40+
[AnswerChoice.A, '53'],
41+
[AnswerChoice.B, '52'],
42+
[AnswerChoice.C, '48'],
43+
[AnswerChoice.D, '50'],
44+
]),
45+
AnswerChoice.UNANSWERED,
46+
); // Replace `UNANSWERED` with the correct answer.
47+
}
48+
private static makeQuestion2(): QuizQuestion {
49+
return new MultipleChoiceQuizQuestion(
50+
2,
51+
'What date does Christmas fall on?',
52+
new Map<AnswerChoice, string>([
53+
[AnswerChoice.A, 'December 25th'],
54+
[AnswerChoice.B, 'December 24th'],
55+
[AnswerChoice.C, 'December 26th'],
56+
[AnswerChoice.D, 'December 23rd'],
57+
]),
58+
AnswerChoice.UNANSWERED,
59+
); // Replace `UNANSWERED` with the correct answer.
60+
}
61+
}

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ import { MontezBradleyQuiz } from './montez_quiz.js';
2020
import { NiaPackquiz } from './nia_quiz.js';
2121
import { OliviaJamesQuiz } from './olivia_james_quiz.js';
2222
import { RasheedMillerQuiz } from './rasheed_miller_quiz.js';
23-
23+
import { JustinsQuiz } from './justin_eklund_quiz.js';
2424
export const Quizzes = Symbol.for('Quizzes');
2525

2626
// Add your quiz provider here.
@@ -40,13 +40,15 @@ const QUIZ_PROVIDERS = [
4040
KhaylaSaundersQuiz,
4141
DylanLaffertyQuiz,
4242
RasheedMillerQuiz,
43+
JustinsQuiz,
4344
NiaPackquiz,
4445
DavisDQuiz,
4546
AnanatawaQuiz,
4647
OliviaJamesQuiz,
4748
ChanelHuttQuiz,
4849
JeremiahWingQuiz,
4950
JasonWatsonQuiz,
51+
5052
];
5153

5254
@Module({

0 commit comments

Comments
 (0)