1
+ import {
2
+ AnswerChoice ,
3
+ MultipleChoiceQuizQuestion ,
4
+ QuizQuestion ,
5
+ QuizQuestionProvider ,
6
+ } from 'codedifferently-instructional' ;
7
+
8
+ export class ChigazoGrahamsQuiz implements QuizQuestionProvider {
9
+ getProviderName ( ) : string {
10
+ return 'chigazograham' ;
11
+ }
12
+
13
+ makeQuizQuestions ( ) : QuizQuestion [ ] {
14
+ return [
15
+ ChigazoGrahamsQuiz . makeQuestion0 ( ) ,
16
+ ChigazoGrahamsQuiz . makeQuestion1 ( ) ,
17
+ ChigazoGrahamsQuiz . makeQuestion2 ( ) ,
18
+ ] ;
19
+ }
20
+
21
+ private static makeQuestion0 ( ) : QuizQuestion {
22
+ return new MultipleChoiceQuizQuestion (
23
+ 0 ,
24
+ 'What is the sign for modulo?' ,
25
+ new Map < AnswerChoice , string > ( [
26
+ [ AnswerChoice . A , '^' ] ,
27
+ [ AnswerChoice . B , '*' ] ,
28
+ [ AnswerChoice . C , '%' ] ,
29
+ [ AnswerChoice . D , '//' ] ,
30
+ ] ) ,
31
+ AnswerChoice . UNANSWERED ,
32
+ ) ; // Provide an answer. | AnswerChoice.C, '%'
33
+ }
34
+
35
+ private static makeQuestion1 ( ) : QuizQuestion {
36
+ return new MultipleChoiceQuizQuestion (
37
+ 1 ,
38
+ 'Who are hip hops big three' ,
39
+ new Map < AnswerChoice , string > ( [
40
+ [ AnswerChoice . A , 'Kendrick Lamar, J. Cole, and Drake' ] ,
41
+ [ AnswerChoice . B , 'Tupac, Biggie, and Nas' ] ,
42
+ [ AnswerChoice . C , 'Kanye West, Eminem, and Lil Wayne' ] ,
43
+ [ AnswerChoice . D , 'K. Dot' ] ,
44
+ ] ) ,
45
+ AnswerChoice . UNANSWERED ,
46
+ ) ; // Provide an answer. | AnswerChoice.C, '%'
47
+ }
48
+
49
+ private static makeQuestion2 ( ) : QuizQuestion {
50
+ return new MultipleChoiceQuizQuestion (
51
+ 2 ,
52
+ 'what is the answer to life, the universe, and everything else?' ,
53
+ new Map < AnswerChoice , string > ( [
54
+ [ AnswerChoice . A , '42' ] ,
55
+ [ AnswerChoice . B , 'Jesus' ] ,
56
+ [ AnswerChoice . C , 'N/A' ] ,
57
+ [ AnswerChoice . D , 'Whatever you want it to be!' ] ,
58
+ ] ) ,
59
+ AnswerChoice . UNANSWERED ,
60
+ ) ; // Provide an answer. | AnswerChoice.A, '42'
61
+ }
62
+ }
0 commit comments