diff --git a/lesson_03/quiz/quiz.yaml b/lesson_03/quiz/quiz.yaml index 0a4481798..e5870e610 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 + jamescapparell: + - $2y$10$iLvL/AaFPzcGZrcna7umMuHqkZe1f9at/ix77NUI6uakDGNuVKQCy + - $2y$10$FLxmGXJLm5EziyhA5D33ju0kUjXhiDbuUdImciLQz8lBRu5ou0hee + - $2y$10$hQTJ1d2giJ40AI8rSgBqWOij7j3WVqsvAMYOLFiixbYTcvETuF5cC xaviercruz: - $2y$10$1WMmkMjazP78KVns1l85zOC5r8cwgTnxLLs/scOzIkgCQ8HP28Y.q - $2y$10$9D.oRC8h/PD/10NMSR6MMOzjVAJKm.vfw4te8Rxgw1M1.0Q9x8pjK diff --git a/lesson_03/quiz/src/quizzes/james_capparell_quiz.ts b/lesson_03/quiz/src/quizzes/james_capparell_quiz.ts new file mode 100644 index 000000000..0a509768e --- /dev/null +++ b/lesson_03/quiz/src/quizzes/james_capparell_quiz.ts @@ -0,0 +1,55 @@ +import { + AnswerChoice, + MultipleChoiceQuizQuestion, + QuizQuestion, + QuizQuestionProvider, +} from 'codedifferently-instructional'; + +export class JamesCapparellQuiz implements QuizQuestionProvider { + getProviderName(): string { + return 'jamescapparell'; + } + + makeQuizQuestions(): QuizQuestion[] { + return [ + JamesCapparellQuiz.makeQuestion0(), + JamesCapparellQuiz.makeQuestion1(), + JamesCapparellQuiz.makeQuestion2(), + ]; + } + + private static makeQuestion0(): QuizQuestion { + return new MultipleChoiceQuizQuestion( + 0, + 'What county in Delaware is Code differently offices in?', + new Map([ + [AnswerChoice.A, 'Sussex County'], + [AnswerChoice.B, 'Kent County'], + [AnswerChoice.C, 'New Castle County'], + [AnswerChoice.D, 'Lancaster County'], + ]), + AnswerChoice.UNANSWERED, + ); // Replace `UNANSWERED` with the correct answer. + } + private static makeQuestion1(): QuizQuestion { + return new MultipleChoiceQuizQuestion( + 1, + 'Which video game charcter has the most games in their series?', + new Map([ + [AnswerChoice.A, 'Mario'], + [AnswerChoice.B, 'Sonic'], + [AnswerChoice.C, 'Mega Man'], + [AnswerChoice.D, 'Pikachu'], + ]), + AnswerChoice.UNANSWERED, + ); // Replace `UNANSWERED` with the correct answer. + } + + private static makeQuestion2(): QuizQuestion { + return new QuizQuestion( + 2, + 'Type the full answer while filling in the blanks! A _____ that transforms ____ data into ____ data using automatically executed, pre-programmed ____.', + 'A _____ that transforms ____ data into ____ data using automatically executed, pre-programmed ____.', + ); // Provide an answer. + } +} diff --git a/lesson_03/quiz/src/quizzes/quizzes.module.ts b/lesson_03/quiz/src/quizzes/quizzes.module.ts index 2ecba2f90..c7934cc05 100644 --- a/lesson_03/quiz/src/quizzes/quizzes.module.ts +++ b/lesson_03/quiz/src/quizzes/quizzes.module.ts @@ -2,6 +2,7 @@ import { Module } from '@nestjs/common'; import { AngelicaCQuiz } from './angelica_c_quiz.js'; import { AnotherQuiz } from './another_quiz.js'; import { AnthonyMaysQuiz } from './anthony_mays_quiz.js'; +import { JamesCapparellQuiz } from './james_capparell_quiz.js'; import { XavierCruzQuiz } from './xavier_cruz_quiz.js'; import { DasiaEnglishQuiz } from './dasia_english_quiz.js'; import { ChigazoGrahamsQuiz } from './chigazo_graham_quiz.js'; @@ -16,6 +17,7 @@ export const Quizzes = Symbol.for('Quizzes'); const QUIZ_PROVIDERS = [ AnthonyMaysQuiz, YafiahAbdullahQuiz, + JamesCapparellQuiz, AnotherQuiz, JosephCaballeroQuiz, AngelicaCQuiz,