|
| 1 | +import { |
| 2 | + AnswerChoice, |
| 3 | + MultipleChoiceQuizQuestion, |
| 4 | + QuizQuestion, |
| 5 | + QuizQuestionProvider, |
| 6 | +} from 'codedifferently-instructional'; |
| 7 | + |
| 8 | +export class LindaQuinoaQuiz implements QuizQuestionProvider { |
| 9 | + getProviderName(): string { |
| 10 | + return 'lindaquinoa'; |
| 11 | + } |
| 12 | + |
| 13 | + makeQuizQuestions(): QuizQuestion[] { |
| 14 | + return [ |
| 15 | + LindaQuinoaQuiz.makeQuestion0(), |
| 16 | + LindaQuinoaQuiz.makeQuestion1(), |
| 17 | + LindaQuinoaQuiz.makeQuestion2(), |
| 18 | + ]; |
| 19 | + } |
| 20 | + |
| 21 | + private static makeQuestion0(): QuizQuestion { |
| 22 | + return new MultipleChoiceQuizQuestion( |
| 23 | + 0, |
| 24 | + 'Which HTML element is best suited for defining the mainheading of a page for both search engines and screen readers?', |
| 25 | + new Map<AnswerChoice, string>([ |
| 26 | + [AnswerChoice.A, '<title>'], |
| 27 | + [AnswerChoice.B, '<header'], |
| 28 | + [AnswerChoice.C, '<h1>'], |
| 29 | + [AnswerChoice.D, '<head>'], |
| 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 | + 'When two CSS rules target the same element, which factor has the highest priority in determining which style is applied?', |
| 39 | + new Map<AnswerChoice, string>([ |
| 40 | + [AnswerChoice.A, 'The order the CSS files are linked in the HTML'], |
| 41 | + [AnswerChoice.B, 'Specificity of the selectors'], |
| 42 | + [AnswerChoice.C, 'The font-family value'], |
| 43 | + [AnswerChoice.D, 'The number of lines of CSS code in the stylesheet'], |
| 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 is the main purpose of creating a new branch in Git before starting a feature?', |
| 53 | + new Map<AnswerChoice, string>([ |
| 54 | + [AnswerChoice.A, 'To automatically merge changes into the main branch'], |
| 55 | + [AnswerChoice.B, 'To experiment without affecting the main codebase'], |
| 56 | + [AnswerChoice.C, 'To delete the main branch safely'], |
| 57 | + [AnswerChoice.D, 'To reduce the size of the repository'], |
| 58 | + ]), |
| 59 | + AnswerChoice.UNANSWERED, |
| 60 | + ); // Replace `UNANSWERED` with the correct answer. |
| 61 | + } |
| 62 | +} |
0 commit comments