Skip to content

Commit 2b9355e

Browse files
committed
Created my quiz and added my answers.
1 parent 1b3c1d5 commit 2b9355e

File tree

3 files changed

+84
-1
lines changed

3 files changed

+84
-1
lines changed

lesson_03/quiz/quiz.yaml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,4 +50,9 @@ quiz:
5050
shawndunsmore:
5151
- $2y$10$Kpde4LAfDyEhgWezFoI5texc53Sge6QQs8y5hR8DA7zHfyK8It5LW
5252
- $2y$10$T061IZuccoHb2XGjaICB/Olchf62DqrSDVIE0TE9Q9qidfLAL7sHS
53-
- $2y$10$T061IZuccoHb2XGjaICB/Olchf62DqrSDVIE0TE9Q9qidfLAL7sHS
53+
- $2y$10$T061IZuccoHb2XGjaICB/Olchf62DqrSDVIE0TE9Q9qidfLAL7sHS
54+
chelseaogbonnia:
55+
- $2y$10$zToVGnZqyIwx0GGE.19Cve8sJ9enR1V0hGtssvR/8l42AcsR10aJS
56+
- $2y$10$dkWnar/ZXMr9ndtRDcbTbe/HN3DhuULPoZhTx/xATi.UYQ0DUIx1W
57+
- $2y$10$.Cw9Sjf6Pf9K8EsThegQ5e8BMoJdLl40CCuJ2FKHLar1k8hVfR9fu
58+
- $2y$10$.pmOuTs0Oqjfhn9mMIQCQu7Fbe1ZOZmZIbTGqqul.hnVLqIV6bn/W
Lines changed: 76 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,76 @@
1+
import {
2+
AnswerChoice,
3+
MultipleChoiceQuizQuestion,
4+
QuizQuestion,
5+
QuizQuestionProvider,
6+
} from 'codedifferently-instructional';
7+
8+
export class ChelseaOgbonniaQuiz implements QuizQuestionProvider {
9+
getProviderName(): string {
10+
return 'chelseaogbonnia';
11+
}
12+
13+
makeQuizQuestions(): QuizQuestion[] {
14+
return [
15+
ChelseaOgbonniaQuiz.makeQuestion0(),
16+
ChelseaOgbonniaQuiz.makeQuestion1(),
17+
ChelseaOgbonniaQuiz.makeQuestion2(),
18+
ChelseaOgbonniaQuiz.makeQuestion3(),
19+
];
20+
}
21+
22+
private static makeQuestion0(): QuizQuestion {
23+
return new MultipleChoiceQuizQuestion(
24+
0,
25+
'Which git command combines the changes from one branch to the current branch?',
26+
new Map<AnswerChoice, string>([
27+
[AnswerChoice.A, 'git branch -d <branchname>'],
28+
[AnswerChoice.B, 'git merge <branchname>'],
29+
[AnswerChoice.C, 'git branch'],
30+
[AnswerChoice.D, 'git add <filename>'],
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+
'Which git command is used fetch and download content from a remote repository to update the local repository?',
40+
new Map<AnswerChoice, string>([
41+
[AnswerChoice.A, 'git fetch'],
42+
[AnswerChoice.B, 'git merge'],
43+
[AnswerChoice.C, 'git clone'],
44+
[AnswerChoice.D, 'git pull'],
45+
]),
46+
AnswerChoice.UNANSWERED,
47+
); // Replace `UNANSWERED` with the correct answer.
48+
}
49+
private static makeQuestion2(): QuizQuestion {
50+
return new MultipleChoiceQuizQuestion(
51+
2,
52+
'Which Git command is NOT used to sync repositories?',
53+
new Map<AnswerChoice, string>([
54+
[AnswerChoice.A, 'git push'],
55+
[AnswerChoice.B, 'git sync'],
56+
[AnswerChoice.C, 'git pull'],
57+
[AnswerChoice.D, 'git merge'],
58+
]),
59+
AnswerChoice.UNANSWERED,
60+
); // Replace `UNANSWERED` with the correct answer.
61+
}
62+
63+
private static makeQuestion3(): QuizQuestion {
64+
return new MultipleChoiceQuizQuestion(
65+
3,
66+
'Which git command creates a new Git repository?',
67+
new Map<AnswerChoice, string>([
68+
[AnswerChoice.A, 'git init'],
69+
[AnswerChoice.B, 'git clone'],
70+
[AnswerChoice.C, 'git folder <repositoryname>'],
71+
[AnswerChoice.D, 'git add <repositoryname>'],
72+
]),
73+
AnswerChoice.UNANSWERED,
74+
); // Replace `UNANSWERED` with the correct answer.
75+
}
76+
}

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import { AmiyahJonesQuiz } from './amiyah_jones_quiz.js';
33
import { AngelicaCQuiz } from './angelica_c_quiz.js';
44
import { AnotherQuiz } from './another_quiz.js';
55
import { AnthonyMaysQuiz } from './anthony_mays_quiz.js';
6+
import { ChelseaOgbonniaQuiz } from './chelsea_ogbonnia_quiz.js';
67
import { ChigazoGrahamsQuiz } from './chigazo_graham_quiz.js';
78
import { DasiaEnglishQuiz } from './dasia_english_quiz.js';
89
import { JamesCapparellQuiz } from './james_capparell_quiz.js';
@@ -30,6 +31,7 @@ const QUIZ_PROVIDERS = [
3031
AmiyahJonesQuiz,
3132
XavierCruzQuiz,
3233
ZionBuchananQuiz,
34+
ChelseaOgbonniaQuiz,
3335
];
3436

3537
@Module({

0 commit comments

Comments
 (0)