@@ -5,37 +5,64 @@ import {
5
5
QuizQuestionProvider ,
6
6
} from 'codedifferently-instructional' ;
7
7
8
- export class AnthonyMaysQuiz implements QuizQuestionProvider {
8
+ export class HummadTanweerQuiz implements QuizQuestionProvider {
9
9
getProviderName ( ) : string {
10
- return 'anthonymays ' ;
10
+ return 'hummadtanweer ' ;
11
11
}
12
12
13
13
makeQuizQuestions ( ) : QuizQuestion [ ] {
14
- return [ AnthonyMaysQuiz . makeQuestion0 ( ) , AnthonyMaysQuiz . makeQuestion1 ( ) ] ;
14
+ return [
15
+ HummadTanweerQuiz . makeQuestion0 ( ) ,
16
+ HummadTanweerQuiz . makeQuestion1 ( ) ,
17
+ HummadTanweerQuiz . makeQuestion2 ( ) ,
18
+ ] ;
15
19
}
16
20
17
21
private static makeQuestion0 ( ) : QuizQuestion {
18
22
return new MultipleChoiceQuizQuestion (
19
23
0 ,
20
- 'What is a multiple choice question ?' ,
24
+ 'Who is attributed with inventing GIT ?' ,
21
25
new Map < AnswerChoice , string > ( [
22
- [ AnswerChoice . A , 'A question about agency' ] ,
23
- [ AnswerChoice . B , 'The hardest kind of quiz question there is' ] ,
26
+ [ AnswerChoice . A , 'Linus Torvalds' ] ,
27
+ [ AnswerChoice . B , 'James Gosling' ] ,
28
+ [ AnswerChoice . C , 'Koska Kawaguchi' ] ,
29
+ [ AnswerChoice . D , 'Junio C. Hamano' ] ,
30
+ ] ) ,
31
+ AnswerChoice . A ,
32
+ ) ; // Replace `UNANSWERED` with the correct answer.
33
+ }
34
+
35
+ private static makeQuestion1 ( ) : QuizQuestion {
36
+ return new MultipleChoiceQuizQuestion (
37
+ 1 ,
38
+ 'What is the opposite of a GIT clone?' ,
39
+ new Map < AnswerChoice , string > ( [
40
+ [ AnswerChoice . A , 'GIT add' ] ,
41
+ [ AnswerChoice . B , 'GIT push' ] ,
24
42
[
25
43
AnswerChoice . C ,
26
- 'A question that can be answered using one or more provided choices ' ,
44
+ 'GIT upload ' ,
27
45
] ,
28
- [ AnswerChoice . D , 'Whatever you want it to be! ' ] ,
46
+ [ AnswerChoice . D , 'GIT status ' ] ,
29
47
] ) ,
30
- AnswerChoice . UNANSWERED ,
48
+ AnswerChoice . B ,
31
49
) ; // Replace `UNANSWERED` with the correct answer.
32
50
}
33
51
34
- private static makeQuestion1 ( ) : QuizQuestion {
35
- return new QuizQuestion (
36
- 1 ,
37
- 'What is a computer?' ,
38
- 'A machine that automatically transforms input into output.' ,
39
- ) ; // Provide an answer.
52
+ private static makeQuestion2 ( ) : QuizQuestion {
53
+ return new MultipleChoiceQuizQuestion (
54
+ 2 ,
55
+ 'How do you check the state of your local git repository since your last commit?' ,
56
+ new Map < AnswerChoice , string > ( [
57
+ [ AnswerChoice . A , 'GIT diff' ] ,
58
+ [ AnswerChoice . B , 'GIT commit' ] ,
59
+ [
60
+ AnswerChoice . C ,
61
+ 'GIT status' ,
62
+ ] ,
63
+ [ AnswerChoice . D , 'GIT check' ] ,
64
+ ] ) ,
65
+ AnswerChoice . C ,
66
+ ) ; // Replace `UNANSWERED` with the correct answer.
40
67
}
41
68
}
0 commit comments