|
| 1 | +import { |
| 2 | + AnswerChoice, |
| 3 | + MultipleChoiceQuizQuestion, |
| 4 | + QuizQuestion, |
| 5 | + QuizQuestionProvider, |
| 6 | +} from 'codedifferently-instructional'; |
| 7 | + |
| 8 | +export class DavisDQuiz implements QuizQuestionProvider { |
| 9 | + getProviderName(): string { |
| 10 | + return 'davisdarius'; |
| 11 | + } |
| 12 | + |
| 13 | + makeQuizQuestions(): QuizQuestion[] { |
| 14 | + return [ |
| 15 | + DavisDQuiz.makeQuestion0(), |
| 16 | + DavisDQuiz.makeQuestion1(), |
| 17 | + DavisDQuiz.makeQuestion2(), |
| 18 | + ]; |
| 19 | + } |
| 20 | + |
| 21 | + private static makeQuestion0(): QuizQuestion { |
| 22 | + return new MultipleChoiceQuizQuestion( |
| 23 | + 0, |
| 24 | + 'What should you not be doing during a Tech Talk?', |
| 25 | + new Map<AnswerChoice, string>([ |
| 26 | + [AnswerChoice.A, 'Talk Amongst Friends'], |
| 27 | + [AnswerChoice.B, 'Take Notes'], |
| 28 | + [AnswerChoice.C, 'Ask speaker questions'], |
| 29 | + [AnswerChoice.D, 'Be attentive'], |
| 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 | + '3 Levels of Tech Talk', |
| 39 | + new Map<AnswerChoice, string>([ |
| 40 | + [AnswerChoice.A, 'Push, Pull, Punch'], |
| 41 | + [AnswerChoice.B, 'Pay, Listen, Persuade'], |
| 42 | + [AnswerChoice.C, 'Purpose, Prep, Show-up'], |
| 43 | + ]), |
| 44 | + AnswerChoice.UNANSWERED, |
| 45 | + ); // Provide an answer. |
| 46 | + } |
| 47 | + |
| 48 | + private static makeQuestion2(): QuizQuestion { |
| 49 | + return new MultipleChoiceQuizQuestion( |
| 50 | + 2, |
| 51 | + 'During Tech Talks should you be marketing yourself to secure a job?', |
| 52 | + new Map<AnswerChoice, string>([ |
| 53 | + [AnswerChoice.A, 'No'], |
| 54 | + [AnswerChoice.B, 'Yes'], |
| 55 | + [AnswerChoice.C, 'Maybe'], |
| 56 | + [AnswerChoice.D, 'IDK'], |
| 57 | + ]), |
| 58 | + AnswerChoice.UNANSWERED, |
| 59 | + ); // Provide an answer. |
| 60 | + } |
| 61 | +} |
0 commit comments