diff --git a/lesson_03/quiz/quiz.yaml b/lesson_03/quiz/quiz.yaml index eb7a5e60c..d61da8187 100644 --- a/lesson_03/quiz/quiz.yaml +++ b/lesson_03/quiz/quiz.yaml @@ -34,6 +34,10 @@ quiz: - $2y$10$FquR69q7W4E68TX/SNCB7u8Ri0DOFRDqsUPdGfuyIBjZJRVFkNI.6 - $2y$10$FSWRA7hulVpyVxd8s67Nxuq/1cdmviW24qqoUbqihBf79cR.w9yly - $2y$10$Qy1IsNsfuJvA384ypL/72uWubUuNbMRp4LD6j/LM0RIH66D/HIjF6 + evanphilakhong: + - $2y$10$3ERfjtWq6bYipHm0QGOuDe8oeXth3dnmfxT8g5P65sc8m4EivQNY. + - $2y$10$cr3WSpMx9zljgMYCqz4uYOAMT2iOzDaRsnoQi6CfPu/761F.1EpwW + - $2y$10$us8POdRzHVBFr1wNcuC7iuDg/YsQvr0GXe5JpFg8EIWzc6IMnIEUG jeremiahwing: - $2y$10$YLN9gvb8/fBf3ByHNIdb9.UZ8ilcuCdPgZN9QIYd2rwD23vzt2lvy - $2y$10$AEUmg5pH8c2VLZ871//G4eKjwx5cnKH5c2HGTNXdnAPF.3/ZmNap2 diff --git a/lesson_03/quiz/src/quizzes/evan_philakhong_quiz.ts b/lesson_03/quiz/src/quizzes/evan_philakhong_quiz.ts new file mode 100644 index 000000000..564888dc5 --- /dev/null +++ b/lesson_03/quiz/src/quizzes/evan_philakhong_quiz.ts @@ -0,0 +1,62 @@ +import { + AnswerChoice, + MultipleChoiceQuizQuestion, + QuizQuestion, + QuizQuestionProvider, +} from 'codedifferently-instructional'; + +export class EvanPhilakhongQuiz implements QuizQuestionProvider { + getProviderName(): string { + return 'evanphilakhong'; + } + + makeQuizQuestions(): QuizQuestion[] { + return [ + EvanPhilakhongQuiz.makeQuestion0(), + EvanPhilakhongQuiz.makeQuestion1(), + EvanPhilakhongQuiz.makeQuestion2(), + ]; + } + + private static makeQuestion0(): QuizQuestion { + return new MultipleChoiceQuizQuestion( + 0, + 'What is a CPU?', + new Map([ + [AnswerChoice.A, 'Computer Power Unit'], + [AnswerChoice.B, 'Complex Processing Unit'], + [AnswerChoice.C, 'Central Processing Unit'], + [AnswerChoice.D, 'Coding Processor Unit'], + ]), + AnswerChoice.UNANSWERED, // replace UNANSWERED with correct answer + ); + } + + private static makeQuestion1(): QuizQuestion { + return new MultipleChoiceQuizQuestion( + 1, + 'What is a GPU?', + new Map([ + [AnswerChoice.A, 'Graphics Processing Unit'], + [AnswerChoice.B, 'Gaming Power Unit'], + [AnswerChoice.C, 'Graphical Programming Unit'], + [AnswerChoice.D, 'Gaming Processor Unit'], + ]), + AnswerChoice.UNANSWERED, // replace UNANSWERED with correct answer + ); + } + + private static makeQuestion2(): QuizQuestion { + return new MultipleChoiceQuizQuestion( + 2, + 'What is a PSU?', + new Map([ + [AnswerChoice.A, 'Programming Super Unit'], + [AnswerChoice.B, 'Power Supply Unit'], + [AnswerChoice.C, 'Power Supplier Unit'], + [AnswerChoice.D, 'Power Storing Unit'], + ]), + AnswerChoice.UNANSWERED, // repleace UNANSWERED with correct answer + ); + } +} diff --git a/lesson_03/quiz/src/quizzes/quizzes.module.ts b/lesson_03/quiz/src/quizzes/quizzes.module.ts index 91f49d297..4ec59abb8 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 { JasonWatsonQuiz } from './jason_watson_quiz.js'; import { MeikoStephensQuiz } from './meiko_stephens_quiz.js'; import { DavidAdenaikeQuiz } from './david_adenaike_quiz.js'; +import { EvanPhilakhongQuiz } from './evan_philakhong_quiz.js'; import { EzraQuiz } from './ezra_quiz.js'; import { Jbeyquiz } from './jbeyquiz.js'; import { KhaylaSaundersQuiz } from './khayla_quiz.js'; @@ -23,6 +24,7 @@ const QUIZ_PROVIDERS = [ Jbeyquiz, EzraQuiz, DavidAdenaikeQuiz, + EvanPhilakhongQuiz, KhaylaSaundersQuiz, RasheedMillerQuiz, JeremiahWingQuiz,