Skip to content

Commit feabd72

Browse files
committed
Questions to be answered
1 parent dd6e25c commit feabd72

File tree

1 file changed

+61
-0
lines changed

1 file changed

+61
-0
lines changed
Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
import {
2+
AnswerChoice,
3+
MultipleChoiceQuizQuestion,
4+
QuizQuestion,
5+
QuizQuestionProvider,
6+
} from 'codedifferently-instructional';
7+
8+
export class PabloLimonParedesQuiz implements QuizQuestionProvider {
9+
getProviderName(): string {
10+
return 'pablolimonparedes';
11+
}
12+
13+
makeQuizQuestions(): QuizQuestion[] {
14+
return [
15+
PabloLimonParedesQuiz.makeQuestion0(),
16+
PabloLimonParedesQuiz.makeQuestion1(),
17+
PabloLimonParedesQuiz.makeQuestion2(),
18+
];
19+
}
20+
21+
private static makeQuestion0(): QuizQuestion {
22+
return new MultipleChoiceQuizQuestion(
23+
0,
24+
'What does "git checkout -b branch" command do?',
25+
new Map<AnswerChoice, string>([
26+
[AnswerChoice.A, 'Creates a pull request'],
27+
[AnswerChoice.B, 'Creates a new branch and switches you to it'],
28+
[AnswerChoice.C, 'To move to another branch'],
29+
[AnswerChoice.D, 'Delete a branch'],
30+
]),
31+
AnswerChoice.UNANSWERED,
32+
); // Replace `UNANSWERED` with the correct answer.
33+
}
34+
35+
private static makeQuestion1(): QuizQuestion {
36+
return new MultipleChoiceQuizQuestion(
37+
0,
38+
'What does the "man git" command do?',
39+
new Map<AnswerChoice, string>([
40+
[AnswerChoice.A, 'Create a new directory'],
41+
[AnswerChoice.B, 'Shows history of commands'],
42+
[AnswerChoice.C, 'Get to main branch'],
43+
[AnswerChoice.D, 'Access the manual for git'],
44+
]),
45+
AnswerChoice.UNANSWERED,
46+
); // Replace `UNANSWERED` with the correct answer.
47+
}
48+
private static makeQuestion2(): QuizQuestion {
49+
return new MultipleChoiceQuizQuestion(
50+
0,
51+
'How do you clear up your terminal if your screen is cramped?',
52+
new Map<AnswerChoice, string>([
53+
[AnswerChoice.A, 'command + k'],
54+
[AnswerChoice.B, 'CTRL + space'],
55+
[AnswerChoice.C, 'command + shift + P'],
56+
[AnswerChoice.D, 'command + T'],
57+
]),
58+
AnswerChoice.UNANSWERED,
59+
); // Replace `UNANSWERED` with the correct answer.
60+
}
61+
}

0 commit comments

Comments
 (0)