Skip to content

Commit a562f3e

Browse files
feat: adds A'nanatawa's custom quiz (code-differently#134)
* Updated ananatawas quiz,yaml, and quizzes module * Updated ananatawas quiz,quizzes, and yaml * Updated quizzes module,yaml, and ananatawaquiz * removed the 2 json files * reverted json file * fix: adds missing comma to quiz providers --------- Co-authored-by: Anthony D. Mays <[email protected]>
1 parent bf279ba commit a562f3e

File tree

3 files changed

+84
-0
lines changed

3 files changed

+84
-0
lines changed

lesson_03/quiz/quiz.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,11 @@ quiz:
5050
- $2y$10$FquR69q7W4E68TX/SNCB7u8Ri0DOFRDqsUPdGfuyIBjZJRVFkNI.6
5151
- $2y$10$FSWRA7hulVpyVxd8s67Nxuq/1cdmviW24qqoUbqihBf79cR.w9yly
5252
- $2y$10$Qy1IsNsfuJvA384ypL/72uWubUuNbMRp4LD6j/LM0RIH66D/HIjF6
53+
awatanana:
54+
- $2y$10$uFNj.ocmiXzuuNrZUoIL/OPDaNcu/39W9.BsAZ6zuN7QZLjHik8VG
55+
- $2y$10$TSqcVRhLIrH319zzXZJCMO9TY/Oz4IU96ZBEVk36y98DiwDSZun9G
56+
- $2y$10$MbdEN2Vo/.5Mf5Gc7w.MMuqpFNbBfjXAUTf.PnwzWISzDhcq/Z/Sq
57+
- $2y$10$V6g.2vivPqZpqbteSQ9eZea9LIgRmAXcFLHuFMuGZR7rBts8zePVu
5358
oliviajames:
5459
- $2y$10$XNIaT3YK/NmvATnebmrOHuIoSqsGlfqlW82R2NfFxEJn1CWmmzgzm
5560
- $2y$10$mdHWON2e8lS8HUQZkp5W0OoAd5xkdUCouXCeFPnoz3Ilpjv5Vb9uu
Lines changed: 77 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,77 @@
1+
import {
2+
AnswerChoice,
3+
MultipleChoiceQuizQuestion,
4+
QuizQuestion,
5+
QuizQuestionProvider,
6+
} from 'codedifferently-instructional';
7+
8+
export class AnanatawaQuiz implements QuizQuestionProvider {
9+
getProviderName(): string {
10+
return 'awatanana';
11+
}
12+
13+
makeQuizQuestions(): QuizQuestion[] {
14+
return [
15+
AnanatawaQuiz.makeQuestion0(),
16+
AnanatawaQuiz.makeQuestion1(),
17+
AnanatawaQuiz.makeQuestion2(),
18+
AnanatawaQuiz.makeQuestion3(),
19+
];
20+
}
21+
22+
private static makeQuestion0(): QuizQuestion {
23+
return new MultipleChoiceQuizQuestion(
24+
0,
25+
'What is a pull request?',
26+
new Map<AnswerChoice, string>([
27+
[AnswerChoice.A,'When someone asks to add their changes to the main project.'],
28+
[AnswerChoice.B,'A personal copy of someone elses project that you can make changes to.'],
29+
[AnswerChoice.C,'A toolbox where you can write, commit, and push code.'],
30+
[AnswerChoice.D, 'A request to pull the plug on a project.'],
31+
]),
32+
AnswerChoice.UNANSWERED,
33+
); // Replace `UNANSWERED` with the correct answer.
34+
}
35+
36+
private static makeQuestion1(): QuizQuestion {
37+
return new MultipleChoiceQuizQuestion(
38+
1,
39+
'What does the command git status do?',
40+
new Map<AnswerChoice, string>([
41+
[AnswerChoice.A, 'Make a new git repository'],
42+
[AnswerChoice.B, 'Checks the status of your repository'],
43+
[AnswerChoice.C, 'Stage a file for commit'],
44+
[AnswerChoice.D, 'List all branches in the repository'],
45+
]),
46+
AnswerChoice.UNANSWERED,
47+
); // Replace `UNANSWERED` with the correct answer.
48+
}
49+
50+
private static makeQuestion2(): QuizQuestion {
51+
return new MultipleChoiceQuizQuestion(
52+
2,
53+
'What does the command git pull origin do?',
54+
new Map<AnswerChoice, string>([
55+
[AnswerChoice.A, 'Push the latest changes from the remote repo.'],
56+
[AnswerChoice.B, 'Pull the latest changes from the remote repo.'],
57+
[AnswerChoice.C, 'Display the definition for Git.'],
58+
[AnswerChoice.D, 'Stage a file for commit.'],
59+
]),
60+
AnswerChoice.UNANSWERED,
61+
); // Replace `UNANSWERED` with the correct answer.
62+
}
63+
64+
private static makeQuestion3(): QuizQuestion {
65+
return new MultipleChoiceQuizQuestion(
66+
3,
67+
'What was the first homework assignment that Mr. Mays assigned Cohort 25.1?',
68+
new Map<AnswerChoice, string>([
69+
[AnswerChoice.A, 'Make an account on GitHub.com'],
70+
[AnswerChoice.B, 'Convert a Markdown file into HTML.'],
71+
[AnswerChoice.C, 'Create a personal README and submit via GitHub.'],
72+
[AnswerChoice.D,'Create a personal README and push to Github via VS Code.'],
73+
]),
74+
AnswerChoice.UNANSWERED,
75+
); // Replace `UNANSWERED` with the correct answer.
76+
}
77+
}

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ import { MercedesMathewsQuiz } from './mercedes_mathews_quiz.js';
1717
import { OliviaJamesQuiz } from './olivia_james_quiz.js';
1818
import { MontezBradleyQuiz } from './montez_quiz.js';
1919
import { RasheedMillerQuiz } from './rasheed_miller_quiz.js';
20+
import { AnanatawaQuiz } from './ananatawa_quiz.js';
2021

2122
export const Quizzes = Symbol.for('Quizzes');
2223

@@ -37,6 +38,7 @@ const QUIZ_PROVIDERS = [
3738
KhaylaSaundersQuiz,
3839
DylanLaffertyQuiz,
3940
RasheedMillerQuiz,
41+
AnanatawaQuiz,
4042
OliviaJamesQuiz,
4143
ChanelHuttQuiz,
4244
JeremiahWingQuiz,

0 commit comments

Comments
 (0)