diff --git a/lesson_03/quiz/quiz.yaml b/lesson_03/quiz/quiz.yaml index 194ae6775..02e9c6dbd 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 + bryanasingletonbarnhart: + - $2y$10$1mLxFIqlwiKqivImNbEYE.khunzQLkqDL/40Yj39J6vJA0rLfwDuK + - $2y$10$sIjoP0Jqf5apX3Uk2tdy0.yt..CIanJbbDIA7Y98KtUSNd4iq4oRO + - $2y$10$rMn2M8gyKNbFmH4zTvGwrOlJJ4Jp.CtQBr1nYNTKuMYZ4wXK13bOq ezraquiz: - $2y$10$fisFjMsmMwzlj3.PELyBNeupdruYROU00dwq296pg0VfHo05SSkta - $2y$10$.Z44VoTaxQSdPEx7RatO6OVCw1ff6ohS0kZnCrHEcFnElIgkfjP0u diff --git a/lesson_03/quiz/src/quizzes/ bryana_singleton-barnhart_quiz.ts b/lesson_03/quiz/src/quizzes/ bryana_singleton-barnhart_quiz.ts new file mode 100644 index 000000000..c7b83e600 --- /dev/null +++ b/lesson_03/quiz/src/quizzes/ bryana_singleton-barnhart_quiz.ts @@ -0,0 +1,61 @@ +import { + AnswerChoice, + MultipleChoiceQuizQuestion, + QuizQuestion, + QuizQuestionProvider, +} from 'codedifferently-instructional'; + +export class Bryanasingletonbarnhart implements QuizQuestionProvider { + getProviderName(): string { + return 'bryanasingletonbarnhart'; + } + + makeQuizQuestions(): QuizQuestion[] { + return [ + Bryanasingletonbarnhart.makeQuestion0(), + Bryanasingletonbarnhart.makeQuestion1(), + Bryanasingletonbarnhart.makeQuestion2(), + ]; + } + + private static makeQuestion0(): QuizQuestion { + return new MultipleChoiceQuizQuestion( + 0, + 'Which component is consider the brain?', + new Map([ + [AnswerChoice.A, 'Case'], + [AnswerChoice.B, 'Power Supply'], + [AnswerChoice.C, 'CPU'], + [AnswerChoice.D, 'Motherboard'], + ]), + AnswerChoice.UNANSWERED, + ); // Replace `UNANSWERED` with the correct answer. + } + + private static makeQuestion1(): QuizQuestion { + return new MultipleChoiceQuizQuestion( + 1, + 'What does SDD stand for?', + new Map([ + [AnswerChoice.A, 'Same Day Delivery'], + [AnswerChoice.B, 'Solid State Drive'], + [AnswerChoice.C, 'System Design Document'], + [AnswerChoice.D, 'Software Development Document'], + ]), + AnswerChoice.UNANSWERED, + ); // Replace `UNANSWERED` with the correct answer. + } + private static makeQuestion2(): QuizQuestion { + return new MultipleChoiceQuizQuestion( + 2, + 'How many bits is in a byte?', + new Map([ + [AnswerChoice.A, '2'], + [AnswerChoice.B, '40'], + [AnswerChoice.C, '1000'], + [AnswerChoice.D, '8'], + ]), + 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 a7bd3384a..caaac3f2f 100644 --- a/lesson_03/quiz/src/quizzes/quizzes.module.ts +++ b/lesson_03/quiz/src/quizzes/quizzes.module.ts @@ -1,4 +1,5 @@ import { Module } from '@nestjs/common'; +import { Bryanasingletonbarnhart } from './ bryana_singleton-barnhart_quiz.js'; import { AnotherQuiz } from './another_quiz.js'; import { AnthonyMaysQuiz } from './anthony_mays_quiz.js'; import { JasonWatsonQuiz } from './jason_watson_quiz.js'; @@ -20,6 +21,7 @@ const QUIZ_PROVIDERS = [ MeikoStephensQuiz, MercedesMathewsQuiz, Jbeyquiz, + Bryanasingletonbarnhart, EzraQuiz, DavidAdenaikeQuiz, KhaylaSaundersQuiz,