-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into nilejack-lesson_03
- Loading branch information
Showing
4 changed files
with
140 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
import { | ||
AnswerChoice, | ||
MultipleChoiceQuizQuestion, | ||
QuizQuestion, | ||
QuizQuestionProvider, | ||
} from 'codedifferently-instructional'; | ||
|
||
export class KimberleeHaldaneQuiz implements QuizQuestionProvider { | ||
getProviderName(): string { | ||
return 'kimberleehaldane'; | ||
} | ||
|
||
makeQuizQuestions(): QuizQuestion[] { | ||
return [ | ||
KimberleeHaldaneQuiz.makeQuestion0(), | ||
KimberleeHaldaneQuiz.makeQuestion1(), | ||
KimberleeHaldaneQuiz.makeQuestion2(), | ||
]; | ||
} | ||
|
||
private static makeQuestion0(): QuizQuestion { | ||
return new MultipleChoiceQuizQuestion( | ||
0, | ||
'Which command tells you where you are in the terminal?', | ||
new Map<AnswerChoice, string>([ | ||
[AnswerChoice.A, 'pwd'], | ||
[AnswerChoice.B, 'ls'], | ||
[AnswerChoice.C, 'cd'], | ||
[AnswerChoice.D, 'mkdir'], | ||
]), | ||
AnswerChoice.UNANSWERED, | ||
); // Replace `UNANSWERED` with the correct answer. | ||
} | ||
|
||
private static makeQuestion1(): QuizQuestion { | ||
return new MultipleChoiceQuizQuestion( | ||
1, | ||
'Why do we use IDEs?', | ||
new Map<AnswerChoice, string>([ | ||
[AnswerChoice.A, 'hunting insects'], | ||
[AnswerChoice.B, 'testing powerlines'], | ||
[AnswerChoice.C, 'editing and refactoring code'], | ||
[AnswerChoice.D, 'all of the above'], | ||
]), | ||
AnswerChoice.UNANSWERED, | ||
); // Replace `UNANSWERED` with the correct answer. | ||
} | ||
|
||
private static makeQuestion2(): QuizQuestion { | ||
return new MultipleChoiceQuizQuestion( | ||
2, | ||
'In the vscode terminal, what command is used to verify that you created a branch?', | ||
new Map<AnswerChoice, string>([ | ||
[AnswerChoice.A, 'git branch -a'], | ||
[AnswerChoice.B, 'git merge main'], | ||
[AnswerChoice.C, 'git checkout -b new_feature'], | ||
[AnswerChoice.D, 'git remote -v'], | ||
]), | ||
AnswerChoice.UNANSWERED, | ||
); // Replace `UNANSWERED` with the correct answer. | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
import { | ||
AnswerChoice, | ||
MultipleChoiceQuizQuestion, | ||
QuizQuestion, | ||
QuizQuestionProvider, | ||
} from 'codedifferently-instructional'; | ||
|
||
export class PabloLimonParedesQuiz implements QuizQuestionProvider { | ||
getProviderName(): string { | ||
return 'pablolimonparedes'; | ||
} | ||
|
||
makeQuizQuestions(): QuizQuestion[] { | ||
return [ | ||
PabloLimonParedesQuiz.makeQuestion0(), | ||
PabloLimonParedesQuiz.makeQuestion1(), | ||
PabloLimonParedesQuiz.makeQuestion2(), | ||
]; | ||
} | ||
|
||
private static makeQuestion0(): QuizQuestion { | ||
return new MultipleChoiceQuizQuestion( | ||
0, | ||
'What does git checkout -b branch command do?', | ||
new Map<AnswerChoice, string>([ | ||
[AnswerChoice.A, 'Creates a pull request'], | ||
[AnswerChoice.B, 'Creates a new branch and switches you to it'], | ||
[AnswerChoice.C, 'To move to another branch'], | ||
[AnswerChoice.D, 'Delete a branch'], | ||
]), | ||
AnswerChoice.UNANSWERED, | ||
); // Replace `UNANSWERED` with the correct answer. | ||
} | ||
|
||
private static makeQuestion1(): QuizQuestion { | ||
return new MultipleChoiceQuizQuestion( | ||
1, | ||
'What does the man git command do?', | ||
new Map<AnswerChoice, string>([ | ||
[AnswerChoice.A, 'Create a new directory'], | ||
[AnswerChoice.B, 'Shows history of commands'], | ||
[AnswerChoice.C, 'Get to main branch'], | ||
[AnswerChoice.D, 'Access the manual for git'], | ||
]), | ||
AnswerChoice.UNANSWERED, | ||
); // Replace `UNANSWERED` with the correct answer. | ||
} | ||
private static makeQuestion2(): QuizQuestion { | ||
return new MultipleChoiceQuizQuestion( | ||
2, | ||
'How do you clear up your terminal if your screen is cramped?', | ||
new Map<AnswerChoice, string>([ | ||
[AnswerChoice.A, 'command + k'], | ||
[AnswerChoice.B, 'CTRL + space'], | ||
[AnswerChoice.C, 'command + shift + P'], | ||
[AnswerChoice.D, 'command + T'], | ||
]), | ||
AnswerChoice.UNANSWERED, | ||
); // Replace `UNANSWERED` with the correct answer. | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters