diff --git a/lesson_03/quiz/quiz.yaml b/lesson_03/quiz/quiz.yaml index 76e616ec4..cd0dfed2c 100644 --- a/lesson_03/quiz/quiz.yaml +++ b/lesson_03/quiz/quiz.yaml @@ -17,4 +17,9 @@ quiz: rmill: - $2y$10$FquR69q7W4E68TX/SNCB7u8Ri0DOFRDqsUPdGfuyIBjZJRVFkNI.6 - $2y$10$FSWRA7hulVpyVxd8s67Nxuq/1cdmviW24qqoUbqihBf79cR.w9yly - - $2y$10$Qy1IsNsfuJvA384ypL/72uWubUuNbMRp4LD6j/LM0RIH66D/HIjF6 \ No newline at end of file + - $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 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..054aabce8 --- /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 'ananatawa'; + } + + 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 43d69199c..7fd0eaf12 100644 --- a/lesson_03/quiz/src/quizzes/quizzes.module.ts +++ b/lesson_03/quiz/src/quizzes/quizzes.module.ts @@ -4,6 +4,7 @@ import { AnthonyMaysQuiz } from './anthony_mays_quiz.js'; import { Jbeyquiz } from './jbeyquiz.js'; import { MercedesMathewsQuiz } from './mercedes_mathews_quiz.js'; import { RasheedMillerQuiz } from './rasheed_miller_quiz.js'; +import { AnanatawaQuiz } from './ananatawa_quiz.js'; export const Quizzes = Symbol.for('Quizzes'); @@ -14,6 +15,8 @@ const QUIZ_PROVIDERS = [ MercedesMathewsQuiz, Jbeyquiz, RasheedMillerQuiz, + Awatanana, + ]; @Module({