|
| 1 | +import { |
| 2 | + AnswerChoice, |
| 3 | + MultipleChoiceQuizQuestion, |
| 4 | + QuizQuestion, |
| 5 | + QuizQuestionProvider, |
| 6 | +} from 'codedifferently-instructional'; |
| 7 | + |
| 8 | +export class MontezBradleyQuiz implements QuizQuestionProvider { |
| 9 | + getProviderName(): string { |
| 10 | + return 'montezbradley'; |
| 11 | + } |
| 12 | + |
| 13 | + makeQuizQuestions(): QuizQuestion[] { |
| 14 | + return [ |
| 15 | + MontezBradleyQuiz.makeQuestion0(), |
| 16 | + MontezBradleyQuiz.makeQuestion1(), |
| 17 | + MontezBradleyQuiz.makeQuestion2(), |
| 18 | + ]; |
| 19 | + } |
| 20 | + |
| 21 | + private static makeQuestion0(): QuizQuestion { |
| 22 | + return new MultipleChoiceQuizQuestion( |
| 23 | + 0, |
| 24 | + 'What Git command is used to check the current status of a repository?', |
| 25 | + new Map<AnswerChoice, string>([ |
| 26 | + [AnswerChoice.A, 'git status'], |
| 27 | + [AnswerChoice.B, 'git info'], |
| 28 | + [AnswerChoice.C, 'git check-status'], |
| 29 | + [AnswerChoice.D, 'git current'], |
| 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 command is used to save all changes and create a commit in Git?', |
| 39 | + new Map<AnswerChoice, string>([ |
| 40 | + [AnswerChoice.A, 'git status'], |
| 41 | + [AnswerChoice.B, 'git info'], |
| 42 | + [AnswerChoice.C, 'git check-status'], |
| 43 | + [AnswerChoice.D, 'git add git commit -m "Your commit message'], |
| 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 Git command is used to check the current status of a repository', |
| 53 | + new Map<AnswerChoice, string>([ |
| 54 | + [AnswerChoice.A, 'git status'], |
| 55 | + [AnswerChoice.B, 'git verify'], |
| 56 | + [AnswerChoice.C, 'git info'], |
| 57 | + [AnswerChoice.D, 'git check-status'], |
| 58 | + ]), |
| 59 | + AnswerChoice.UNANSWERED, |
| 60 | + ); |
| 61 | + } |
| 62 | + |
| 63 | +} |
0 commit comments