Skip to content

Commit 5596867

Browse files
author
“Tezz03”
committed
fix: questions for pull request and review
1 parent d7940e1 commit 5596867

File tree

3 files changed

+71
-0
lines changed

3 files changed

+71
-0
lines changed

lesson_03/quiz/quiz.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,3 +26,7 @@ quiz:
2626
- $2y$10$FquR69q7W4E68TX/SNCB7u8Ri0DOFRDqsUPdGfuyIBjZJRVFkNI.6
2727
- $2y$10$FSWRA7hulVpyVxd8s67Nxuq/1cdmviW24qqoUbqihBf79cR.w9yly
2828
- $2y$10$Qy1IsNsfuJvA384ypL/72uWubUuNbMRp4LD6j/LM0RIH66D/HIjF6
29+
montezbradley:
30+
- $2y$10$W3vj0qJcRoNY9u5GNYLddOMlwMSfHSXrTwfLMVUSDTqgQFeqLLQbG
31+
- $2y$10$Cwm6LN1BoRoAEPiVPl4lLOV3o4GY84GsQEUS3.SwBmyvOHebr2r9e
32+
- $2y$10$DT/fZKklOTHbpUEuzRg8nuNbDjapMm81po74KxIJ4htF3jR9VhmmC
Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
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+
'How would you commit your code',
39+
new Map<AnswerChoice, string>([
40+
[AnswerChoice.A, 'git commit -m "" '],
41+
[AnswerChoice.B, 'git info'],
42+
[AnswerChoice.C, 'git commit'],
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+
'How would you push your vs code main to replace your main branch in github ',
53+
new Map<AnswerChoice, string>([
54+
[
55+
AnswerChoice.A,
56+
'pull your commits to vs code, git reset --hard upstream/main, then git push --force',
57+
],
58+
[AnswerChoice.B, 'git reset, then git push --force'],
59+
[AnswerChoice.C, 'git info, then git pull, final step is git push'],
60+
[AnswerChoice.D, 'git push after that git reset then git pull'],
61+
]),
62+
AnswerChoice.UNANSWERED,
63+
);
64+
}
65+
}

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 { MontezBradleyQuiz } from './montez_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+
MontezBradleyQuiz,
2123
];
2224

2325
@Module({

0 commit comments

Comments
 (0)