diff --git a/lesson_03/quiz/quiz.yaml b/lesson_03/quiz/quiz.yaml index 194ae6775..eb7a5e60c 100644 --- a/lesson_03/quiz/quiz.yaml +++ b/lesson_03/quiz/quiz.yaml @@ -34,7 +34,12 @@ quiz: - $2y$10$FquR69q7W4E68TX/SNCB7u8Ri0DOFRDqsUPdGfuyIBjZJRVFkNI.6 - $2y$10$FSWRA7hulVpyVxd8s67Nxuq/1cdmviW24qqoUbqihBf79cR.w9yly - $2y$10$Qy1IsNsfuJvA384ypL/72uWubUuNbMRp4LD6j/LM0RIH66D/HIjF6 + jeremiahwing: + - $2y$10$YLN9gvb8/fBf3ByHNIdb9.UZ8ilcuCdPgZN9QIYd2rwD23vzt2lvy + - $2y$10$AEUmg5pH8c2VLZ871//G4eKjwx5cnKH5c2HGTNXdnAPF.3/ZmNap2 + - $2y$10$bcTYSI0R/3x0pPHcGPAjautopYx2MD8mJPqf2nXKMJeteoIwJQrQm + - $2y$10$V8pMtwgtZe725nPssrr8kejs4Evh/Vi3ia8RulylOQ8x2YV4tJ4LO jasonwatson: - $2y$10$AZtPKyQ.6Bzb.jreO/u.2O3C7XfvYAVpjHzLkuhLVdsX74wc4vXwS - $2y$10$QbKtEXqpeItigRLAHsn8Qe/06ZpXhKEP1bGPJSFXymsoFw9.04NHy - - $2y$10$tJLScW1OZpOLpVllM65EI.W1QjkSIIBtz.KG8z/s.07RNb7ZWC0um + - $2y$10$tJLScW1OZpOLpVllM65EI.W1QjkSIIBtz.KG8z/s.07RNb7ZWC0um \ No newline at end of file diff --git a/lesson_03/quiz/src/quizzes/jeremiah_wing_quiz.ts b/lesson_03/quiz/src/quizzes/jeremiah_wing_quiz.ts new file mode 100644 index 000000000..5e1397e9f --- /dev/null +++ b/lesson_03/quiz/src/quizzes/jeremiah_wing_quiz.ts @@ -0,0 +1,83 @@ +import { + AnswerChoice, + MultipleChoiceQuizQuestion, + QuizQuestion, + QuizQuestionProvider, +} from 'codedifferently-instructional'; + +export class JeremiahWingQuiz implements QuizQuestionProvider { + getProviderName(): string { + return 'jeremiahwing'; + } + + makeQuizQuestions(): QuizQuestion[] { + return [ + JeremiahWingQuiz.makeQuestion0(), + JeremiahWingQuiz.makeQuestion1(), + JeremiahWingQuiz.makeQuestion2(), + JeremiahWingQuiz.makeQuestion3(), + ]; + } + + private static makeQuestion0(): QuizQuestion { + return new MultipleChoiceQuizQuestion( + 0, + 'What does the SRC element stand for?', + new Map([ + [AnswerChoice.A, 'Source'], + [AnswerChoice.B, 'Script'], + [AnswerChoice.C, 'Style'], + [AnswerChoice.D, 'Section'], + ]), + AnswerChoice.UNANSWERED, + ); + } + + private static makeQuestion1(): QuizQuestion { + return new MultipleChoiceQuizQuestion( + 1, + 'What does the git fetch command do?', + new Map([ + [AnswerChoice.A, 'Downloads objects and refs from another repository'], + [AnswerChoice.B, 'Merges changes from another branch'], + [AnswerChoice.C, 'Commits changes to the local repository'], + [AnswerChoice.D, 'Deletes a branch from the repository'], + ]), + AnswerChoice.UNANSWERED, + ); + } + + private static makeQuestion2(): QuizQuestion { + return new MultipleChoiceQuizQuestion( + 2, + 'What does the git pull command do?', + new Map([ + [ + AnswerChoice.A, + 'Fetches from and integrates with another repository or a local branch', + ], + [AnswerChoice.B, 'Merges changes from another branch'], + [AnswerChoice.C, 'Commits changes to the local repository'], + [AnswerChoice.D, 'Deletes a branch from the repository'], + ]), + AnswerChoice.UNANSWERED, + ); + } + + private static makeQuestion3(): QuizQuestion { + return new MultipleChoiceQuizQuestion( + 3, + 'What does the git push command do?', + new Map([ + [ + AnswerChoice.A, + 'Uploads local repository content to a remote repository', + ], + [AnswerChoice.B, 'Merges changes from another branch'], + [AnswerChoice.C, 'Commits changes to the local repository'], + [AnswerChoice.D, 'Downloads objects and refs from another repository'], + ]), + AnswerChoice.UNANSWERED, + ); + } +} \ No newline at end of file diff --git a/lesson_03/quiz/src/quizzes/quizzes.module.ts b/lesson_03/quiz/src/quizzes/quizzes.module.ts index a7bd3384a..91f49d297 100644 --- a/lesson_03/quiz/src/quizzes/quizzes.module.ts +++ b/lesson_03/quiz/src/quizzes/quizzes.module.ts @@ -9,6 +9,7 @@ import { Jbeyquiz } from './jbeyquiz.js'; import { KhaylaSaundersQuiz } from './khayla_quiz.js'; import { MercedesMathewsQuiz } from './mercedes_mathews_quiz.js'; import { RasheedMillerQuiz } from './rasheed_miller_quiz.js'; +import { JeremiahWingQuiz } from './jeremiah_wing_quiz.js'; export const Quizzes = Symbol.for('Quizzes'); @@ -24,6 +25,7 @@ const QUIZ_PROVIDERS = [ DavidAdenaikeQuiz, KhaylaSaundersQuiz, RasheedMillerQuiz, + JeremiahWingQuiz, JasonWatsonQuiz, ];