1
+ import {
2
+ AnswerChoice ,
3
+ MultipleChoiceQuizQuestion ,
4
+ QuizQuestion ,
5
+ QuizQuestionProvider ,
6
+ } from 'codedifferently-instructional' ;
7
+
8
+ export class JeremiahWingQuiz implements QuizQuestionProvider {
9
+ getProviderName ( ) : string {
10
+ return 'jeremiahwing' ;
11
+ }
12
+
13
+ makeQuizQuestions ( ) : QuizQuestion [ ] {
14
+ return [
15
+ JeremiahWingQuiz . makeQuestion0 ( ) ,
16
+ JeremiahWingQuiz . makeQuestion1 ( ) ,
17
+ JeremiahWingQuiz . makeQuestion2 ( ) ,
18
+ JeremiahWingQuiz . makeQuestion3 ( ) ,
19
+ ] ;
20
+ }
21
+
22
+ private static makeQuestion0 ( ) : QuizQuestion {
23
+ return new MultipleChoiceQuizQuestion (
24
+ 0 ,
25
+ 'What does the SRC element stand for?' ,
26
+ new Map < AnswerChoice , string > ( [
27
+ [ AnswerChoice . A , 'Source' ] ,
28
+ [ AnswerChoice . B , 'Script' ] ,
29
+ [ AnswerChoice . C , 'Style' ] ,
30
+ [ AnswerChoice . D , 'Section' ] ,
31
+ ] ) ,
32
+ AnswerChoice . UNANSWERED ,
33
+ ) ;
34
+ }
35
+
36
+ private static makeQuestion1 ( ) : QuizQuestion {
37
+ return new MultipleChoiceQuizQuestion (
38
+ 1 ,
39
+ 'What does the git fetch command do?' ,
40
+ new Map < AnswerChoice , string > ( [
41
+ [ AnswerChoice . A , 'Downloads objects and refs from another repository' ] ,
42
+ [ AnswerChoice . B , 'Merges changes from another branch' ] ,
43
+ [ AnswerChoice . C , 'Commits changes to the local repository' ] ,
44
+ [ AnswerChoice . D , 'Deletes a branch from the repository' ] ,
45
+ ] ) ,
46
+ AnswerChoice . UNANSWERED ,
47
+ ) ;
48
+ }
49
+
50
+ private static makeQuestion2 ( ) : QuizQuestion {
51
+ return new MultipleChoiceQuizQuestion (
52
+ 2 ,
53
+ 'What does the git pull command do?' ,
54
+ new Map < AnswerChoice , string > ( [
55
+ [
56
+ AnswerChoice . A ,
57
+ 'Fetches from and integrates with another repository or a local branch' ,
58
+ ] ,
59
+ [ AnswerChoice . B , 'Merges changes from another branch' ] ,
60
+ [ AnswerChoice . C , 'Commits changes to the local repository' ] ,
61
+ [ AnswerChoice . D , 'Deletes a branch from the repository' ] ,
62
+ ] ) ,
63
+ AnswerChoice . UNANSWERED ,
64
+ ) ;
65
+ }
66
+
67
+ private static makeQuestion3 ( ) : QuizQuestion {
68
+ return new MultipleChoiceQuizQuestion (
69
+ 3 ,
70
+ 'What does the git push command do?' ,
71
+ new Map < AnswerChoice , string > ( [
72
+ [
73
+ AnswerChoice . A ,
74
+ 'Uploads local repository content to a remote repository' ,
75
+ ] ,
76
+ [ AnswerChoice . B , 'Merges changes from another branch' ] ,
77
+ [ AnswerChoice . C , 'Commits changes to the local repository' ] ,
78
+ [ AnswerChoice . D , 'Downloads objects and refs from another repository' ] ,
79
+ ] ) ,
80
+ AnswerChoice . UNANSWERED ,
81
+ ) ;
82
+ }
83
+ }
0 commit comments