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