Skip to content

Commit 915afa7

Browse files
Tezz03Montez Bradley“Tezz03”VicenteViguerasanthonydmays
authored
feat: adds Montez's custom quiz (#121)
* first message * Update README.md * Update README.md * Update README.md * Update README.md * Update README.md * Update README.md * Update README.md * Update README.md * lesson00 update * Delete lesson_00/lesson_00/montezbradley directory * Fix: Typos * updated lesson03 --------- Co-authored-by: Montez Bradley <[email protected]> Co-authored-by: “Tezz03” <“[email protected]”> Co-authored-by: Vicente Vigueras <[email protected]> Co-authored-by: Anthony D. Mays <[email protected]>
1 parent b1a2159 commit 915afa7

File tree

3 files changed

+69
-0
lines changed

3 files changed

+69
-0
lines changed

lesson_03/quiz/quiz.yaml

+4
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,10 @@ quiz:
3434
- $2y$10$hRwUbEYSqz761B.cG79T2uYsYPiEtKu.JgD3Aj7.Mofx27TtX5YHa
3535
- $2y$10$qE/gXxpq62FEGJOJd9MDA.vpDYLTNSsZbqZLpD/0368CKkcNBzW1y
3636
- $2y$10$yI/2BgOyqQfLdHM3ixPE5uLu89su/sHRJB2c5szDFIAYXDhRakS.C
37+
montezbradley:
38+
- $2y$10$W3vj0qJcRoNY9u5GNYLddOMlwMSfHSXrTwfLMVUSDTqgQFeqLLQbG
39+
- $2y$10$Cwm6LN1BoRoAEPiVPl4lLOV3o4GY84GsQEUS3.SwBmyvOHebr2r9e
40+
- $2y$10$DT/fZKklOTHbpUEuzRg8nuNbDjapMm81po74KxIJ4htF3jR9VhmmC
3741
davidadenaike:
3842
- $2y$10$CCxBimjXsumkjTLWRWqibue0VeGel6Idfb/2q3y.mIuKHbkWVTsx6
3943
- $2y$10$/z0Ri9Fg7pOXUFYsOErj.Ol8Hxcy7zwqWezLTMWVtFv6tzvkCrJti
+63
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
import {
2+
AnswerChoice,
3+
MultipleChoiceQuizQuestion,
4+
QuizQuestion,
5+
QuizQuestionProvider,
6+
} from 'codedifferently-instructional';
7+
8+
export class MontezBradleyQuiz implements QuizQuestionProvider {
9+
getProviderName(): string {
10+
return 'montezbradley';
11+
}
12+
13+
makeQuizQuestions(): QuizQuestion[] {
14+
return [
15+
MontezBradleyQuiz.makeQuestion0(),
16+
MontezBradleyQuiz.makeQuestion1(),
17+
MontezBradleyQuiz.makeQuestion2(),
18+
];
19+
}
20+
21+
private static makeQuestion0(): QuizQuestion {
22+
return new MultipleChoiceQuizQuestion(
23+
0,
24+
'What Git command is used to check the current status of a repository?',
25+
new Map<AnswerChoice, string>([
26+
[AnswerChoice.A, 'git status'],
27+
[AnswerChoice.B, 'git info'],
28+
[AnswerChoice.C, 'git check-status'],
29+
[AnswerChoice.D, 'git current'],
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 command is used to save all changes and create a commit in Git?',
39+
new Map<AnswerChoice, string>([
40+
[AnswerChoice.A, 'git status'],
41+
[AnswerChoice.B, 'git info'],
42+
[AnswerChoice.C, 'git check-status'],
43+
[AnswerChoice.D, 'git add git commit -m "Your commit message'],
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+
'What Git command is used to check the current status of a repository',
53+
new Map<AnswerChoice, string>([
54+
[AnswerChoice.A, 'git status'],
55+
[AnswerChoice.B, 'git verify'],
56+
[AnswerChoice.C, 'git info'],
57+
[AnswerChoice.D, 'git check-status'],
58+
]),
59+
AnswerChoice.UNANSWERED,
60+
);
61+
}
62+
63+
}

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

+2
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ import { JeremiahWingQuiz } from './jeremiah_wing_quiz.js';
1313
import { KhaylaSaundersQuiz } from './khayla_quiz.js';
1414
import { MeikoStephensQuiz } from './meiko_stephens_quiz.js';
1515
import { MercedesMathewsQuiz } from './mercedes_mathews_quiz.js';
16+
import { MontezBradleyQuiz } from './montez_quiz.js';
1617
import { RasheedMillerQuiz } from './rasheed_miller_quiz.js';
1718

1819
export const Quizzes = Symbol.for('Quizzes');
@@ -25,6 +26,7 @@ const QUIZ_PROVIDERS = [
2526
MeikoStephensQuiz,
2627
MercedesMathewsQuiz,
2728
Jbeyquiz,
29+
MontezBradleyQuiz,
2830
Bryanasingletonbarnhart,
2931
EzraQuiz,
3032
DavidAdenaikeQuiz,

0 commit comments

Comments
 (0)