From ac03159c3ce299650fa47f8d85f778db859529bc Mon Sep 17 00:00:00 2001 From: karensprojects22 Date: Tue, 11 Mar 2025 15:10:23 +0000 Subject: [PATCH 1/2] Added and updated lesson_03 --- .../quiz/src/quizzes/karen_alabi_quiz.ts | 65 +++++++++++++++++++ 1 file changed, 65 insertions(+) create mode 100644 lesson_03/quiz/src/quizzes/karen_alabi_quiz.ts 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..7841e5683 --- /dev/null +++ b/lesson_03/quiz/src/quizzes/karen_alabi_quiz.ts @@ -0,0 +1,65 @@ +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.A, + ); + } +} \ No newline at end of file From 097baa355ab3c7e04395479ec1c15f540ff29229 Mon Sep 17 00:00:00 2001 From: karensprojects22 Date: Wed, 12 Mar 2025 15:10:25 +0000 Subject: [PATCH 2/2] chore: registered and tested answers in karen_alabi_quiz chore: Updated quiz module --- lesson_03/quiz/quiz.yaml | 4 ++ .../quiz/src/quizzes/karen_alabi_quiz.ts | 44 +++++++++++++------ lesson_03/quiz/src/quizzes/quizzes.module.ts | 6 ++- 3 files changed, 39 insertions(+), 15 deletions(-) diff --git a/lesson_03/quiz/quiz.yaml b/lesson_03/quiz/quiz.yaml index 5729c2809..24c7716dc 100644 --- a/lesson_03/quiz/quiz.yaml +++ b/lesson_03/quiz/quiz.yaml @@ -22,6 +22,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 davidadenaike: - $2y$10$CCxBimjXsumkjTLWRWqibue0VeGel6Idfb/2q3y.mIuKHbkWVTsx6 - $2y$10$/z0Ri9Fg7pOXUFYsOErj.Ol8Hxcy7zwqWezLTMWVtFv6tzvkCrJti diff --git a/lesson_03/quiz/src/quizzes/karen_alabi_quiz.ts b/lesson_03/quiz/src/quizzes/karen_alabi_quiz.ts index 7841e5683..741922667 100644 --- a/lesson_03/quiz/src/quizzes/karen_alabi_quiz.ts +++ b/lesson_03/quiz/src/quizzes/karen_alabi_quiz.ts @@ -25,9 +25,7 @@ export class KarensQuiz implements QuizQuestionProvider { new Map([ [AnswerChoice.A, 'Graphical Processing Unit'], [AnswerChoice.B, 'Gaming Processing Unit'], - [ - AnswerChoice.C,'General Preserving Unit', - ], + [AnswerChoice.C, 'General Preserving Unit'], [AnswerChoice.D, 'George P. Underwood'], ]), AnswerChoice.UNANSWERED, @@ -40,10 +38,18 @@ export class KarensQuiz implements QuizQuestionProvider { '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.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. @@ -54,12 +60,24 @@ export class KarensQuiz implements QuizQuestionProvider { 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.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.A, + 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 a6d1ade79..54bfaf0bb 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 { DavidAdenaikeQuiz } from './david_adenaike_quiz.js'; import { Jbeyquiz } from './jbeyquiz.js'; +import { KarensQuiz } from './karen_alabi_quiz.js'; import { KhaylaSaundersQuiz } from './khayla_quiz.js'; import { MeikoStephensQuiz } from './meiko_stephens_quiz.js'; import { MercedesMathewsQuiz } from './mercedes_mathews_quiz.js'; @@ -13,10 +14,11 @@ export const Quizzes = Symbol.for('Quizzes'); // Add your quiz provider here. const QUIZ_PROVIDERS = [ AnthonyMaysQuiz, - AnotherQuiz, - MeikoStephensQuiz , + AnotherQuiz, + MeikoStephensQuiz, MercedesMathewsQuiz, Jbeyquiz, + KarensQuiz, DavidAdenaikeQuiz, KhaylaSaundersQuiz, RasheedMillerQuiz,