diff --git a/lesson_03/quiz/quiz.yaml b/lesson_03/quiz/quiz.yaml index 35272f9dd..9fef51358 100644 --- a/lesson_03/quiz/quiz.yaml +++ b/lesson_03/quiz/quiz.yaml @@ -68,7 +68,11 @@ quiz: - $2y$10$dkWnar/ZXMr9ndtRDcbTbe/HN3DhuULPoZhTx/xATi.UYQ0DUIx1W - $2y$10$.Cw9Sjf6Pf9K8EsThegQ5e8BMoJdLl40CCuJ2FKHLar1k8hVfR9fu - $2y$10$.pmOuTs0Oqjfhn9mMIQCQu7Fbe1ZOZmZIbTGqqul.hnVLqIV6bn/W + hummadtanweer: + - $2y$10$r.JmLYmaAWLZPwv6LLFWB.W823BWj7CsDaPdi5hxv4ExQyCjDq.l. + - $2y$10$DcSjwFSOP.120fEp1zJgEe9J3qZiWPa0i/ofYQS6p3sG93jwCi3ci + - $2y$10$O0Xy3FSVwWM3Tqeh3dP.tuv6E3OHN10siHbgJ4.iPIaZLJ1kVheC6 pablolimonparedes: - $2y$10$Oj.VjaxLuCk3H3XGRLH99.y5LnVkVqEAS30eopxFsNfL6FQ0RRdbC - $2y$10$cs9lhS.nLe6Ym1nkgvr89Oa6Se5DafERs6MJm0t6plQ76zGlTj9JC - - $2y$10$ftCSIQi1kpbWf9CYsrmjCe1H/i/NWzqTX3Jfuqi0TAPcqoCdxrk3O + - $2y$10$ftCSIQi1kpbWf9CYsrmjCe1H/i/NWzqTX3Jfuqi0TAPcqoCdxrk3O \ No newline at end of file diff --git a/lesson_03/quiz/src/quizzes/hummad_tanweer_quiz.ts b/lesson_03/quiz/src/quizzes/hummad_tanweer_quiz.ts new file mode 100644 index 000000000..d3ae0c395 --- /dev/null +++ b/lesson_03/quiz/src/quizzes/hummad_tanweer_quiz.ts @@ -0,0 +1,62 @@ +import { + AnswerChoice, + MultipleChoiceQuizQuestion, + QuizQuestion, + QuizQuestionProvider, +} from 'codedifferently-instructional'; + +export class HummadTanweerQuiz implements QuizQuestionProvider { + getProviderName(): string { + return 'hummadtanweer'; + } + + makeQuizQuestions(): QuizQuestion[] { + return [ + HummadTanweerQuiz.makeQuestion0(), + HummadTanweerQuiz.makeQuestion1(), + HummadTanweerQuiz.makeQuestion2(), + ]; + } + + private static makeQuestion0(): QuizQuestion { + return new MultipleChoiceQuizQuestion( + 0, + 'Who is attributed with inventing GIT?', + new Map([ + [AnswerChoice.A, 'Linus Torvalds'], + [AnswerChoice.B, 'James Gosling'], + [AnswerChoice.C, 'Koska Kawaguchi'], + [AnswerChoice.D, 'Junio C. Hamano'], + ]), + AnswerChoice.UNANSWERED, + ); // Replace `UNANSWERED` with the correct answer. + } + + private static makeQuestion1(): QuizQuestion { + return new MultipleChoiceQuizQuestion( + 1, + 'What is the opposite of a GIT clone?', + new Map([ + [AnswerChoice.A, 'GIT add'], + [AnswerChoice.B, 'GIT push'], + [AnswerChoice.C, 'GIT upload'], + [AnswerChoice.D, 'GIT status'], + ]), + AnswerChoice.UNANSWERED, + ); // Replace `UNANSWERED` with the correct answer. + } + + private static makeQuestion2(): QuizQuestion { + return new MultipleChoiceQuizQuestion( + 2, + 'How do you check the state of your local git repository since your last commit?', + new Map([ + [AnswerChoice.A, 'GIT diff'], + [AnswerChoice.B, 'GIT commit'], + [AnswerChoice.C, 'GIT status'], + [AnswerChoice.D, 'GIT check'], + ]), + 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 084507eae..a10d38484 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 { HummadTanweerQuiz } from './hummad_tanweer_quiz.js'; import { JamesCapparellQuiz } from './james_capparell_quiz.js'; import { JosephCaballeroQuiz } from './joseph_caballero_quiz.js'; import { KimberleeHaldaneQuiz } from './kimberlee_haldane_quiz.js'; @@ -39,6 +40,7 @@ const QUIZ_PROVIDERS = [ ZionBuchananQuiz, ChelseaOgbonniaQuiz, TommyTranQuiz, + HummadTanweerQuiz, PabloLimonParedesQuiz, ];