|
| 1 | +import { |
| 2 | + AnswerChoice, |
| 3 | + MultipleChoiceQuizQuestion, |
| 4 | + QuizQuestion, |
| 5 | + QuizQuestionProvider, |
| 6 | +} from 'codedifferently-instructional'; |
| 7 | + |
| 8 | +export class AnanatawaQuiz implements QuizQuestionProvider { |
| 9 | + getProviderName(): string { |
| 10 | + return ‘awatanana’; |
| 11 | + } |
| 12 | + |
| 13 | + makeQuizQuestions(): QuizQuestion[] { |
| 14 | + return [ |
| 15 | + AnanatawaQuiz.makeQuestion0(), |
| 16 | + AnanatawaQuiz.makeQuestion1(), |
| 17 | + AnanatawaQuiz.makeQuestion2(), |
| 18 | + AnanatawaQuiz.makeQuestion3(), |
| 19 | + ]; |
| 20 | + } |
| 21 | + |
| 22 | + private static makeQuestion0(): QuizQuestion { |
| 23 | + return new MultipleChoiceQuizQuestion( |
| 24 | + 0, |
| 25 | + 'What is a pull request?', |
| 26 | + new Map<AnswerChoice, string>([ |
| 27 | + [AnswerChoice.A,'When someone asks to add their changes to the main project.'], |
| 28 | + [AnswerChoice.B,'A personal copy of someone elses project that you can make changes to.'], |
| 29 | + [AnswerChoice.C,'A toolbox where you can write, commit, and push code.'], |
| 30 | + [AnswerChoice.D, 'A request to pull the plug on a project.'], |
| 31 | + ]), |
| 32 | + AnswerChoice.UNANSWERED, |
| 33 | + ); // Replace `UNANSWERED` with the correct answer. |
| 34 | + } |
| 35 | + |
| 36 | + private static makeQuestion1(): QuizQuestion { |
| 37 | + return new MultipleChoiceQuizQuestion( |
| 38 | + 1, |
| 39 | + 'What does the command git status do?', |
| 40 | + new Map<AnswerChoice, string>([ |
| 41 | + [AnswerChoice.A, 'Make a new git repository'], |
| 42 | + [AnswerChoice.B, 'Checks the status of your repository'], |
| 43 | + [AnswerChoice.C, 'Stage a file for commit'], |
| 44 | + [AnswerChoice.D, 'List all branches in the repository'], |
| 45 | + ]), |
| 46 | + AnswerChoice.UNANSWERED, |
| 47 | + ); // Replace `UNANSWERED` with the correct answer. |
| 48 | + } |
| 49 | + |
| 50 | + private static makeQuestion2(): QuizQuestion { |
| 51 | + return new MultipleChoiceQuizQuestion( |
| 52 | + 2, |
| 53 | + 'What does the command git pull origin do?', |
| 54 | + new Map<AnswerChoice, string>([ |
| 55 | + [AnswerChoice.A, 'Push the latest changes from the remote repo.'], |
| 56 | + [AnswerChoice.B, 'Pull the latest changes from the remote repo.'], |
| 57 | + [AnswerChoice.C, 'Display the definition for Git.'], |
| 58 | + [AnswerChoice.D, 'Stage a file for commit.'], |
| 59 | + ]), |
| 60 | + AnswerChoice.UNANSWERED, |
| 61 | + ); // Replace `UNANSWERED` with the correct answer. |
| 62 | + } |
| 63 | + |
| 64 | + private static makeQuestion3(): QuizQuestion { |
| 65 | + return new MultipleChoiceQuizQuestion( |
| 66 | + 3, |
| 67 | + 'What was the first homework assignment that Mr. Mays assigned Cohort 25.1?', |
| 68 | + new Map<AnswerChoice, string>([ |
| 69 | + [AnswerChoice.A, 'Make an account on GitHub.com'], |
| 70 | + [AnswerChoice.B, 'Convert a Markdown file into HTML.'], |
| 71 | + [AnswerChoice.C, 'Create a personal README and submit via GitHub.'], |
| 72 | + [AnswerChoice.D,'Create a personal README and push to Github via VS Code.'], |
| 73 | + ]), |
| 74 | + AnswerChoice.UNANSWERED, |
| 75 | + ); // Replace `UNANSWERED` with the correct answer. |
| 76 | + } |
| 77 | +} |
0 commit comments