From 21c78b1cb048bdb13b9369fbeb8ee47b13989a5c Mon Sep 17 00:00:00 2001 From: OliviaxJames Date: Tue, 11 Mar 2025 22:24:32 +0000 Subject: [PATCH 1/2] added all 3 files --- lesson_03/quiz/quiz.yaml | 4 ++ .../quiz/src/quizzes/olivia_james_quiz.ts | 62 +++++++++++++++++++ lesson_03/quiz/src/quizzes/quizzes.module.ts | 2 + 3 files changed, 68 insertions(+) create mode 100644 lesson_03/quiz/src/quizzes/olivia_james_quiz.ts diff --git a/lesson_03/quiz/quiz.yaml b/lesson_03/quiz/quiz.yaml index 5729c2809..8860ecc8c 100644 --- a/lesson_03/quiz/quiz.yaml +++ b/lesson_03/quiz/quiz.yaml @@ -30,3 +30,7 @@ quiz: - $2y$10$FquR69q7W4E68TX/SNCB7u8Ri0DOFRDqsUPdGfuyIBjZJRVFkNI.6 - $2y$10$FSWRA7hulVpyVxd8s67Nxuq/1cdmviW24qqoUbqihBf79cR.w9yly - $2y$10$Qy1IsNsfuJvA384ypL/72uWubUuNbMRp4LD6j/LM0RIH66D/HIjF6 + oliviajames: + - $2y$10$XNIaT3YK/NmvATnebmrOHuIoSqsGlfqlW82R2NfFxEJn1CWmmzgzm + - $2y$10$mdHWON2e8lS8HUQZkp5W0OoAd5xkdUCouXCeFPnoz3Ilpjv5Vb9uu + - $2y$10$hGQy6LkNRkXfT9Vk67c4meGH.99yLT73.HKfzWqsgTKHLHerzI7ey diff --git a/lesson_03/quiz/src/quizzes/olivia_james_quiz.ts b/lesson_03/quiz/src/quizzes/olivia_james_quiz.ts new file mode 100644 index 000000000..93e715195 --- /dev/null +++ b/lesson_03/quiz/src/quizzes/olivia_james_quiz.ts @@ -0,0 +1,62 @@ +import { + AnswerChoice, + MultipleChoiceQuizQuestion, + QuizQuestion, + QuizQuestionProvider, +} from 'codedifferently-instructional'; + +export class OliviaJamesQuiz implements QuizQuestionProvider { + getProviderName(): string { + return 'oliviajames'; + } + + makeQuizQuestions(): QuizQuestion[] { + return [ + OliviaJamesQuiz.makeQuestion0(), + OliviaJamesQuiz.makeQuestion1(), + OliviaJamesQuiz.makeQuestion2(), + ]; + } + + private static makeQuestion0(): QuizQuestion { + return new MultipleChoiceQuizQuestion( + 0, + 'Which CSS property is used to change the font size of an element?', + new Map([ + [AnswerChoice.A, 'text-size'], + [AnswerChoice.B, 'font-size'], + [AnswerChoice.C, 'size'], + [AnswerChoice.D, 'font-weight'], + ]), + AnswerChoice.UNANSWERED, + ); + } + + private static makeQuestion1(): QuizQuestion { + return new MultipleChoiceQuizQuestion( + 1, + 'Which of the following is the correct syntax for a CSS comment??', + new Map([ + [AnswerChoice.A, '// This is a comment'], + [AnswerChoice.B, ' /* This is a comment */'], + [AnswerChoice.C, '# This is a comment'], + [AnswerChoice.D, ''], + ]), + AnswerChoice.UNANSWERED, + ); + } + + private static makeQuestion2(): QuizQuestion { + return new MultipleChoiceQuizQuestion( + 2, + 'Which of the following is the correct syntax for a CSS comment??', + new Map([ + [AnswerChoice.A, '
    '], + [AnswerChoice.B, '
      '], + [AnswerChoice.C, '
    • '], + [AnswerChoice.D, ''], + ]), + AnswerChoice.UNANSWERED, + ); + } +} diff --git a/lesson_03/quiz/src/quizzes/quizzes.module.ts b/lesson_03/quiz/src/quizzes/quizzes.module.ts index a6d1ade79..d3044ebd5 100644 --- a/lesson_03/quiz/src/quizzes/quizzes.module.ts +++ b/lesson_03/quiz/src/quizzes/quizzes.module.ts @@ -6,6 +6,7 @@ import { Jbeyquiz } from './jbeyquiz.js'; import { KhaylaSaundersQuiz } from './khayla_quiz.js'; import { MeikoStephensQuiz } from './meiko_stephens_quiz.js'; import { MercedesMathewsQuiz } from './mercedes_mathews_quiz.js'; +import { OliviaJamesQuiz } from './olivia_james_quiz.js'; import { RasheedMillerQuiz } from './rasheed_miller_quiz.js'; export const Quizzes = Symbol.for('Quizzes'); @@ -20,6 +21,7 @@ const QUIZ_PROVIDERS = [ DavidAdenaikeQuiz, KhaylaSaundersQuiz, RasheedMillerQuiz, + OliviaJamesQuiz, ]; @Module({ From d3708783b796af07f9569269b5e840b1919a689a Mon Sep 17 00:00:00 2001 From: OliviaxJames Date: Wed, 12 Mar 2025 15:12:50 +0000 Subject: [PATCH 2/2] fix: removed duplicate 02 question --- lesson_03/quiz/src/quizzes/olivia_james_quiz.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lesson_03/quiz/src/quizzes/olivia_james_quiz.ts b/lesson_03/quiz/src/quizzes/olivia_james_quiz.ts index 93e715195..7e160d0ee 100644 --- a/lesson_03/quiz/src/quizzes/olivia_james_quiz.ts +++ b/lesson_03/quiz/src/quizzes/olivia_james_quiz.ts @@ -49,7 +49,7 @@ export class OliviaJamesQuiz implements QuizQuestionProvider { private static makeQuestion2(): QuizQuestion { return new MultipleChoiceQuizQuestion( 2, - 'Which of the following is the correct syntax for a CSS comment??', + 'Which tag is used to create an unordered list in HTML?', new Map([ [AnswerChoice.A, '
        '], [AnswerChoice.B, '
          '],