1
+ import {
2
+ AnswerChoice ,
3
+ MultipleChoiceQuizQuestion ,
4
+ QuizQuestion ,
5
+ QuizQuestionProvider ,
6
+ } from 'codedifferently-instructional' ;
7
+
8
+ export class AngelicaCQuiz implements QuizQuestionProvider {
9
+ getProviderName ( ) : string {
10
+ return 'angelicacastillo' ;
11
+ }
12
+
13
+ makeQuizQuestions ( ) : QuizQuestion [ ] {
14
+ return [ AngelicaCQuiz . makeQuestion0 ( ) , AngelicaCQuiz . makeQuestion1 ( ) , AngelicaCQuiz . makeQuestion2 ( ) ] ;
15
+ }
16
+
17
+ private static makeQuestion0 ( ) : QuizQuestion {
18
+ return new MultipleChoiceQuizQuestion (
19
+ 0 ,
20
+ 'What does CPU stand for?' ,
21
+ new Map < AnswerChoice , string > ( [
22
+ [ AnswerChoice . A , 'Central Processing Unit' ] ,
23
+ [ AnswerChoice . B , 'Central Program Unit' ] ,
24
+ [
25
+ AnswerChoice . C ,
26
+ 'Center Program Unit' ,
27
+ ] ,
28
+ [ AnswerChoice . D , 'Whatever you want it to be!' ] ,
29
+ ] ) ,
30
+ AnswerChoice . UNANSWERED ,
31
+ ) ; // Replace `UNANSWERED` with the correct answer.
32
+ }
33
+ private static makeQuestion1 ( ) : QuizQuestion {
34
+ return new MultipleChoiceQuizQuestion (
35
+ 1 ,
36
+ 'Which of the following would be a "simple" essential part of the computer?' ,
37
+ new Map < AnswerChoice , string > ( [
38
+ [ AnswerChoice . A , 'RAM' ] ,
39
+ [ AnswerChoice . B , 'CPU' ] ,
40
+ [
41
+ AnswerChoice . C ,
42
+ 'CASE' ,
43
+ ] ,
44
+ [ AnswerChoice . D , 'HARD DRIVE' ] ,
45
+ ] ) ,
46
+ AnswerChoice . UNANSWERED ,
47
+ ) ; // Replace `UNANSWERED` with the correct answer.
48
+ }
49
+ private static makeQuestion2 ( ) : QuizQuestion {
50
+ return new MultipleChoiceQuizQuestion (
51
+ 2 ,
52
+ 'What would be considered the brains long term memory?' ,
53
+ new Map < AnswerChoice , string > ( [
54
+ [ AnswerChoice . A , 'Mother board' ] ,
55
+ [ AnswerChoice . B , 'Hard drive' ] ,
56
+ [
57
+ AnswerChoice . C ,
58
+ 'Power supply' ,
59
+ ] ,
60
+ [ AnswerChoice . D , 'Computer' ] ,
61
+ ] ) ,
62
+ AnswerChoice . UNANSWERED ,
63
+ ) ; // Replace `UNANSWERED` with the correct answer.
64
+ }
65
+ }
0 commit comments