|
| 1 | +import { |
| 2 | + AnswerChoice, |
| 3 | + MultipleChoiceQuizQuestion, |
| 4 | + QuizQuestion, |
| 5 | + QuizQuestionProvider, |
| 6 | +} from 'codedifferently-instructional'; |
| 7 | + |
| 8 | +export class JamesCapparellQuiz implements QuizQuestionProvider { |
| 9 | + getProviderName(): string { |
| 10 | + return 'jamescapparell'; |
| 11 | + } |
| 12 | + |
| 13 | + makeQuizQuestions(): QuizQuestion[] { |
| 14 | + return [ |
| 15 | + JamesCapparellQuiz.makeQuestion0(), |
| 16 | + JamesCapparellQuiz.makeQuestion1(), |
| 17 | + JamesCapparellQuiz.makeQuestion2(), |
| 18 | + ]; |
| 19 | + } |
| 20 | + |
| 21 | + private static makeQuestion0(): QuizQuestion { |
| 22 | + return new MultipleChoiceQuizQuestion( |
| 23 | + 0, |
| 24 | + 'What county in Delaware is Code differently offices in?', |
| 25 | + new Map<AnswerChoice, string>([ |
| 26 | + [AnswerChoice.A, 'Sussex County'], |
| 27 | + [AnswerChoice.B, 'Kent County'], |
| 28 | + [AnswerChoice.C, 'New Castle County'], |
| 29 | + [AnswerChoice.D, 'Lancaster County'], |
| 30 | + ]), |
| 31 | + AnswerChoice.UNANSWERED, |
| 32 | + ); // Replace `UNANSWERED` with the correct answer. |
| 33 | + } |
| 34 | + private static makeQuestion1(): QuizQuestion { |
| 35 | + return new MultipleChoiceQuizQuestion( |
| 36 | + 1, |
| 37 | + 'Which video game charcter has the most games in their series?', |
| 38 | + new Map<AnswerChoice, string>([ |
| 39 | + [AnswerChoice.A, 'Mario'], |
| 40 | + [AnswerChoice.B, 'Sonic'], |
| 41 | + [AnswerChoice.C, 'Mega Man'], |
| 42 | + [AnswerChoice.D, 'Pikachu'], |
| 43 | + ]), |
| 44 | + AnswerChoice.UNANSWERED, |
| 45 | + ); // Replace `UNANSWERED` with the correct answer. |
| 46 | + } |
| 47 | + |
| 48 | + private static makeQuestion2(): QuizQuestion { |
| 49 | + return new QuizQuestion( |
| 50 | + 2, |
| 51 | + 'Type the full answer while filling in the blanks! A _____ that transforms ____ data into ____ data using automatically executed, pre-programmed ____.', |
| 52 | + 'A _____ that transforms ____ data into ____ data using automatically executed, pre-programmed ____.', |
| 53 | + ); // Provide an answer. |
| 54 | + } |
| 55 | +} |
0 commit comments