Skip to content

Commit a704ce1

Browse files
committed
checked errors in quiz
1 parent 32ae5f8 commit a704ce1

File tree

1 file changed

+13
-19
lines changed

1 file changed

+13
-19
lines changed

lesson_03/quiz/src/quizzes/Chanel_Hutt_quiz.ts

Lines changed: 13 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,37 +1,37 @@
11
import {
22
AnswerChoice,
33
MultipleChoiceQuizQuestion,
4-
MultipleQuestionnaireProvider,
54
QuizQuestion,
5+
QuizQuestionProvider,
66
} from 'codedifferently-instructional';
77

8-
export class ChanelHuttQuiz implements MultipleQuestionnaireProvider {
8+
export class ChanelHuttQuiz implements QuizQuestionProvider {
99
getProviderName(): string {
10-
return 'multiplequestionnaire';
10+
return 'chanelhutt';
1111
}
1212

1313
makeQuizQuestions(): QuizQuestion[] {
14-
return [ChanelHuttQuiz.makeQuestion0(), ChanelHuttQuiz.makeQuestion1()];
14+
return [ChanelHuttQuiz.makeQuestion0(),ChanelHuttQuiz.makeQuestion1(),ChanelHuttQuiz.makeQuestion2(),];
1515
}
1616

17-
private static makeQuestion0(): MultipleQuestionnaire {
17+
private static makeQuestion0(): QuizQuestion {
1818
return new MultipleChoiceQuizQuestion(
1919
0,
2020
'Which one is not a purpose for git commit?',
2121
new Map<AnswerChoice, string>([
2222
[AnswerChoice.A, 'To save changes to your local repository'],
23-
[AnswerChoice.B, 'To provide a clear, descriptive message for the changes made'],
2423
[
25-
AnswerChoice.C,
26-
'To clear the terminal and re-type the command',
24+
AnswerChoice.B,
25+
'To provide a clear, descriptive message for the changes made',
2726
],
27+
[AnswerChoice.C, 'To clear the terminal and re-type the command'],
2828
[AnswerChoice.D, 'Keeps track of changes made to your code'],
2929
]),
3030
AnswerChoice.UNANSWERED,
3131
); // Replace `UNANSWERED` with the correct answer.
3232
}
3333

34-
private static makeQuestion1(): MultipleQuestionnaire {
34+
private static makeQuestion1(): QuizQuestion {
3535
return new MultipleChoiceQuizQuestion(
3636
1,
3737
'Which answer best fits the command git push?',
@@ -41,27 +41,21 @@ export class ChanelHuttQuiz implements MultipleQuestionnaireProvider {
4141
AnswerChoice.B,
4242
'To transfer files from the local repository to remote repository hosting services',
4343
],
44-
[
45-
AnswerChoice.C,
46-
'To add comments to the code',
47-
],
44+
[AnswerChoice.C, 'To add comments to the code'],
4845
[AnswerChoice.D, 'To merge several branches into one branch'],
4946
]),
5047
AnswerChoice.UNANSWERED,
5148
); // Replace `UNANSWERED` with the correct answer.
5249
}
5350

54-
private static makeQuestion2(): MultipleQuestionnaire {
51+
private static makeQuestion2(): QuizQuestion {
5552
return new MultipleChoiceQuizQuestion(
5653
2,
57-
'Which command is used to update the your local repository with changes from your remote repository?',
54+
'Which command is used to update the yourlocal repository with changes from your remote repository?',
5855
new Map<AnswerChoice, string>([
5956
[AnswerChoice.A, 'git fetch upstream'],
6057
[AnswerChoice.B, 'git pull'],
61-
[
62-
AnswerChoice.C,
63-
'git commit',
64-
],
58+
[AnswerChoice.C, 'git commit'],
6559
[AnswerChoice.D, 'git checkout main'],
6660
]),
6761
AnswerChoice.UNANSWERED,

0 commit comments

Comments
 (0)