|
| 1 | +import { |
| 2 | + AnswerChoice, |
| 3 | + MultipleChoiceQuizQuestion, |
| 4 | + QuizQuestion, |
| 5 | + QuizQuestionProvider, |
| 6 | +} from 'codedifferently-instructional'; |
| 7 | + |
| 8 | +export class KhaylaSaundersQuiz implements QuizQuestionProvider { |
| 9 | + getProviderName(): string { |
| 10 | + return 'khaylasaunders'; |
| 11 | + } |
| 12 | + |
| 13 | + makeQuizQuestions(): QuizQuestion[] { |
| 14 | + return [ |
| 15 | + KhaylaSaundersQuiz.makeQuestion0(), |
| 16 | + KhaylaSaundersQuiz.makeQuestion1(), |
| 17 | + KhaylaSaundersQuiz.makeQuestion2(), |
| 18 | + ]; |
| 19 | + } |
| 20 | + |
| 21 | + private static makeQuestion0(): QuizQuestion { |
| 22 | + return new MultipleChoiceQuizQuestion( |
| 23 | + 0, |
| 24 | + 'Your team is working on a shared Git repository. Which of the following is not the best practice to follow for smooth collaboration?', |
| 25 | + new Map<AnswerChoice, string>([ |
| 26 | + [AnswerChoice.A, 'Always pull before pushing to avoid conflicts.'], |
| 27 | + [ |
| 28 | + AnswerChoice.B, |
| 29 | + 'Work directly on the main branch to keep the workflow simple.', |
| 30 | + ], |
| 31 | + [AnswerChoice.C, 'Use branches for separate work streams.'], |
| 32 | + [ |
| 33 | + AnswerChoice.D, |
| 34 | + 'Use Git stash to temporarily save uncommitted changes. ', |
| 35 | + ], |
| 36 | + ]), |
| 37 | + AnswerChoice.UNANSWERED, |
| 38 | + ); // Replace `UNANSWERED` with the correct answer. |
| 39 | + } |
| 40 | + |
| 41 | + private static makeQuestion1(): QuizQuestion { |
| 42 | + return new MultipleChoiceQuizQuestion( |
| 43 | + 1, |
| 44 | + 'When should you use git rebase --skip while resolving conflicts in Git?', |
| 45 | + new Map<AnswerChoice, string>([ |
| 46 | + [ |
| 47 | + AnswerChoice.A, |
| 48 | + ' When you want to discard the conflicted commit during a rebase.', |
| 49 | + ], |
| 50 | + [AnswerChoice.B, 'When resolving conflicts during a merge.'], |
| 51 | + [ |
| 52 | + AnswerChoice.C, |
| 53 | + 'When you want to keep the changes from the conflicted commit.', |
| 54 | + ], |
| 55 | + [AnswerChoice.D, 'When you need to undo the last commit '], |
| 56 | + ]), |
| 57 | + AnswerChoice.UNANSWERED, |
| 58 | + ); // Replace `UNANSWERED` with the correct answer. |
| 59 | + } |
| 60 | + private static makeQuestion2(): QuizQuestion { |
| 61 | + return new MultipleChoiceQuizQuestion( |
| 62 | + 2, |
| 63 | + 'What languge is best to communiate with computers ', |
| 64 | + new Map<AnswerChoice, string>([ |
| 65 | + [AnswerChoice.A, '0s & 1s '], |
| 66 | + [AnswerChoice.B, 'JavaScript'], |
| 67 | + [AnswerChoice.C, 'Supersets'], |
| 68 | + [AnswerChoice.D, 'Git'], |
| 69 | + ]), |
| 70 | + AnswerChoice.UNANSWERED, |
| 71 | + ); // Replace `UNANSWERED` with the correct answer. |
| 72 | + } |
| 73 | +} |
0 commit comments