From e173de0a28700c40a29874173ea22f0aa4c292fd Mon Sep 17 00:00:00 2001 From: Ananatawa Date: Tue, 11 Mar 2025 22:07:40 +0000 Subject: [PATCH 1/2] Lesson03 Homework --- lesson_03/quiz/quiz.yaml | 6 ++ lesson_03/quiz/src/quizzes/ananatawa_quiz.ts | 77 ++++++++++++++++++++ lesson_03/quiz/src/quizzes/quizzes.module.ts | 2 + 3 files changed, 85 insertions(+) create mode 100644 lesson_03/quiz/src/quizzes/ananatawa_quiz.ts diff --git a/lesson_03/quiz/quiz.yaml b/lesson_03/quiz/quiz.yaml index 266f1a7e7..c61bc48a6 100644 --- a/lesson_03/quiz/quiz.yaml +++ b/lesson_03/quiz/quiz.yaml @@ -14,3 +14,9 @@ quiz: - $2y$10$hRwUbEYSqz761B.cG79T2uYsYPiEtKu.JgD3Aj7.Mofx27TtX5YHa - $2y$10$qE/gXxpq62FEGJOJd9MDA.vpDYLTNSsZbqZLpD/0368CKkcNBzW1y - $2y$10$yI/2BgOyqQfLdHM3ixPE5uLu89su/sHRJB2c5szDFIAYXDhRakS.C + 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 090417429..29b79768a 100644 --- a/lesson_03/quiz/src/quizzes/quizzes.module.ts +++ b/lesson_03/quiz/src/quizzes/quizzes.module.ts @@ -3,6 +3,7 @@ import { AnotherQuiz } from './another_quiz.js'; import { AnthonyMaysQuiz } from './anthony_mays_quiz.js'; import { Jbeyquiz } from './jbeyquiz.js'; import { MercedesMathewsQuiz } from './mercedes_mathews_quiz.js'; +import { AnanatawaQuiz } from './ananatawa_quiz.js';} export const Quizzes = Symbol.for('Quizzes'); @@ -12,6 +13,7 @@ const QUIZ_PROVIDERS = [ AnotherQuiz, MercedesMathewsQuiz, Jbeyquiz, + Awatanana, ]; @Module({ From 9cacb2141c6d8a4552a4795236492a5bf326118e Mon Sep 17 00:00:00 2001 From: Ananatawa Date: Wed, 12 Mar 2025 00:07:01 +0000 Subject: [PATCH 2/2] Merge fix --- lesson_03/quiz/quiz.yaml | 2 +- lesson_03/quiz/src/quizzes/quizzes.module.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lesson_03/quiz/quiz.yaml b/lesson_03/quiz/quiz.yaml index 8463d47fd..cd0dfed2c 100644 --- a/lesson_03/quiz/quiz.yaml +++ b/lesson_03/quiz/quiz.yaml @@ -14,7 +14,7 @@ quiz: - $2y$10$hRwUbEYSqz761B.cG79T2uYsYPiEtKu.JgD3Aj7.Mofx27TtX5YHa - $2y$10$qE/gXxpq62FEGJOJd9MDA.vpDYLTNSsZbqZLpD/0368CKkcNBzW1y - $2y$10$yI/2BgOyqQfLdHM3ixPE5uLu89su/sHRJB2c5szDFIAYXDhRakS.C -rmill: + rmill: - $2y$10$FquR69q7W4E68TX/SNCB7u8Ri0DOFRDqsUPdGfuyIBjZJRVFkNI.6 - $2y$10$FSWRA7hulVpyVxd8s67Nxuq/1cdmviW24qqoUbqihBf79cR.w9yly - $2y$10$Qy1IsNsfuJvA384ypL/72uWubUuNbMRp4LD6j/LM0RIH66D/HIjF6 diff --git a/lesson_03/quiz/src/quizzes/quizzes.module.ts b/lesson_03/quiz/src/quizzes/quizzes.module.ts index 68a426f06..7fd0eaf12 100644 --- a/lesson_03/quiz/src/quizzes/quizzes.module.ts +++ b/lesson_03/quiz/src/quizzes/quizzes.module.ts @@ -4,7 +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';} +import { AnanatawaQuiz } from './ananatawa_quiz.js'; export const Quizzes = Symbol.for('Quizzes');