diff --git a/lesson_03/quiz/quiz.yaml b/lesson_03/quiz/quiz.yaml index 867a3bf5f..8b195254c 100644 --- a/lesson_03/quiz/quiz.yaml +++ b/lesson_03/quiz/quiz.yaml @@ -59,3 +59,8 @@ quiz: - $2y$10$Kpde4LAfDyEhgWezFoI5texc53Sge6QQs8y5hR8DA7zHfyK8It5LW - $2y$10$T061IZuccoHb2XGjaICB/Olchf62DqrSDVIE0TE9Q9qidfLAL7sHS - $2y$10$T061IZuccoHb2XGjaICB/Olchf62DqrSDVIE0TE9Q9qidfLAL7sHS + chelseaogbonnia: + - $2y$10$zToVGnZqyIwx0GGE.19Cve8sJ9enR1V0hGtssvR/8l42AcsR10aJS + - $2y$10$dkWnar/ZXMr9ndtRDcbTbe/HN3DhuULPoZhTx/xATi.UYQ0DUIx1W + - $2y$10$.Cw9Sjf6Pf9K8EsThegQ5e8BMoJdLl40CCuJ2FKHLar1k8hVfR9fu + - $2y$10$.pmOuTs0Oqjfhn9mMIQCQu7Fbe1ZOZmZIbTGqqul.hnVLqIV6bn/W diff --git a/lesson_03/quiz/src/quizzes/chelsea_ogbonnia_quiz.ts b/lesson_03/quiz/src/quizzes/chelsea_ogbonnia_quiz.ts new file mode 100644 index 000000000..95ddb11d5 --- /dev/null +++ b/lesson_03/quiz/src/quizzes/chelsea_ogbonnia_quiz.ts @@ -0,0 +1,76 @@ +import { + AnswerChoice, + MultipleChoiceQuizQuestion, + QuizQuestion, + QuizQuestionProvider, +} from 'codedifferently-instructional'; + +export class ChelseaOgbonniaQuiz implements QuizQuestionProvider { + getProviderName(): string { + return 'chelseaogbonnia'; + } + + makeQuizQuestions(): QuizQuestion[] { + return [ + ChelseaOgbonniaQuiz.makeQuestion0(), + ChelseaOgbonniaQuiz.makeQuestion1(), + ChelseaOgbonniaQuiz.makeQuestion2(), + ChelseaOgbonniaQuiz.makeQuestion3(), + ]; + } + + private static makeQuestion0(): QuizQuestion { + return new MultipleChoiceQuizQuestion( + 0, + 'Which git command combines the changes from one branch to the current branch?', + new Map([ + [AnswerChoice.A, 'git branch -d '], + [AnswerChoice.B, 'git merge '], + [AnswerChoice.C, 'git branch'], + [AnswerChoice.D, 'git add '], + ]), + AnswerChoice.UNANSWERED, + ); // Replace `UNANSWERED` with the correct answer. + } + + private static makeQuestion1(): QuizQuestion { + return new MultipleChoiceQuizQuestion( + 1, + 'Which git command is used fetch and download content from a remote repository to update the local repository?', + new Map([ + [AnswerChoice.A, 'git fetch'], + [AnswerChoice.B, 'git merge'], + [AnswerChoice.C, 'git clone'], + [AnswerChoice.D, 'git pull'], + ]), + AnswerChoice.UNANSWERED, + ); // Replace `UNANSWERED` with the correct answer. + } + private static makeQuestion2(): QuizQuestion { + return new MultipleChoiceQuizQuestion( + 2, + 'Which Git command is NOT used to sync repositories?', + new Map([ + [AnswerChoice.A, 'git push'], + [AnswerChoice.B, 'git sync'], + [AnswerChoice.C, 'git pull'], + [AnswerChoice.D, 'git merge'], + ]), + AnswerChoice.UNANSWERED, + ); // Replace `UNANSWERED` with the correct answer. + } + + private static makeQuestion3(): QuizQuestion { + return new MultipleChoiceQuizQuestion( + 3, + 'Which git command creates a new Git repository?', + new Map([ + [AnswerChoice.A, 'git init'], + [AnswerChoice.B, 'git clone'], + [AnswerChoice.C, 'git folder '], + [AnswerChoice.D, 'git add '], + ]), + AnswerChoice.UNANSWERED, + ); // Replace `UNANSWERED` with the correct answer. + } +} diff --git a/lesson_03/quiz/src/quizzes/quizzes.module.ts b/lesson_03/quiz/src/quizzes/quizzes.module.ts index 19ca16db9..ad8dcbeea 100644 --- a/lesson_03/quiz/src/quizzes/quizzes.module.ts +++ b/lesson_03/quiz/src/quizzes/quizzes.module.ts @@ -3,6 +3,7 @@ import { AmiyahJonesQuiz } from './amiyah_jones_quiz.js'; import { AngelicaCQuiz } from './angelica_c_quiz.js'; import { AnotherQuiz } from './another_quiz.js'; import { AnthonyMaysQuiz } from './anthony_mays_quiz.js'; +import { ChelseaOgbonniaQuiz } from './chelsea_ogbonnia_quiz.js'; import { ChigazoGrahamsQuiz } from './chigazo_graham_quiz.js'; import { DasiaEnglishQuiz } from './dasia_english_quiz.js'; import { JamesCapparellQuiz } from './james_capparell_quiz.js'; @@ -33,6 +34,7 @@ const QUIZ_PROVIDERS = [ XavierCruzQuiz, LjMcwilliamsQuiz, ZionBuchananQuiz, + ChelseaOgbonniaQuiz, TommyTranQuiz, ];