|
| 1 | +import { |
| 2 | + AnswerChoice, |
| 3 | + MultipleChoiceQuizQuestion, |
| 4 | + QuizQuestion, |
| 5 | + QuizQuestionProvider, |
| 6 | +} from 'codedifferently-instructional'; |
| 7 | + |
| 8 | +export class MeikoStephensQuiz implements QuizQuestionProvider { |
| 9 | + getProviderName(): string { |
| 10 | + return 'meikostephens'; |
| 11 | + } |
| 12 | + |
| 13 | + makeQuizQuestions(): QuizQuestion[] { |
| 14 | + return [ |
| 15 | + MeikoStephensQuiz.makeQuestion0(), |
| 16 | + MeikoStephensQuiz.makeQuestion1(), |
| 17 | + MeikoStephensQuiz.makeQuestion2(), |
| 18 | + ]; |
| 19 | + } |
| 20 | + |
| 21 | + private static makeQuestion0(): QuizQuestion { |
| 22 | + return new MultipleChoiceQuizQuestion( |
| 23 | + 0, |
| 24 | + 'What is a branch?', |
| 25 | + new Map<AnswerChoice, string>([ |
| 26 | + [AnswerChoice.A, 'A new line of code'], |
| 27 | + [ |
| 28 | + AnswerChoice.B, |
| 29 | + 'A copy of a repository that allows you make changes and merge them later', |
| 30 | + ], |
| 31 | + [AnswerChoice.C, 'A way to delete a respository and start over'], |
| 32 | + [AnswerChoice.D, 'A way to run code'], |
| 33 | + ]), |
| 34 | + AnswerChoice.UNANSWERED, |
| 35 | + ); // Replace `UNANSWERED` with the correct answer. |
| 36 | + } |
| 37 | + |
| 38 | + private static makeQuestion1(): QuizQuestion { |
| 39 | + return new MultipleChoiceQuizQuestion( |
| 40 | + 1, |
| 41 | + 'What does a syncfork do?', |
| 42 | + new Map<AnswerChoice, string>([ |
| 43 | + [AnswerChoice.A, 'Updates changes from the original repository'], |
| 44 | + [AnswerChoice.B, 'Deletes the repositiory'], |
| 45 | + [AnswerChoice.C, 'Transforms the repository into a branch'], |
| 46 | + [AnswerChoice.D, 'Runs the code more efficiently'], |
| 47 | + ]), |
| 48 | + AnswerChoice.UNANSWERED, |
| 49 | + ); // Replace `UNANSWERED` with the correct answer. |
| 50 | + } |
| 51 | + |
| 52 | + private static makeQuestion2(): QuizQuestion { |
| 53 | + return new MultipleChoiceQuizQuestion( |
| 54 | + 2, |
| 55 | + 'What brings the modify changes to merge into the main repositiory?', |
| 56 | + new Map<AnswerChoice, string>([ |
| 57 | + [AnswerChoice.A, 'A terminal'], |
| 58 | + [AnswerChoice.B, 'A branch'], |
| 59 | + [AnswerChoice.C, 'A syncfork'], |
| 60 | + [AnswerChoice.D, 'A pull request'], |
| 61 | + ]), |
| 62 | + AnswerChoice.UNANSWERED, |
| 63 | + ); // Replace `UNANSWERED` with the correct answer. |
| 64 | + } |
| 65 | +} |
0 commit comments