From 71e444e0daf6fdaad20f0f574aea97aa89025b52 Mon Sep 17 00:00:00 2001 From: PabLim-Par Date: Wed, 2 Oct 2024 17:38:47 -0400 Subject: [PATCH 1/2] feat: adds quiz for Pablo (#134) --- lesson_03/quiz/quiz.yaml | 6 +- .../src/quizzes/pablo_limon_paredes_quiz.ts | 61 +++++++++++++++++++ lesson_03/quiz/src/quizzes/quizzes.module.ts | 2 + 3 files changed, 68 insertions(+), 1 deletion(-) create mode 100644 lesson_03/quiz/src/quizzes/pablo_limon_paredes_quiz.ts diff --git a/lesson_03/quiz/quiz.yaml b/lesson_03/quiz/quiz.yaml index 8b195254..1fc035d8 100644 --- a/lesson_03/quiz/quiz.yaml +++ b/lesson_03/quiz/quiz.yaml @@ -50,7 +50,7 @@ quiz: tommytran: - $2y$10$6Mf9m8JXRHUyCgRNPn4nceimRZVOhtmsZbOGoFnI4ZJp..RluHmwy - $2y$10$Xr6W53IVq52orDvf6.TQQuXeMGaysQdgAu1cm5DYi1NyCskG2ByPe - - $2y$10$x8BG/EcIbVohTU1s/thyc.TIzlfc8f/aVZaD4/1yMpcks2OWzKKMe + - $2y$10$x8BG/EcIbVohTU1s/thyc.TIzlfc8f/aVZaD4/1yMpcks2OWzKKMe zionbuchanan: - $2y$10$ufNCdP1efvioBYIih6K92uye33p5ckN/IrxfCvw4n7agHjN8aNfhe - $2y$10$Mb7LA1kqlDRWlN9jdBYvF.u1B8cmJqXWkrxQeMr/3ETRVOAzFlflG @@ -64,3 +64,7 @@ quiz: - $2y$10$dkWnar/ZXMr9ndtRDcbTbe/HN3DhuULPoZhTx/xATi.UYQ0DUIx1W - $2y$10$.Cw9Sjf6Pf9K8EsThegQ5e8BMoJdLl40CCuJ2FKHLar1k8hVfR9fu - $2y$10$.pmOuTs0Oqjfhn9mMIQCQu7Fbe1ZOZmZIbTGqqul.hnVLqIV6bn/W + pablolimonparedes: + - $2y$10$Oj.VjaxLuCk3H3XGRLH99.y5LnVkVqEAS30eopxFsNfL6FQ0RRdbC + - $2y$10$cs9lhS.nLe6Ym1nkgvr89Oa6Se5DafERs6MJm0t6plQ76zGlTj9JC + - $2y$10$ftCSIQi1kpbWf9CYsrmjCe1H/i/NWzqTX3Jfuqi0TAPcqoCdxrk3O diff --git a/lesson_03/quiz/src/quizzes/pablo_limon_paredes_quiz.ts b/lesson_03/quiz/src/quizzes/pablo_limon_paredes_quiz.ts new file mode 100644 index 00000000..6351b552 --- /dev/null +++ b/lesson_03/quiz/src/quizzes/pablo_limon_paredes_quiz.ts @@ -0,0 +1,61 @@ +import { + AnswerChoice, + MultipleChoiceQuizQuestion, + QuizQuestion, + QuizQuestionProvider, +} from 'codedifferently-instructional'; + +export class PabloLimonParedesQuiz implements QuizQuestionProvider { + getProviderName(): string { + return 'pablolimonparedes'; + } + + makeQuizQuestions(): QuizQuestion[] { + return [ + PabloLimonParedesQuiz.makeQuestion0(), + PabloLimonParedesQuiz.makeQuestion1(), + PabloLimonParedesQuiz.makeQuestion2(), + ]; + } + + private static makeQuestion0(): QuizQuestion { + return new MultipleChoiceQuizQuestion( + 0, + 'What does git checkout -b branch command do?', + new Map([ + [AnswerChoice.A, 'Creates a pull request'], + [AnswerChoice.B, 'Creates a new branch and switches you to it'], + [AnswerChoice.C, 'To move to another branch'], + [AnswerChoice.D, 'Delete a branch'], + ]), + AnswerChoice.UNANSWERED, + ); // Replace `UNANSWERED` with the correct answer. + } + + private static makeQuestion1(): QuizQuestion { + return new MultipleChoiceQuizQuestion( + 1, + 'What does the man git command do?', + new Map([ + [AnswerChoice.A, 'Create a new directory'], + [AnswerChoice.B, 'Shows history of commands'], + [AnswerChoice.C, 'Get to main branch'], + [AnswerChoice.D, 'Access the manual for git'], + ]), + AnswerChoice.UNANSWERED, + ); // Replace `UNANSWERED` with the correct answer. + } + private static makeQuestion2(): QuizQuestion { + return new MultipleChoiceQuizQuestion( + 2, + 'How do you clear up your terminal if your screen is cramped?', + new Map([ + [AnswerChoice.A, 'command + k'], + [AnswerChoice.B, 'CTRL + space'], + [AnswerChoice.C, 'command + shift + P'], + [AnswerChoice.D, 'command + T'], + ]), + 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 ad8dcbee..5c780554 100644 --- a/lesson_03/quiz/src/quizzes/quizzes.module.ts +++ b/lesson_03/quiz/src/quizzes/quizzes.module.ts @@ -10,6 +10,7 @@ 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 { PabloLimonParedesQuiz } from './pablo_limon_paredes_quiz.js'; import { ShawnDunsmoreQuiz } from './shawn_dunsmore_quiz.js'; import { TommyTranQuiz } from './tommy.tran.quiz.js'; import { XavierCruzQuiz } from './xavier_cruz_quiz.js'; @@ -36,6 +37,7 @@ const QUIZ_PROVIDERS = [ ZionBuchananQuiz, ChelseaOgbonniaQuiz, TommyTranQuiz, + PabloLimonParedesQuiz, ]; @Module({ From ddcf9f2c72747f6b972296b29331662192526779 Mon Sep 17 00:00:00 2001 From: haldanek Date: Wed, 2 Oct 2024 17:41:06 -0400 Subject: [PATCH 2/2] feat: adds quiz for Kimberlee (#131) * kimberlee_haldane_quiz * edit kimberlee_haldane_quiz * new edit kimberlee_haldane_quiz * EDIT kimberlee_haldane_quiz * fixed kimberlee lesson 03 * Kim's new quiz edit --- lesson_03/quiz/quiz.yaml | 4 ++ .../src/quizzes/kimberlee_haldane_quiz.ts | 62 +++++++++++++++++++ lesson_03/quiz/src/quizzes/quizzes.module.ts | 2 + 3 files changed, 68 insertions(+) create mode 100644 lesson_03/quiz/src/quizzes/kimberlee_haldane_quiz.ts diff --git a/lesson_03/quiz/quiz.yaml b/lesson_03/quiz/quiz.yaml index 1fc035d8..35272f9d 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 00000000..301a56bf --- /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 5c780554..084507ea 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 { PabloLimonParedesQuiz } from './pablo_limon_paredes_quiz.js'; @@ -28,6 +29,7 @@ const QUIZ_PROVIDERS = [ JosephCaballeroQuiz, AngelicaCQuiz, OyeyemiJimohQuiz, + KimberleeHaldaneQuiz, ShawnDunsmoreQuiz, DasiaEnglishQuiz, ChigazoGrahamsQuiz,