Skip to content

Commit 98f8d32

Browse files
feat: adds quiz for Chelsea (#126)
* Create chelseaogbonnia's readme * Update and rename lesson_00/chelseaogbonnia to lesson_00/chelsea_ogbonnia/ReadME.md * Rename ReadME.md to README.md * Create style.css The CSS file to make my HTML look like a Github markdown. * Created index.html This is the markdown-to-html file with semantic html practice. * Commit Message: Testing * chore: remove invalid files Signed-off-by: Anthony D. Mays <[email protected]> * Delete lesson_02/lib/typescript/codedifferently-instructional/package-lock.json * Created my quiz and added my answers. --------- Signed-off-by: Anthony D. Mays <[email protected]> Co-authored-by: Anthony D. Mays <[email protected]> Co-authored-by: Anthony D. Mays <[email protected]>
1 parent 6cfc5d6 commit 98f8d32

File tree

3 files changed

+83
-0
lines changed

3 files changed

+83
-0
lines changed

lesson_03/quiz/quiz.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,3 +59,8 @@ quiz:
5959
- $2y$10$Kpde4LAfDyEhgWezFoI5texc53Sge6QQs8y5hR8DA7zHfyK8It5LW
6060
- $2y$10$T061IZuccoHb2XGjaICB/Olchf62DqrSDVIE0TE9Q9qidfLAL7sHS
6161
- $2y$10$T061IZuccoHb2XGjaICB/Olchf62DqrSDVIE0TE9Q9qidfLAL7sHS
62+
chelseaogbonnia:
63+
- $2y$10$zToVGnZqyIwx0GGE.19Cve8sJ9enR1V0hGtssvR/8l42AcsR10aJS
64+
- $2y$10$dkWnar/ZXMr9ndtRDcbTbe/HN3DhuULPoZhTx/xATi.UYQ0DUIx1W
65+
- $2y$10$.Cw9Sjf6Pf9K8EsThegQ5e8BMoJdLl40CCuJ2FKHLar1k8hVfR9fu
66+
- $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';
@@ -33,6 +34,7 @@ const QUIZ_PROVIDERS = [
3334
XavierCruzQuiz,
3435
LjMcwilliamsQuiz,
3536
ZionBuchananQuiz,
37+
ChelseaOgbonniaQuiz,
3638
TommyTranQuiz,
3739
];
3840

0 commit comments

Comments
 (0)