Skip to content

Commit 34b774e

Browse files
committed
Updated ananatawas quiz,yaml, and quizzes module
1 parent d7940e1 commit 34b774e

File tree

3 files changed

+87
-0
lines changed

3 files changed

+87
-0
lines changed

lesson_03/quiz/quiz.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,3 +26,11 @@ quiz:
2626
- $2y$10$FquR69q7W4E68TX/SNCB7u8Ri0DOFRDqsUPdGfuyIBjZJRVFkNI.6
2727
- $2y$10$FSWRA7hulVpyVxd8s67Nxuq/1cdmviW24qqoUbqihBf79cR.w9yly
2828
- $2y$10$Qy1IsNsfuJvA384ypL/72uWubUuNbMRp4LD6j/LM0RIH66D/HIjF6
29+
awatanana:
30+
- $2y$10$uFNj.ocmiXzuuNrZUoIL/OPDaNcu/39W9.BsAZ6zuN7QZLjHik8VG
31+
- $2y$10$TSqcVRhLIrH319zzXZJCMO9TY/Oz4IU96ZBEVk36y98DiwDSZun9G
32+
- $2y$10$MbdEN2Vo/.5Mf5Gc7w.MMuqpFNbBfjXAUTf.PnwzWISzDhcq/Z/Sq
33+
- $2y$10$V6g.2vivPqZpqbteSQ9eZea9LIgRmAXcFLHuFMuGZR7rBts8zePVu
34+
35+
36+
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
@@ -6,6 +6,7 @@ import { Jbeyquiz } from './jbeyquiz.js';
66
import { MercedesMathewsQuiz } from './mercedes_mathews_quiz.js';
77
import { DavidAdenaikeQuiz } from './david_adenaike_quiz.js';
88
import { RasheedMillerQuiz } from './rasheed_miller_quiz.js';
9+
import { AnanatawaQuiz } from './ananatawa_quiz.js';
910

1011
export const Quizzes = Symbol.for('Quizzes');
1112

@@ -18,6 +19,7 @@ const QUIZ_PROVIDERS = [
1819
Jbeyquiz,
1920
DavidAdenaikeQuiz,
2021
RasheedMillerQuiz,
22+
AnanatawaQuiz
2123
];
2224

2325
@Module({

0 commit comments

Comments
 (0)