|
| 1 | +import { |
| 2 | + AnswerChoice, |
| 3 | + MultipleChoiceQuizQuestion, |
| 4 | +} from 'codedifferently-instructional'; |
| 5 | + |
| 6 | +export class EzraQuiz { |
| 7 | + getProviderName() { |
| 8 | + return 'TravelQuiz'; |
| 9 | + } |
| 10 | + |
| 11 | + makeQuizQuestions() { |
| 12 | + return [ |
| 13 | + EzraQuiz.makeQuestion0(), |
| 14 | + EzraQuiz.makeQuestion1(), |
| 15 | + EzraQuiz.makeQuestion2(), |
| 16 | + ]; |
| 17 | + } |
| 18 | + |
| 19 | + static makeQuestion0() { |
| 20 | + return new MultipleChoiceQuizQuestion( |
| 21 | + 0, |
| 22 | + 'What is the most played video game in the world?', |
| 23 | + new Map([ |
| 24 | + [AnswerChoice.A, 'GTA V'], |
| 25 | + [AnswerChoice.B, 'Call of Duty'], |
| 26 | + [AnswerChoice.C, 'World of Warcraft'], |
| 27 | + [AnswerChoice.D, 'MineCraft'], |
| 28 | + ]), |
| 29 | + AnswerChoice.UNANSWERED, |
| 30 | + ); // Replace `UNANSWERED` with the correct answer. |
| 31 | + } |
| 32 | + |
| 33 | + static makeQuestion1() { |
| 34 | + return new MultipleChoiceQuizQuestion( |
| 35 | + 1, |
| 36 | + 'What is the top tourist destination in the world?', |
| 37 | + new Map([ |
| 38 | + [AnswerChoice.A, 'China'], |
| 39 | + [AnswerChoice.B, 'France'], |
| 40 | + [AnswerChoice.C, 'Italy'], |
| 41 | + [AnswerChoice.D, 'Brazil'], |
| 42 | + ]), |
| 43 | + AnswerChoice.UNANSWERED, |
| 44 | + ); // Replace `UNANSWERED` with the correct answer. |
| 45 | + } |
| 46 | + |
| 47 | + static makeQuestion2() { |
| 48 | + return new MultipleChoiceQuizQuestion( |
| 49 | + 2, |
| 50 | + 'What country has the largest number of ocean borders?', |
| 51 | + new Map([ |
| 52 | + [AnswerChoice.A, 'Canada'], |
| 53 | + [AnswerChoice.B, 'India'], |
| 54 | + [AnswerChoice.C, 'Australia'], |
| 55 | + [AnswerChoice.D, 'United Kingdom'], |
| 56 | + ]), |
| 57 | + AnswerChoice.UNANSWERED, |
| 58 | + ); // Replace `UNANSWERED` with the correct answer. |
| 59 | + } |
| 60 | +} |
0 commit comments