diff --git a/lesson_03/quiz/quiz.yaml b/lesson_03/quiz/quiz.yaml index 5729c2809..a844a9ff8 100644 --- a/lesson_03/quiz/quiz.yaml +++ b/lesson_03/quiz/quiz.yaml @@ -30,3 +30,7 @@ quiz: - $2y$10$FquR69q7W4E68TX/SNCB7u8Ri0DOFRDqsUPdGfuyIBjZJRVFkNI.6 - $2y$10$FSWRA7hulVpyVxd8s67Nxuq/1cdmviW24qqoUbqihBf79cR.w9yly - $2y$10$Qy1IsNsfuJvA384ypL/72uWubUuNbMRp4LD6j/LM0RIH66D/HIjF6 + jasonwatson: + - $2y$10$AZtPKyQ.6Bzb.jreO/u.2O3C7XfvYAVpjHzLkuhLVdsX74wc4vXwS + - $2y$10$QbKtEXqpeItigRLAHsn8Qe/06ZpXhKEP1bGPJSFXymsoFw9.04NHy + - $2y$10$tJLScW1OZpOLpVllM65EI.W1QjkSIIBtz.KG8z/s.07RNb7ZWC0um diff --git a/lesson_03/quiz/src/quizzes/jason_watson_quiz.ts b/lesson_03/quiz/src/quizzes/jason_watson_quiz.ts new file mode 100644 index 000000000..3391ac72c --- /dev/null +++ b/lesson_03/quiz/src/quizzes/jason_watson_quiz.ts @@ -0,0 +1,62 @@ +import { + AnswerChoice, + MultipleChoiceQuizQuestion, + QuizQuestion, + QuizQuestionProvider, +} from 'codedifferently-instructional'; + +export class JasonWatsonQuiz implements QuizQuestionProvider { + getProviderName(): string { + return 'jasonwatson'; + } + + makeQuizQuestions(): QuizQuestion[] { + return [ + JasonWatsonQuiz.makeQuestion0(), + JasonWatsonQuiz.makeQuestion1(), + JasonWatsonQuiz.makeQuestion2(), + ]; + } + + private static makeQuestion0(): QuizQuestion { + return new MultipleChoiceQuizQuestion( + 0, + 'How much MB of memory is equal to 1GB of RAM', + new Map([ + [AnswerChoice.A, '500MB'], + [AnswerChoice.B, '1024MB'], + [AnswerChoice.C, '2048MB'], + [AnswerChoice.D, '1000MB'], + ]), + AnswerChoice.UNANSWERED, + ); // Replace `UNANSWERED` with the correct answer. + } + + private static makeQuestion1(): QuizQuestion { + return new MultipleChoiceQuizQuestion( + 1, + 'What is Visual Studio Code primarily used for', + new Map([ + [AnswerChoice.A, 'Graphic Design'], + [AnswerChoice.B, 'Word Processing'], + [AnswerChoice.C, 'Code Editing'], + [AnswerChoice.D, 'Video Prodection'], + ]), + AnswerChoice.UNANSWERED, + ); // Replace `UNANSWERED` with the correct answer. + } + + private static makeQuestion2(): QuizQuestion { + return new MultipleChoiceQuizQuestion( + 2, + 'What file is commonly used to provide instructions or documenttation in a GitHub repository', + new Map([ + [AnswerChoice.A, 'README.md'], + [AnswerChoice.B, 'INSTRUCTIONS.txt'], + [AnswerChoice.C, 'GUIDE.pdf'], + [AnswerChoice.D, 'DOCS.docx'], + ]), + 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 a6d1ade79..94fa4a4f8 100644 --- a/lesson_03/quiz/src/quizzes/quizzes.module.ts +++ b/lesson_03/quiz/src/quizzes/quizzes.module.ts @@ -1,10 +1,11 @@ import { Module } from '@nestjs/common'; import { AnotherQuiz } from './another_quiz.js'; import { AnthonyMaysQuiz } from './anthony_mays_quiz.js'; +import { JasonWatsonQuiz } from './jason_watson_quiz.js'; +import { MeikoStephensQuiz } from './meiko_stephens_quiz.js'; import { DavidAdenaikeQuiz } from './david_adenaike_quiz.js'; import { Jbeyquiz } from './jbeyquiz.js'; import { KhaylaSaundersQuiz } from './khayla_quiz.js'; -import { MeikoStephensQuiz } from './meiko_stephens_quiz.js'; import { MercedesMathewsQuiz } from './mercedes_mathews_quiz.js'; import { RasheedMillerQuiz } from './rasheed_miller_quiz.js'; @@ -20,6 +21,7 @@ const QUIZ_PROVIDERS = [ DavidAdenaikeQuiz, KhaylaSaundersQuiz, RasheedMillerQuiz, + JasonWatsonQuiz, ]; @Module({