diff --git a/lesson_03/quiz/quiz.yaml b/lesson_03/quiz/quiz.yaml index 76e616ec4..73b92944d 100644 --- a/lesson_03/quiz/quiz.yaml +++ b/lesson_03/quiz/quiz.yaml @@ -6,6 +6,10 @@ quiz: anotherone: - $2y$10$8eHSzy3aCu4Ry3LzO9nWCeGpofSxsNVbnF.wCfn3ZADwQ6MEtN/KK - $2y$10$dGB0CGv7.XQC5OqfyY6iXOiJsdVyxU3ve5YE0gt4m2I8P8H13lNXa + meikostephens: + - $2y$10$AD1YHmrZZivus7DoM91UMuErNnpi63ueluFs7DcSQSrZbXwDycAOi + - $2y$10$KvnxAYKh3A151RyOOFtOv.wfImRzZMgbBgKy3gyLd1uUSSjHaN.4u + - $2y$10$qJDpo1X1kFXRD1M6Kpi8WeKg.a8dgzd8RawXX/3RuMqM82biBc6iK computerparts: - $2y$10$7TUXmYaJlWnRZTzYR..CsefgVcOZJMGt7ctxyAf.G3obBBFEAB342 - $2y$10$0ghuTDegle177q8VjCgQ2OhManKjotYXrcDT3SLyUF8KvI152Wd0. diff --git a/lesson_03/quiz/src/quizzes/meiko_stephens_quiz.ts b/lesson_03/quiz/src/quizzes/meiko_stephens_quiz.ts new file mode 100644 index 000000000..539593247 --- /dev/null +++ b/lesson_03/quiz/src/quizzes/meiko_stephens_quiz.ts @@ -0,0 +1,65 @@ +import { + AnswerChoice, + MultipleChoiceQuizQuestion, + QuizQuestion, + QuizQuestionProvider, +} from 'codedifferently-instructional'; + +export class MeikoStephensQuiz implements QuizQuestionProvider { + getProviderName(): string { + return 'meikostephens'; + } + + makeQuizQuestions(): QuizQuestion[] { + return [ + MeikoStephensQuiz.makeQuestion0(), + MeikoStephensQuiz.makeQuestion1(), + MeikoStephensQuiz.makeQuestion2(), + ]; + } + + private static makeQuestion0(): QuizQuestion { + return new MultipleChoiceQuizQuestion( + 0, + 'What is a branch?', + new Map([ + [AnswerChoice.A, 'A new line of code'], + [ + AnswerChoice.B, + 'A copy of a repository that allows you make changes and merge them later', + ], + [AnswerChoice.C, 'A way to delete a respository and start over'], + [AnswerChoice.D, 'A way to run code'], + ]), + AnswerChoice.UNANSWERED, + ); // Replace `UNANSWERED` with the correct answer. + } + + private static makeQuestion1(): QuizQuestion { + return new MultipleChoiceQuizQuestion( + 1, + 'What does a syncfork do?', + new Map([ + [AnswerChoice.A, 'Updates changes from the original repository'], + [AnswerChoice.B, 'Deletes the repositiory'], + [AnswerChoice.C, 'Transforms the repository into a branch'], + [AnswerChoice.D, 'Runs the code more efficiently'], + ]), + AnswerChoice.UNANSWERED, + ); // Replace `UNANSWERED` with the correct answer. + } + + private static makeQuestion2(): QuizQuestion { + return new MultipleChoiceQuizQuestion( + 2, + 'What brings the modify changes to merge into the main repositiory?', + new Map([ + [AnswerChoice.A, 'A terminal'], + [AnswerChoice.B, 'A branch'], + [AnswerChoice.C, 'A syncfork'], + [AnswerChoice.D, 'A pull request'], + ]), + 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 43d69199c..2abbc7cd9 100644 --- a/lesson_03/quiz/src/quizzes/quizzes.module.ts +++ b/lesson_03/quiz/src/quizzes/quizzes.module.ts @@ -1,6 +1,7 @@ import { Module } from '@nestjs/common'; import { AnotherQuiz } from './another_quiz.js'; import { AnthonyMaysQuiz } from './anthony_mays_quiz.js'; +import { MeikoStephensQuiz } from './meiko_stephens_quiz.js'; import { Jbeyquiz } from './jbeyquiz.js'; import { MercedesMathewsQuiz } from './mercedes_mathews_quiz.js'; import { RasheedMillerQuiz } from './rasheed_miller_quiz.js'; @@ -10,7 +11,8 @@ export const Quizzes = Symbol.for('Quizzes'); // Add your quiz provider here. const QUIZ_PROVIDERS = [ AnthonyMaysQuiz, - AnotherQuiz, + AnotherQuiz, + MeikoStephensQuiz , MercedesMathewsQuiz, Jbeyquiz, RasheedMillerQuiz,