diff --git a/lesson_03/quiz/quiz.yaml b/lesson_03/quiz/quiz.yaml index 8b195254c..78a2accb0 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 + kimberleehaldane: + - $2y$10$7u0/PUZE4NFsRmjPtsaNOuQpXsQcuZh22wqYK5vli5LUO8wxIDR7q + - $2y$10$zBW5IVw5BDBaa2PuxuyoO.kjixYznWpMXJ0a8hwO1zIYG8o5LJXAq + - $2y$10$BjDUqT33QmjaSNeYJ99GCeyrjx99NSfCThB4l/KIh9PfbP4cJo03a jamescapparell: - $2y$10$iLvL/AaFPzcGZrcna7umMuHqkZe1f9at/ix77NUI6uakDGNuVKQCy - $2y$10$FLxmGXJLm5EziyhA5D33ju0kUjXhiDbuUdImciLQz8lBRu5ou0hee diff --git a/lesson_03/quiz/src/quizzes/kimberlee_haldane_quiz.ts b/lesson_03/quiz/src/quizzes/kimberlee_haldane_quiz.ts new file mode 100644 index 000000000..301a56bfa --- /dev/null +++ b/lesson_03/quiz/src/quizzes/kimberlee_haldane_quiz.ts @@ -0,0 +1,62 @@ +import { + AnswerChoice, + MultipleChoiceQuizQuestion, + QuizQuestion, + QuizQuestionProvider, +} from 'codedifferently-instructional'; + +export class KimberleeHaldaneQuiz implements QuizQuestionProvider { + getProviderName(): string { + return 'kimberleehaldane'; + } + + makeQuizQuestions(): QuizQuestion[] { + return [ + KimberleeHaldaneQuiz.makeQuestion0(), + KimberleeHaldaneQuiz.makeQuestion1(), + KimberleeHaldaneQuiz.makeQuestion2(), + ]; + } + + private static makeQuestion0(): QuizQuestion { + return new MultipleChoiceQuizQuestion( + 0, + 'Which command tells you where you are in the terminal?', + new Map([ + [AnswerChoice.A, 'pwd'], + [AnswerChoice.B, 'ls'], + [AnswerChoice.C, 'cd'], + [AnswerChoice.D, 'mkdir'], + ]), + AnswerChoice.UNANSWERED, + ); // Replace `UNANSWERED` with the correct answer. + } + + private static makeQuestion1(): QuizQuestion { + return new MultipleChoiceQuizQuestion( + 1, + 'Why do we use IDEs?', + new Map([ + [AnswerChoice.A, 'hunting insects'], + [AnswerChoice.B, 'testing powerlines'], + [AnswerChoice.C, 'editing and refactoring code'], + [AnswerChoice.D, 'all of the above'], + ]), + AnswerChoice.UNANSWERED, + ); // Replace `UNANSWERED` with the correct answer. + } + + private static makeQuestion2(): QuizQuestion { + return new MultipleChoiceQuizQuestion( + 2, + 'In the vscode terminal, what command is used to verify that you created a branch?', + new Map([ + [AnswerChoice.A, 'git branch -a'], + [AnswerChoice.B, 'git merge main'], + [AnswerChoice.C, 'git checkout -b new_feature'], + [AnswerChoice.D, 'git remote -v'], + ]), + 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 ad8dcbeea..3204ba509 100644 --- a/lesson_03/quiz/src/quizzes/quizzes.module.ts +++ b/lesson_03/quiz/src/quizzes/quizzes.module.ts @@ -8,6 +8,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 { KimberleeHaldaneQuiz } from './kimberlee_haldane_quiz.js'; import { LjMcwilliamsQuiz } from './lj_mcwilliams_quiz.js'; import { OyeyemiJimohQuiz } from './oyeyemi_jimoh_quiz.js'; import { ShawnDunsmoreQuiz } from './shawn_dunsmore_quiz.js'; @@ -27,6 +28,7 @@ const QUIZ_PROVIDERS = [ JosephCaballeroQuiz, AngelicaCQuiz, OyeyemiJimohQuiz, + KimberleeHaldaneQuiz, ShawnDunsmoreQuiz, DasiaEnglishQuiz, ChigazoGrahamsQuiz,