diff --git a/lesson_03/quiz/quiz.yaml b/lesson_03/quiz/quiz.yaml index db8fc75c3..b64833056 100644 --- a/lesson_03/quiz/quiz.yaml +++ b/lesson_03/quiz/quiz.yaml @@ -34,6 +34,10 @@ quiz: - $2y$10$hRwUbEYSqz761B.cG79T2uYsYPiEtKu.JgD3Aj7.Mofx27TtX5YHa - $2y$10$qE/gXxpq62FEGJOJd9MDA.vpDYLTNSsZbqZLpD/0368CKkcNBzW1y - $2y$10$yI/2BgOyqQfLdHM3ixPE5uLu89su/sHRJB2c5szDFIAYXDhRakS.C + montezbradley: + - $2y$10$W3vj0qJcRoNY9u5GNYLddOMlwMSfHSXrTwfLMVUSDTqgQFeqLLQbG + - $2y$10$Cwm6LN1BoRoAEPiVPl4lLOV3o4GY84GsQEUS3.SwBmyvOHebr2r9e + - $2y$10$DT/fZKklOTHbpUEuzRg8nuNbDjapMm81po74KxIJ4htF3jR9VhmmC davidadenaike: - $2y$10$CCxBimjXsumkjTLWRWqibue0VeGel6Idfb/2q3y.mIuKHbkWVTsx6 - $2y$10$/z0Ri9Fg7pOXUFYsOErj.Ol8Hxcy7zwqWezLTMWVtFv6tzvkCrJti diff --git a/lesson_03/quiz/src/quizzes/montez_quiz.ts b/lesson_03/quiz/src/quizzes/montez_quiz.ts new file mode 100644 index 000000000..dacd7eb8d --- /dev/null +++ b/lesson_03/quiz/src/quizzes/montez_quiz.ts @@ -0,0 +1,63 @@ +import { + AnswerChoice, + MultipleChoiceQuizQuestion, + QuizQuestion, + QuizQuestionProvider, +} from 'codedifferently-instructional'; + +export class MontezBradleyQuiz implements QuizQuestionProvider { + getProviderName(): string { + return 'montezbradley'; + } + + makeQuizQuestions(): QuizQuestion[] { + return [ + MontezBradleyQuiz.makeQuestion0(), + MontezBradleyQuiz.makeQuestion1(), + MontezBradleyQuiz.makeQuestion2(), + ]; + } + + private static makeQuestion0(): QuizQuestion { + return new MultipleChoiceQuizQuestion( + 0, + 'What Git command is used to check the current status of a repository?', + new Map([ + [AnswerChoice.A, 'git status'], + [AnswerChoice.B, 'git info'], + [AnswerChoice.C, 'git check-status'], + [AnswerChoice.D, 'git current'], + ]), + AnswerChoice.UNANSWERED, + ); // Replace `UNANSWERED` with the correct answer. + } + + private static makeQuestion1(): QuizQuestion { + return new MultipleChoiceQuizQuestion( + 1, + 'What command is used to save all changes and create a commit in Git?', + new Map([ + [AnswerChoice.A, 'git status'], + [AnswerChoice.B, 'git info'], + [AnswerChoice.C, 'git check-status'], + [AnswerChoice.D, 'git add git commit -m "Your commit message'], + ]), + AnswerChoice.UNANSWERED, + ); // Replace `UNANSWERED` with the correct answer. + } + + private static makeQuestion2(): QuizQuestion { + return new MultipleChoiceQuizQuestion( + 2, + 'What Git command is used to check the current status of a repository', + new Map([ + [AnswerChoice.A, 'git status'], + [AnswerChoice.B, 'git verify'], + [AnswerChoice.C, 'git info'], + [AnswerChoice.D, 'git check-status'], + ]), + AnswerChoice.UNANSWERED, + ); + } + +} diff --git a/lesson_03/quiz/src/quizzes/quizzes.module.ts b/lesson_03/quiz/src/quizzes/quizzes.module.ts index 1027e0d81..de97855e9 100644 --- a/lesson_03/quiz/src/quizzes/quizzes.module.ts +++ b/lesson_03/quiz/src/quizzes/quizzes.module.ts @@ -13,6 +13,7 @@ import { JeremiahWingQuiz } from './jeremiah_wing_quiz.js'; import { KhaylaSaundersQuiz } from './khayla_quiz.js'; import { MeikoStephensQuiz } from './meiko_stephens_quiz.js'; import { MercedesMathewsQuiz } from './mercedes_mathews_quiz.js'; +import { MontezBradleyQuiz } from './montez_quiz.js'; import { RasheedMillerQuiz } from './rasheed_miller_quiz.js'; export const Quizzes = Symbol.for('Quizzes'); @@ -25,6 +26,7 @@ const QUIZ_PROVIDERS = [ MeikoStephensQuiz, MercedesMathewsQuiz, Jbeyquiz, + MontezBradleyQuiz, Bryanasingletonbarnhart, EzraQuiz, DavidAdenaikeQuiz,