diff --git a/lesson_03/quiz/quiz.yaml b/lesson_03/quiz/quiz.yaml index 8b195254c..1fc035d83 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 000000000..6351b5528 --- /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 ad8dcbeea..5c7805542 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({