diff --git a/lesson_03/quiz/quiz.yaml b/lesson_03/quiz/quiz.yaml index 66fd12161..867a3bf5f 100644 --- a/lesson_03/quiz/quiz.yaml +++ b/lesson_03/quiz/quiz.yaml @@ -43,6 +43,10 @@ quiz: - $2y$10$QsN9VkjWORsKgZRiBT46VOUgc5HVnswKAT4uDbs7JYbTF7DdKbsw. - $2y$10$sqXEOL0L8o0kRyiAb.2s4u0RlBC2.LmOGDbGWXHj5IfBNwinkv2yq - $2y$10$HaWueXgrIzd7z8yf39HfVeTjjyr.Kgx0GFBqwCRSzW3zRSreN19yi + ljmcwilliams: + - $2y$10$krHODbBQL0Z.4Me1fsRc0.XODWzJQPjrEL1xzXwDa98TPONF8OeiK + - $2y$10$S5HH5Vv834yLEUO2B3hHQO9gnR.8eBMA3zDORpXFrSYzXCuDsWHN6 + - $2y$10$nAd2FkTtyrmhHfTlhuxPcu1tWPimr7cX9mpDSGeIweUPLafpSTeiW tommytran: - $2y$10$6Mf9m8JXRHUyCgRNPn4nceimRZVOhtmsZbOGoFnI4ZJp..RluHmwy - $2y$10$Xr6W53IVq52orDvf6.TQQuXeMGaysQdgAu1cm5DYi1NyCskG2ByPe diff --git a/lesson_03/quiz/src/quizzes/lj_mcwilliams_quiz.ts b/lesson_03/quiz/src/quizzes/lj_mcwilliams_quiz.ts new file mode 100644 index 000000000..6b24ecb7c --- /dev/null +++ b/lesson_03/quiz/src/quizzes/lj_mcwilliams_quiz.ts @@ -0,0 +1,62 @@ +import { + AnswerChoice, + MultipleChoiceQuizQuestion, + QuizQuestion, + QuizQuestionProvider, +} from 'codedifferently-instructional'; + +export class LjMcwilliamsQuiz implements QuizQuestionProvider { + getProviderName(): string { + return 'ljmcwilliams'; + } + + makeQuizQuestions(): QuizQuestion[] { + return [ + LjMcwilliamsQuiz.makeQuestion0(), + LjMcwilliamsQuiz.makeQuestion1(), + LjMcwilliamsQuiz.makeQuestion2(), + ]; + } + + private static makeQuestion0(): QuizQuestion { + return new MultipleChoiceQuizQuestion( + 0, + 'Which component of a computer is responsible for short-term memory?', + new Map([ + [AnswerChoice.A, 'Motherboard'], + [AnswerChoice.B, 'CPU (Central Processing Unit)'], + [AnswerChoice.C, 'RAM (Random Access Memory)'], + [AnswerChoice.D, 'Power Supply'], + ]), + AnswerChoice.UNANSWERED, + ); // Replace `UNANSWERED` with the correct answer. + } + + private static makeQuestion1(): QuizQuestion { + return new MultipleChoiceQuizQuestion( + 1, + 'Which terminal command allows a user to copy a file or directory?', + new Map([ + [AnswerChoice.A, 'cp file-name'], + [AnswerChoice.B, 'cpy file-name'], + [AnswerChoice.C, 'dupe file-name'], + [AnswerChoice.D, 'make file-name'], + ]), + AnswerChoice.UNANSWERED, + ); // Replace `UNANSWERED` with the correct answer. + } + + private static makeQuestion2(): QuizQuestion { + return new MultipleChoiceQuizQuestion( + 2, + 'Which Git command allows a user to delete a feature branch LOCALLY?', + new Map([ + [AnswerChoice.A, 'git remove branch-name'], + [AnswerChoice.B, 'git push origin --delete branch-name'], + [AnswerChoice.C, 'git checkout master'], + [AnswerChoice.D, 'git branch -d branch-name'], + ]), + 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 123c00f62..19ca16db9 100644 --- a/lesson_03/quiz/src/quizzes/quizzes.module.ts +++ b/lesson_03/quiz/src/quizzes/quizzes.module.ts @@ -7,6 +7,7 @@ import { ChigazoGrahamsQuiz } from './chigazo_graham_quiz.js'; import { DasiaEnglishQuiz } from './dasia_english_quiz.js'; import { JamesCapparellQuiz } from './james_capparell_quiz.js'; import { JosephCaballeroQuiz } from './joseph_caballero_quiz.js'; +import { LjMcwilliamsQuiz } from './lj_mcwilliams_quiz.js'; import { OyeyemiJimohQuiz } from './oyeyemi_jimoh_quiz.js'; import { ShawnDunsmoreQuiz } from './shawn_dunsmore_quiz.js'; import { TommyTranQuiz } from './tommy.tran.quiz.js'; @@ -30,6 +31,7 @@ const QUIZ_PROVIDERS = [ ChigazoGrahamsQuiz, AmiyahJonesQuiz, XavierCruzQuiz, + LjMcwilliamsQuiz, ZionBuchananQuiz, TommyTranQuiz, ];