diff --git a/lesson_03/quiz/quiz.yaml b/lesson_03/quiz/quiz.yaml index 31d6d11eb..ccb225a6a 100644 --- a/lesson_03/quiz/quiz.yaml +++ b/lesson_03/quiz/quiz.yaml @@ -50,6 +50,11 @@ quiz: - $2y$10$FquR69q7W4E68TX/SNCB7u8Ri0DOFRDqsUPdGfuyIBjZJRVFkNI.6 - $2y$10$FSWRA7hulVpyVxd8s67Nxuq/1cdmviW24qqoUbqihBf79cR.w9yly - $2y$10$Qy1IsNsfuJvA384ypL/72uWubUuNbMRp4LD6j/LM0RIH66D/HIjF6 + awatanana: + - $2y$10$uFNj.ocmiXzuuNrZUoIL/OPDaNcu/39W9.BsAZ6zuN7QZLjHik8VG + - $2y$10$TSqcVRhLIrH319zzXZJCMO9TY/Oz4IU96ZBEVk36y98DiwDSZun9G + - $2y$10$MbdEN2Vo/.5Mf5Gc7w.MMuqpFNbBfjXAUTf.PnwzWISzDhcq/Z/Sq + - $2y$10$V6g.2vivPqZpqbteSQ9eZea9LIgRmAXcFLHuFMuGZR7rBts8zePVu oliviajames: - $2y$10$XNIaT3YK/NmvATnebmrOHuIoSqsGlfqlW82R2NfFxEJn1CWmmzgzm - $2y$10$mdHWON2e8lS8HUQZkp5W0OoAd5xkdUCouXCeFPnoz3Ilpjv5Vb9uu diff --git a/lesson_03/quiz/src/quizzes/ananatawa_quiz.ts b/lesson_03/quiz/src/quizzes/ananatawa_quiz.ts new file mode 100644 index 000000000..d2dae062d --- /dev/null +++ b/lesson_03/quiz/src/quizzes/ananatawa_quiz.ts @@ -0,0 +1,77 @@ +import { + AnswerChoice, + MultipleChoiceQuizQuestion, + QuizQuestion, + QuizQuestionProvider, +} from 'codedifferently-instructional'; + +export class AnanatawaQuiz implements QuizQuestionProvider { + getProviderName(): string { + return 'awatanana'; + } + + makeQuizQuestions(): QuizQuestion[] { + return [ + AnanatawaQuiz.makeQuestion0(), + AnanatawaQuiz.makeQuestion1(), + AnanatawaQuiz.makeQuestion2(), + AnanatawaQuiz.makeQuestion3(), + ]; + } + + private static makeQuestion0(): QuizQuestion { + return new MultipleChoiceQuizQuestion( + 0, + 'What is a pull request?', + new Map([ + [AnswerChoice.A,'When someone asks to add their changes to the main project.'], + [AnswerChoice.B,'A personal copy of someone elses project that you can make changes to.'], + [AnswerChoice.C,'A toolbox where you can write, commit, and push code.'], + [AnswerChoice.D, 'A request to pull the plug on a project.'], + ]), + AnswerChoice.UNANSWERED, + ); // Replace `UNANSWERED` with the correct answer. + } + + private static makeQuestion1(): QuizQuestion { + return new MultipleChoiceQuizQuestion( + 1, + 'What does the command git status do?', + new Map([ + [AnswerChoice.A, 'Make a new git repository'], + [AnswerChoice.B, 'Checks the status of your repository'], + [AnswerChoice.C, 'Stage a file for commit'], + [AnswerChoice.D, 'List all branches in the repository'], + ]), + AnswerChoice.UNANSWERED, + ); // Replace `UNANSWERED` with the correct answer. + } + + private static makeQuestion2(): QuizQuestion { + return new MultipleChoiceQuizQuestion( + 2, + 'What does the command git pull origin do?', + new Map([ + [AnswerChoice.A, 'Push the latest changes from the remote repo.'], + [AnswerChoice.B, 'Pull the latest changes from the remote repo.'], + [AnswerChoice.C, 'Display the definition for Git.'], + [AnswerChoice.D, 'Stage a file for commit.'], + ]), + AnswerChoice.UNANSWERED, + ); // Replace `UNANSWERED` with the correct answer. + } + + private static makeQuestion3(): QuizQuestion { + return new MultipleChoiceQuizQuestion( + 3, + 'What was the first homework assignment that Mr. Mays assigned Cohort 25.1?', + new Map([ + [AnswerChoice.A, 'Make an account on GitHub.com'], + [AnswerChoice.B, 'Convert a Markdown file into HTML.'], + [AnswerChoice.C, 'Create a personal README and submit via GitHub.'], + [AnswerChoice.D,'Create a personal README and push to Github via VS Code.'], + ]), + 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 a35624caa..afe914f5c 100644 --- a/lesson_03/quiz/src/quizzes/quizzes.module.ts +++ b/lesson_03/quiz/src/quizzes/quizzes.module.ts @@ -17,6 +17,7 @@ import { MercedesMathewsQuiz } from './mercedes_mathews_quiz.js'; import { OliviaJamesQuiz } from './olivia_james_quiz.js'; import { MontezBradleyQuiz } from './montez_quiz.js'; import { RasheedMillerQuiz } from './rasheed_miller_quiz.js'; +import { AnanatawaQuiz } from './ananatawa_quiz.js'; export const Quizzes = Symbol.for('Quizzes'); @@ -37,6 +38,7 @@ const QUIZ_PROVIDERS = [ KhaylaSaundersQuiz, DylanLaffertyQuiz, RasheedMillerQuiz, + AnanatawaQuiz, OliviaJamesQuiz, ChanelHuttQuiz, JeremiahWingQuiz,