diff --git a/lesson_03/quiz/quiz.yaml b/lesson_03/quiz/quiz.yaml index 9fef51358..cb1997925 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 + dennislipscomb: + - $2y$10$Y9gmPBd6JGgk06f/uv1MNOGf7sqxqfxYmF5GW48aZ95Homie8FdCC + - $2y$10$vSETgB7wDGzpe5IQwGaZee2N7n1FafP.UelRv3QfpnZ4e.wvUmN8e + - $2y$10$UJGI.LGQ6IwNRUoyl35PmOMoaz3a1pAD8G4Rmn5L9scYDepSz4ypO kimberleehaldane: - $2y$10$7u0/PUZE4NFsRmjPtsaNOuQpXsQcuZh22wqYK5vli5LUO8wxIDR7q - $2y$10$zBW5IVw5BDBaa2PuxuyoO.kjixYznWpMXJ0a8hwO1zIYG8o5LJXAq diff --git a/lesson_03/quiz/src/quizzes/dennis_quiz.ts b/lesson_03/quiz/src/quizzes/dennis_quiz.ts new file mode 100644 index 000000000..5870adce4 --- /dev/null +++ b/lesson_03/quiz/src/quizzes/dennis_quiz.ts @@ -0,0 +1,62 @@ +import { + AnswerChoice, + MultipleChoiceQuizQuestion, + QuizQuestion, + QuizQuestionProvider, +} from 'codedifferently-instructional'; + +export class DennisQuiz implements QuizQuestionProvider { + getProviderName(): string { + return 'dennislipscomb'; + } + + makeQuizQuestions(): QuizQuestion[] { + return [ + DennisQuiz.makeQuestion0(), + DennisQuiz.makeQuestion1(), + DennisQuiz.makeQuestion2(), + ]; + } + + private static makeQuestion0(): QuizQuestion { + return new MultipleChoiceQuizQuestion( + 0, + 'What is RAM?', + new Map([ + [AnswerChoice.A, 'Random Access Motherboard'], + [AnswerChoice.B, 'Run Access Memory'], + [AnswerChoice.C, 'Random Access Memory'], + [AnswerChoice.D, 'Random Audit Memory'], + ]), + AnswerChoice.UNANSWERED, + ); // Replace `UNANSWERED` with the correct answer. + } + + private static makeQuestion1(): QuizQuestion { + return new MultipleChoiceQuizQuestion( + 1, + 'what does "git branch -m" do?', + new Map([ + [AnswerChoice.A, 'change name of branch'], + [AnswerChoice.B, 'push fork'], + [AnswerChoice.C, 'delete branch'], + [AnswerChoice.D, 'save branch'], + ]), + AnswerChoice.UNANSWERED, + ); // Replace `UNANSWERED` with the correct answer. + } + + private static makeQuestion2(): QuizQuestion { + return new MultipleChoiceQuizQuestion( + 2, + 'Which is not an IDE?', + new Map([ + [AnswerChoice.A, 'VS Code'], + [AnswerChoice.B, 'Ah Git Push It'], + [AnswerChoice.C, 'JetBrains'], + [AnswerChoice.D, 'Netbeans'], + ]), + 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 a10d38484..9f343d72e 100644 --- a/lesson_03/quiz/src/quizzes/quizzes.module.ts +++ b/lesson_03/quiz/src/quizzes/quizzes.module.ts @@ -6,6 +6,7 @@ import { AnthonyMaysQuiz } from './anthony_mays_quiz.js'; import { ChelseaOgbonniaQuiz } from './chelsea_ogbonnia_quiz.js'; import { ChigazoGrahamsQuiz } from './chigazo_graham_quiz.js'; import { DasiaEnglishQuiz } from './dasia_english_quiz.js'; +import { DennisQuiz } from './dennis_quiz.js'; import { HummadTanweerQuiz } from './hummad_tanweer_quiz.js'; import { JamesCapparellQuiz } from './james_capparell_quiz.js'; import { JosephCaballeroQuiz } from './joseph_caballero_quiz.js'; @@ -21,7 +22,7 @@ import { ZionBuchananQuiz } from './zion_buchanan_quiz.js'; export const Quizzes = Symbol.for('Quizzes'); -// Add your quiz provider here. +// Add your quiz provider here.; const QUIZ_PROVIDERS = [ AnthonyMaysQuiz, YafiahAbdullahQuiz, @@ -40,6 +41,7 @@ const QUIZ_PROVIDERS = [ ZionBuchananQuiz, ChelseaOgbonniaQuiz, TommyTranQuiz, + DennisQuiz, HummadTanweerQuiz, PabloLimonParedesQuiz, ];