diff --git a/lesson_03/quiz/quiz.yaml b/lesson_03/quiz/quiz.yaml index b64833056..c69f60fc0 100644 --- a/lesson_03/quiz/quiz.yaml +++ b/lesson_03/quiz/quiz.yaml @@ -34,6 +34,10 @@ quiz: - $2y$10$hRwUbEYSqz761B.cG79T2uYsYPiEtKu.JgD3Aj7.Mofx27TtX5YHa - $2y$10$qE/gXxpq62FEGJOJd9MDA.vpDYLTNSsZbqZLpD/0368CKkcNBzW1y - $2y$10$yI/2BgOyqQfLdHM3ixPE5uLu89su/sHRJB2c5szDFIAYXDhRakS.C + karenalabi: + - $2y$10$oxPNDhhyNt9BpV3g7RPmgOeQybzmsZIP5SYJkpAga6CnYbHVOqrei + - $2y$10$q4dA/UIgxjzjYKK1p4MRDugTEWajBN5WAOxJflQXXI2M/8gKegXP. + - $2y$10$czzmXmK7hipnM0mrjyqA/.QxgJgryPU/rNX3dof8aw2npU9BQ/4ZC montezbradley: - $2y$10$W3vj0qJcRoNY9u5GNYLddOMlwMSfHSXrTwfLMVUSDTqgQFeqLLQbG - $2y$10$Cwm6LN1BoRoAEPiVPl4lLOV3o4GY84GsQEUS3.SwBmyvOHebr2r9e diff --git a/lesson_03/quiz/src/quizzes/karen_alabi_quiz.ts b/lesson_03/quiz/src/quizzes/karen_alabi_quiz.ts new file mode 100644 index 000000000..741922667 --- /dev/null +++ b/lesson_03/quiz/src/quizzes/karen_alabi_quiz.ts @@ -0,0 +1,83 @@ +import { + AnswerChoice, + MultipleChoiceQuizQuestion, + QuizQuestion, + QuizQuestionProvider, +} from 'codedifferently-instructional'; + +export class KarensQuiz implements QuizQuestionProvider { + getProviderName(): string { + return 'karenalabi'; + } + + makeQuizQuestions(): QuizQuestion[] { + return [ + KarensQuiz.makeQuestion0(), + KarensQuiz.makeQuestion1(), + KarensQuiz.makeQuestion2(), + ]; + } + + private static makeQuestion0(): QuizQuestion { + return new MultipleChoiceQuizQuestion( + 0, + 'What does GPU stand for?', + new Map([ + [AnswerChoice.A, 'Graphical Processing Unit'], + [AnswerChoice.B, 'Gaming Processing Unit'], + [AnswerChoice.C, 'General Preserving Unit'], + [AnswerChoice.D, 'George P. Underwood'], + ]), + AnswerChoice.UNANSWERED, + ); // Replace `UNANSWERED` with the correct answer. + } + + private static makeQuestion1(): QuizQuestion { + return new MultipleChoiceQuizQuestion( + 1, + 'Which of the following best describes a computer?', + new Map([ + [AnswerChoice.A, 'Karen from Spongebob'], + [ + AnswerChoice.B, + 'A machine that automatically transforms input data into output data using pre-programmed instructions', + ], + [ + AnswerChoice.C, + 'A high-tech calculator that only performs basic arithmetic operations like addition and subtraction, making it useful only for solving math problems', + ], + [ + AnswerChoice.D, + 'A microwave with a keyboard that heats up data instead of food', + ], + ]), + AnswerChoice.UNANSWERED, + ); // Provide the correct answer. + } + + private static makeQuestion2(): QuizQuestion { + return new MultipleChoiceQuizQuestion( + 2, + 'What is the motherboard?', + new Map([ + [ + AnswerChoice.A, + 'A big chip that controls how fast your computer runs.', + ], + [ + AnswerChoice.B, + 'The part of the computer that generates electricity to power all the other components.', + ], + [ + AnswerChoice.C, + 'The main circuit board of a computer that houses the CPU, memory, and other essential components.', + ], + [ + AnswerChoice.D, + 'The board that a mother uses to control the computer.', + ], + ]), + AnswerChoice.UNANSWERED, + ); + } +} diff --git a/lesson_03/quiz/src/quizzes/quizzes.module.ts b/lesson_03/quiz/src/quizzes/quizzes.module.ts index de97855e9..7f0e21c0c 100644 --- a/lesson_03/quiz/src/quizzes/quizzes.module.ts +++ b/lesson_03/quiz/src/quizzes/quizzes.module.ts @@ -9,6 +9,7 @@ import { EvanPhilakhongQuiz } from './evan_philakhong_quiz.js'; import { EzraQuiz } from './ezra_quiz.js'; import { JasonWatsonQuiz } from './jason_watson_quiz.js'; import { Jbeyquiz } from './jbeyquiz.js'; +import { KarensQuiz } from './karen_alabi_quiz.js'; import { JeremiahWingQuiz } from './jeremiah_wing_quiz.js'; import { KhaylaSaundersQuiz } from './khayla_quiz.js'; import { MeikoStephensQuiz } from './meiko_stephens_quiz.js'; @@ -26,6 +27,7 @@ const QUIZ_PROVIDERS = [ MeikoStephensQuiz, MercedesMathewsQuiz, Jbeyquiz, + KarensQuiz, MontezBradleyQuiz, Bryanasingletonbarnhart, EzraQuiz,