Skip to content

Lesson03 quiz for kimberlee #131

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 8 commits into from
Oct 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions lesson_03/quiz/quiz.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ quiz:
anotherone:
- $2y$10$8eHSzy3aCu4Ry3LzO9nWCeGpofSxsNVbnF.wCfn3ZADwQ6MEtN/KK
- $2y$10$dGB0CGv7.XQC5OqfyY6iXOiJsdVyxU3ve5YE0gt4m2I8P8H13lNXa
kimberleehaldane:
- $2y$10$7u0/PUZE4NFsRmjPtsaNOuQpXsQcuZh22wqYK5vli5LUO8wxIDR7q
- $2y$10$zBW5IVw5BDBaa2PuxuyoO.kjixYznWpMXJ0a8hwO1zIYG8o5LJXAq
- $2y$10$BjDUqT33QmjaSNeYJ99GCeyrjx99NSfCThB4l/KIh9PfbP4cJo03a
jamescapparell:
- $2y$10$iLvL/AaFPzcGZrcna7umMuHqkZe1f9at/ix77NUI6uakDGNuVKQCy
- $2y$10$FLxmGXJLm5EziyhA5D33ju0kUjXhiDbuUdImciLQz8lBRu5ou0hee
Expand Down
62 changes: 62 additions & 0 deletions lesson_03/quiz/src/quizzes/kimberlee_haldane_quiz.ts
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.
}
}
2 changes: 2 additions & 0 deletions lesson_03/quiz/src/quizzes/quizzes.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import { ChigazoGrahamsQuiz } from './chigazo_graham_quiz.js';
import { DasiaEnglishQuiz } from './dasia_english_quiz.js';
import { JamesCapparellQuiz } from './james_capparell_quiz.js';
import { JosephCaballeroQuiz } from './joseph_caballero_quiz.js';
import { KimberleeHaldaneQuiz } from './kimberlee_haldane_quiz.js';
import { LjMcwilliamsQuiz } from './lj_mcwilliams_quiz.js';
import { OyeyemiJimohQuiz } from './oyeyemi_jimoh_quiz.js';
import { ShawnDunsmoreQuiz } from './shawn_dunsmore_quiz.js';
Expand All @@ -27,6 +28,7 @@ const QUIZ_PROVIDERS = [
JosephCaballeroQuiz,
AngelicaCQuiz,
OyeyemiJimohQuiz,
KimberleeHaldaneQuiz,
ShawnDunsmoreQuiz,
DasiaEnglishQuiz,
ChigazoGrahamsQuiz,
Expand Down