|
| 1 | +import { |
| 2 | + AnswerChoice, |
| 3 | + MultipleChoiceQuizQuestion, |
| 4 | +} from 'codedifferently-instructional'; |
| 5 | +export class Jbeyquiz { |
| 6 | + getProviderName() { |
| 7 | + return 'computerparts'; |
| 8 | + } |
| 9 | + makeQuizQuestions() { |
| 10 | + return [ |
| 11 | + Jbeyquiz.makeQuestion0(), |
| 12 | + Jbeyquiz.makeQuestion1(), |
| 13 | + Jbeyquiz.makeQuestion2(), |
| 14 | + ]; |
| 15 | + } |
| 16 | + static makeQuestion0() { |
| 17 | + return new MultipleChoiceQuizQuestion( |
| 18 | + 0, |
| 19 | + 'What is RAM?', |
| 20 | + new Map([ |
| 21 | + [AnswerChoice.A, 'Robotic Automated Mechanism'], |
| 22 | + [ |
| 23 | + AnswerChoice.B, |
| 24 | + 'A type of storage device that holds all of your files', |
| 25 | + ], |
| 26 | + [ |
| 27 | + AnswerChoice.C, |
| 28 | + 'Special software that controls your computers internet connection', |
| 29 | + ], |
| 30 | + [AnswerChoice.D, 'Random Access Memory'], |
| 31 | + ]), |
| 32 | + AnswerChoice.UNANSWERED, |
| 33 | + ); // Replace `UNANSWERED` with the correct answer. |
| 34 | + } |
| 35 | + static makeQuestion1() { |
| 36 | + return new MultipleChoiceQuizQuestion( |
| 37 | + 1, |
| 38 | + 'What is a GPU?', |
| 39 | + new Map([ |
| 40 | + [ |
| 41 | + AnswerChoice.A, |
| 42 | + 'A powerful cooling fan that keeps your computer from overheating', |
| 43 | + ], |
| 44 | + [AnswerChoice.B, 'A special type of harddrive'], |
| 45 | + [ |
| 46 | + AnswerChoice.C, |
| 47 | + 'A special type of processor primarily designed to handleand accelerate the rendering of images, video, and animations.', |
| 48 | + ], |
| 49 | + [ |
| 50 | + AnswerChoice.D, |
| 51 | + 'A keyboard that controls the movement of your mouse on screen', |
| 52 | + ], |
| 53 | + ]), |
| 54 | + AnswerChoice.UNANSWERED, |
| 55 | + ); // Replace `UNANSWERED` with the correct answer. |
| 56 | + } |
| 57 | + static makeQuestion2() { |
| 58 | + return new MultipleChoiceQuizQuestion( |
| 59 | + 2, |
| 60 | + 'What is an SSD?', |
| 61 | + new Map([ |
| 62 | + [AnswerChoice.A, 'A type of RAM that stores data permanently'], |
| 63 | + [ |
| 64 | + AnswerChoice.B, |
| 65 | + 'A storage device used in computers and other electronic devices', |
| 66 | + ], |
| 67 | + [ |
| 68 | + AnswerChoice.C, |
| 69 | + 'A type of USB cable that connects your computer to the internet', |
| 70 | + ], |
| 71 | + [ |
| 72 | + AnswerChoice.D, |
| 73 | + 'A type of screen that displays the contents of your computers memory', |
| 74 | + ], |
| 75 | + ]), |
| 76 | + AnswerChoice.UNANSWERED, |
| 77 | + ); // Replace `UNANSWERED` with the correct answer. |
| 78 | + } |
| 79 | +} |
0 commit comments