Skip to content

Commit 6a369d1

Browse files
committed
Add Lesson 02 quiz answers
1 parent 3b3e174 commit 6a369d1

File tree

1 file changed

+13
-18
lines changed

1 file changed

+13
-18
lines changed

lesson_02/quiz/src/lesson2.ts

Lines changed: 13 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ export class Lesson2 {
3939
[AnswerChoice.C, "To delete unnecessary files"],
4040
[AnswerChoice.D, "To run code more efficiently"],
4141
]),
42-
AnswerChoice.UNANSWERED, // Replace `UNANSWERED` with the correct answer.
42+
AnswerChoice.B
4343
);
4444
}
4545

@@ -48,15 +48,12 @@ export class Lesson2 {
4848
1,
4949
"What is a fork in Git?",
5050
new Map([
51-
[
52-
AnswerChoice.A,
53-
"A duplicate copy of a repository that you own and modify",
54-
],
51+
[AnswerChoice.A, "A duplicate copy of a repository that you own and modify"],
5552
[AnswerChoice.B, "A temporary backup of the code"],
5653
[AnswerChoice.C, "A tool for merging branches"],
5754
[AnswerChoice.D, "A way to delete a repository"],
5855
]),
59-
AnswerChoice.UNANSWERED, // Replace `UNANSWERED` with the correct answer.
56+
AnswerChoice.A
6057
);
6158
}
6259

@@ -70,7 +67,7 @@ export class Lesson2 {
7067
[AnswerChoice.C, "Push changes to the server"],
7168
[AnswerChoice.D, "Write code directly in GitHub"],
7269
]),
73-
AnswerChoice.UNANSWERED, // Replace `UNANSWERED` with the correct answer.
70+
AnswerChoice.D
7471
);
7572
}
7673

@@ -84,7 +81,7 @@ export class Lesson2 {
8481
[AnswerChoice.C, "git branch"],
8582
[AnswerChoice.D, "git pull"],
8683
]),
87-
AnswerChoice.UNANSWERED, // Replace `UNANSWERED` with the correct answer.
84+
AnswerChoice.B
8885
);
8986
}
9087

@@ -98,7 +95,7 @@ export class Lesson2 {
9895
[AnswerChoice.C, "NetBeans"],
9996
[AnswerChoice.D, "VS Code"],
10097
]),
101-
AnswerChoice.UNANSWERED, // Replace `UNANSWERED` with the correct answer.
98+
AnswerChoice.D
10299
);
103100
}
104101

@@ -112,7 +109,7 @@ export class Lesson2 {
112109
[AnswerChoice.C, "Dev Containers"],
113110
[AnswerChoice.D, "Source Control"],
114111
]),
115-
AnswerChoice.UNANSWERED, // Replace `UNANSWERED` with the correct answer.
112+
AnswerChoice.C
116113
);
117114
}
118115

@@ -126,7 +123,7 @@ export class Lesson2 {
126123
[AnswerChoice.C, "Playing music"],
127124
[AnswerChoice.D, "Managing source control"],
128125
]),
129-
AnswerChoice.UNANSWERED, // Replace `UNANSWERED` with the correct answer.
126+
AnswerChoice.C
130127
);
131128
}
132129

@@ -140,7 +137,7 @@ export class Lesson2 {
140137
[AnswerChoice.C, "cd"],
141138
[AnswerChoice.D, "mkdir"],
142139
]),
143-
AnswerChoice.UNANSWERED, // Replace `UNANSWERED` with the correct answer.
140+
AnswerChoice.B
144141
);
145142
}
146143

@@ -154,7 +151,7 @@ export class Lesson2 {
154151
[AnswerChoice.C, "cd"],
155152
[AnswerChoice.D, "mkdir"],
156153
]),
157-
AnswerChoice.UNANSWERED, // Replace `UNANSWERED` with the correct answer.
154+
AnswerChoice.C
158155
);
159156
}
160157

@@ -168,7 +165,7 @@ export class Lesson2 {
168165
[AnswerChoice.C, "Remove a file or directory"],
169166
[AnswerChoice.D, "Copy a file or directory"],
170167
]),
171-
AnswerChoice.UNANSWERED, // Replace `UNANSWERED` with the correct answer.
168+
AnswerChoice.A
172169
);
173170
}
174171

@@ -182,11 +179,9 @@ export class Lesson2 {
182179
[AnswerChoice.C, "⌘ + Q"],
183180
[AnswerChoice.D, '⌘ + S, then type "terminal"'],
184181
]),
185-
AnswerChoice.UNANSWERED, // Replace `UNANSWERED` with the correct answer.
182+
AnswerChoice.B
186183
);
187184
}
188185
}
189186

190-
if (!process.env.JEST_WORKER_ID) {
191-
new Lesson2().run();
192-
}
187+
if (!process.en

0 commit comments

Comments
 (0)