1
+ import {
2
+ AnswerChoice ,
3
+ MultipleChoiceQuizQuestion ,
4
+ QuizQuestion ,
5
+ QuizQuestionProvider ,
6
+ } from 'codedifferently-instructional' ;
7
+
8
+ export class Bryanasingletonbarnhart implements QuizQuestionProvider {
9
+ getProviderName ( ) : string {
10
+ return 'bryanasingletonbarnhart' ;
11
+ }
12
+
13
+ makeQuizQuestions ( ) : QuizQuestion [ ] {
14
+ return [
15
+ Bryanasingletonbarnhart . makeQuestion0 ( ) ,
16
+ Bryanasingletonbarnhart . makeQuestion1 ( ) ,
17
+ Bryanasingletonbarnhart . makeQuestion2 ( ) ,
18
+ ] ;
19
+ }
20
+
21
+ private static makeQuestion0 ( ) : QuizQuestion {
22
+ return new MultipleChoiceQuizQuestion (
23
+ 0 ,
24
+ 'Which component is consider the brain?' ,
25
+ new Map < AnswerChoice , string > ( [
26
+ [ AnswerChoice . A , 'Case' ] ,
27
+ [ AnswerChoice . B , 'Power Supply' ] ,
28
+ [ AnswerChoice . C , 'CPU' ] ,
29
+ [ AnswerChoice . D , 'Motherboard' ] ,
30
+ ] ) ,
31
+ AnswerChoice . C ,
32
+ ) ; // Replace `UNANSWERED` with the correct answer.
33
+ }
34
+
35
+ private static makeQuestion1 ( ) : QuizQuestion {
36
+ return new MultipleChoiceQuizQuestion (
37
+ 1 ,
38
+ 'What does SDD stand for?' ,
39
+ new Map < AnswerChoice , string > ( [
40
+ [ AnswerChoice . A , 'Same Day Delivery' ] ,
41
+ [ AnswerChoice . B , 'Solid State Drive' ] ,
42
+ [ AnswerChoice . C , 'System Design Document' ] ,
43
+ [ AnswerChoice . D , 'Software Development Document' ] ,
44
+ ] ) ,
45
+ AnswerChoice . B ,
46
+ ) ; // Replace `UNANSWERED` with the correct answer.
47
+ }
48
+ private static makeQuestion2 ( ) : QuizQuestion {
49
+ return new MultipleChoiceQuizQuestion (
50
+ 2 ,
51
+ 'How many bits is in a byte?' ,
52
+ new Map < AnswerChoice , string > ( [
53
+ [ AnswerChoice . A , '2' ] ,
54
+ [ AnswerChoice . B , '40' ] ,
55
+ [ AnswerChoice . C , '1000' ] ,
56
+ [ AnswerChoice . D , '8' ] ,
57
+ ] ) ,
58
+ AnswerChoice . D ,
59
+ ) ; // Replace `UNANSWERED` with the correct answer.
60
+ }
61
+ }
0 commit comments