|
| 1 | +import { |
| 2 | + AnswerChoice, |
| 3 | + MultipleChoiceQuizQuestion, |
| 4 | +} from 'codedifferently-instructional'; |
| 5 | +export class RasheedMillerQuiz { |
| 6 | + getProviderName() { |
| 7 | + return 'rmill'; |
| 8 | + } |
| 9 | + makeQuizQuestions() { |
| 10 | + return [ |
| 11 | + RasheedMillerQuiz.makeQuestion0(), |
| 12 | + RasheedMillerQuiz.makeQuestion1(), |
| 13 | + RasheedMillerQuiz.makeQuestion2(), |
| 14 | + ]; |
| 15 | + } |
| 16 | + static makeQuestion0() { |
| 17 | + return new MultipleChoiceQuizQuestion( |
| 18 | + 0, |
| 19 | + 'What command is used to navigate to a different directory in the terminal?', |
| 20 | + new Map([ |
| 21 | + [AnswerChoice.A, 'cd'], |
| 22 | + [AnswerChoice.B,'ls'], |
| 23 | + [AnswerChoice.C,'mkdir'], |
| 24 | + [AnswerChoice.D, 'rm'], |
| 25 | + ]), |
| 26 | + AnswerChoice.UNANSWERED, |
| 27 | + ); // Replace `UNANSWERED` with the correct answer. |
| 28 | + } |
| 29 | + static makeQuestion1() { |
| 30 | + return new MultipleChoiceQuizQuestion( |
| 31 | + 1, |
| 32 | + 'What is GitHub mainly used for?', |
| 33 | + new Map([ |
| 34 | + [AnswerChoice.A,'Playing Games'], |
| 35 | + [AnswerChoice.B, 'Sharing and managing code'], |
| 36 | + [AnswerChoice.C,'Watching Videos'], |
| 37 | + [AnswerChoice.D,'Sending Emails'], |
| 38 | + ]), |
| 39 | + AnswerChoice.UNANSWERED, |
| 40 | + ); // Replace `UNANSWERED` with the correct answer. |
| 41 | + } |
| 42 | + static makeQuestion2() { |
| 43 | + return new MultipleChoiceQuizQuestion( |
| 44 | + 2, |
| 45 | + 'What is the primary purpose of the "Inspect" tool in a web browser?', |
| 46 | + new Map([ |
| 47 | + [AnswerChoice.A, 'Edit website code temporarily'], |
| 48 | + [AnswerChoice.B, 'Download videos'], |
| 49 | + [AnswerChoice.C, 'Change website themes'], |
| 50 | + [AnswerChoice.D,'Install Apps'], |
| 51 | + ]), |
| 52 | + AnswerChoice.UNANSWERED, |
| 53 | + ); // Replace `UNANSWERED` with the correct answer. |
| 54 | + } |
| 55 | +} |
0 commit comments