|
| 1 | +import { |
| 2 | + AnswerChoice, |
| 3 | + MultipleChoiceQuizQuestion, |
| 4 | + QuizQuestion, |
| 5 | + QuizQuestionProvider, |
| 6 | +} from 'codedifferently-instructional'; |
| 7 | + |
| 8 | +export class DavidAdenaikeQuiz implements QuizQuestionProvider { |
| 9 | + getProviderName(): string { |
| 10 | + return 'davidadenaike'; |
| 11 | + } |
| 12 | + |
| 13 | + makeQuizQuestions(): QuizQuestion[] { |
| 14 | + return [ |
| 15 | + DavidAdenaikeQuiz.makeQuestion0(), |
| 16 | + DavidAdenaikeQuiz.makeQuestion1(), |
| 17 | + DavidAdenaikeQuiz.makeQuestion2(), |
| 18 | + ]; |
| 19 | + } |
| 20 | + |
| 21 | + private static makeQuestion0(): QuizQuestion { |
| 22 | + return new MultipleChoiceQuizQuestion( |
| 23 | + 0, |
| 24 | + 'What does RAM stand for?', |
| 25 | + new Map<AnswerChoice, string>([ |
| 26 | + [AnswerChoice.A, 'Rabbit, Abandon, Machinery'], |
| 27 | + [AnswerChoice.B, 'Race, Abbey, Magazine'], |
| 28 | + [AnswerChoice.C, 'Racism, Able, Magnetic'], |
| 29 | + [AnswerChoice.D, 'Random, Access Memory'], |
| 30 | + ]), |
| 31 | + AnswerChoice.UNANSWERED, |
| 32 | + ); // Replace `UNANSWERED` with the correct answer. |
| 33 | + } |
| 34 | + |
| 35 | + private static makeQuestion1(): QuizQuestion { |
| 36 | + return new MultipleChoiceQuizQuestion( |
| 37 | + 1, |
| 38 | + 'What does CPU stand for?', |
| 39 | + new Map<AnswerChoice, string>([ |
| 40 | + [AnswerChoice.A, 'Central, Processing, Unit'], |
| 41 | + [AnswerChoice.B, 'Cabin, Pace, Umbrella'], |
| 42 | + [AnswerChoice.C, 'Cable, Pack, Unanimous'], |
| 43 | + [AnswerChoice.D, 'Cage, Pain, Uncle'], |
| 44 | + ]), |
| 45 | + AnswerChoice.UNANSWERED, |
| 46 | + ); // Replace `UNANSWERED` with the correct answer. |
| 47 | + } |
| 48 | + |
| 49 | + private static makeQuestion2(): QuizQuestion { |
| 50 | + return new MultipleChoiceQuizQuestion( |
| 51 | + 2, |
| 52 | + 'What does GPU stand for?', |
| 53 | + new Map<AnswerChoice, string>([ |
| 54 | + [AnswerChoice.A, 'Galaxy, Palace, Unpleasant'], |
| 55 | + [AnswerChoice.B, 'Graphics, Processing, Unit'], |
| 56 | + [AnswerChoice.C, 'Gallon, Panic, Unrest'], |
| 57 | + [AnswerChoice.D, 'Game, Parachute, Union'], |
| 58 | + ]), |
| 59 | + AnswerChoice.UNANSWERED, |
| 60 | + ); // Replace `UNANSWERED` with the correct answer. |
| 61 | + } |
| 62 | +} |
0 commit comments