diff --git a/lesson_03/quiz/quiz.yaml b/lesson_03/quiz/quiz.yaml index 5de7eb536..6c3b669dc 100644 --- a/lesson_03/quiz/quiz.yaml +++ b/lesson_03/quiz/quiz.yaml @@ -35,6 +35,10 @@ quiz: - $2y$10$XcsVuO66KZiUiN75NtssdOkKvHKhuBo91JgE/TJEnSrrzbhjxuql. - $2y$10$9fZs867NHxoPQ/VWMeLyj.us5Kg3SLPcbt9O5ki/FdJ37TbhgFMFC - $2y$10$GfjcKvtzr6n8553Mdr1RJOOYDfzOudlW.3i8otsH0HiW52CU7tUAW + dwightblue: + - $2y$10$IpmwlGZO8Re1shIeAvYFnOK5tmzdsAWbTwUq3oTWQHVtUfloXOWeW + - $2y$10$PxOTKSNTANnX8395ipDW7el3KpnADsi/g0H39V4XKCo3TrCK1ib5S + - $2y$10$WYkaVdArZ7Wa5Tkw.F1tY.LY3r6t/twFYiMsCZMCwDrBtfDpROpWG angelicacastillo: - $2y$10$MkiKfTFDIR5e4nWe3Q3XKOSEk2E06urRRykXIx/2JV6Y5j.OPIWMi - $2y$10$WsWcxQ.rCkq/WoUVMbdMNuUU8v5O9xDFpWdbWydVFu7/Ufz/8lLru @@ -50,4 +54,4 @@ quiz: shawndunsmore: - $2y$10$Kpde4LAfDyEhgWezFoI5texc53Sge6QQs8y5hR8DA7zHfyK8It5LW - $2y$10$T061IZuccoHb2XGjaICB/Olchf62DqrSDVIE0TE9Q9qidfLAL7sHS - - $2y$10$T061IZuccoHb2XGjaICB/Olchf62DqrSDVIE0TE9Q9qidfLAL7sHS \ No newline at end of file + - $2y$10$T061IZuccoHb2XGjaICB/Olchf62DqrSDVIE0TE9Q9qidfLAL7sHS diff --git a/lesson_03/quiz/src/quizzes/dwight_blue_quiz.ts b/lesson_03/quiz/src/quizzes/dwight_blue_quiz.ts new file mode 100644 index 000000000..3156e11ea --- /dev/null +++ b/lesson_03/quiz/src/quizzes/dwight_blue_quiz.ts @@ -0,0 +1,57 @@ +import { + AnswerChoice, + MultipleChoiceQuizQuestion, + QuizQuestion, + QuizQuestionProvider, +} from 'codedifferently-instructional'; + +export class DwightBlueQuiz implements QuizQuestionProvider { + getProviderName(): string { + return 'dwightblue'; + } + + makeQuizQuestions(): QuizQuestion[] { + return [ + DwightBlueQuiz.makeQuestion0(), + DwightBlueQuiz.makeQuestion1(), + DwightBlueQuiz.makeQuestion2(), + ]; + } + + private static makeQuestion0(): QuizQuestion { + return new MultipleChoiceQuizQuestion( + 0, + 'What is the largest state in the USA? ', + new Map([ + [AnswerChoice.A, 'Texas'], + [AnswerChoice.B, 'California'], + [AnswerChoice.C, 'Alaska'], + [AnswerChoice.D, 'New York'], + ]), + AnswerChoice.UNANSWERED, + ); // Replace `UNANSWERED` with the correct answer. + } + + private static makeQuestion1(): QuizQuestion { + return new MultipleChoiceQuizQuestion( + 1, + 'What are you unable to write on? ', + new Map([ + [AnswerChoice.A, 'Paper'], + [AnswerChoice.B, 'Notepad'], + [AnswerChoice.C, 'Sand'], + [AnswerChoice.D, 'Space'], + ]), + AnswerChoice.UNANSWERED, + ); // Replace `UNANSWERED` with the correct answer. + } + + private static makeQuestion2(): QuizQuestion { + return new QuizQuestion( + 2, + 'What did BASIC programing lanuage use to sort coding', + '', + ); + // Provide an answer. + } +} diff --git a/lesson_03/quiz/src/quizzes/quizzes.module.ts b/lesson_03/quiz/src/quizzes/quizzes.module.ts index 57768457b..aadd9e1e4 100644 --- a/lesson_03/quiz/src/quizzes/quizzes.module.ts +++ b/lesson_03/quiz/src/quizzes/quizzes.module.ts @@ -3,6 +3,9 @@ import { AmiyahJonesQuiz } from './amiyah_jones_quiz.js'; import { AngelicaCQuiz } from './angelica_c_quiz.js'; import { AnotherQuiz } from './another_quiz.js'; import { AnthonyMaysQuiz } from './anthony_mays_quiz.js'; +import { DwightBlueQuiz } from './dwight_blue_quiz.js'; +import { JosephCaballeroQuiz } from './joseph_caballero_quiz.js'; +import { OyeyemiJimohQuiz } from './oyeyemi_jimoh_quiz.js'; import { ChigazoGrahamsQuiz } from './chigazo_graham_quiz.js'; import { DasiaEnglishQuiz } from './dasia_english_quiz.js'; import { JamesCapparellQuiz } from './james_capparell_quiz.js'; @@ -24,6 +27,7 @@ const QUIZ_PROVIDERS = [ JosephCaballeroQuiz, AngelicaCQuiz, OyeyemiJimohQuiz, + DwightBlueQuiz, ShawnDunsmoreQuiz, DasiaEnglishQuiz, ChigazoGrahamsQuiz,