Skip to content

Commit ddcf9f2

Browse files
authored
feat: adds quiz for Kimberlee (#131)
* kimberlee_haldane_quiz * edit kimberlee_haldane_quiz * new edit kimberlee_haldane_quiz * EDIT kimberlee_haldane_quiz * fixed kimberlee lesson 03 * Kim's new quiz edit
1 parent 71e444e commit ddcf9f2

File tree

3 files changed

+68
-0
lines changed

3 files changed

+68
-0
lines changed

lesson_03/quiz/quiz.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ quiz:
66
anotherone:
77
- $2y$10$8eHSzy3aCu4Ry3LzO9nWCeGpofSxsNVbnF.wCfn3ZADwQ6MEtN/KK
88
- $2y$10$dGB0CGv7.XQC5OqfyY6iXOiJsdVyxU3ve5YE0gt4m2I8P8H13lNXa
9+
kimberleehaldane:
10+
- $2y$10$7u0/PUZE4NFsRmjPtsaNOuQpXsQcuZh22wqYK5vli5LUO8wxIDR7q
11+
- $2y$10$zBW5IVw5BDBaa2PuxuyoO.kjixYznWpMXJ0a8hwO1zIYG8o5LJXAq
12+
- $2y$10$BjDUqT33QmjaSNeYJ99GCeyrjx99NSfCThB4l/KIh9PfbP4cJo03a
913
jamescapparell:
1014
- $2y$10$iLvL/AaFPzcGZrcna7umMuHqkZe1f9at/ix77NUI6uakDGNuVKQCy
1115
- $2y$10$FLxmGXJLm5EziyhA5D33ju0kUjXhiDbuUdImciLQz8lBRu5ou0hee
Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
import {
2+
AnswerChoice,
3+
MultipleChoiceQuizQuestion,
4+
QuizQuestion,
5+
QuizQuestionProvider,
6+
} from 'codedifferently-instructional';
7+
8+
export class KimberleeHaldaneQuiz implements QuizQuestionProvider {
9+
getProviderName(): string {
10+
return 'kimberleehaldane';
11+
}
12+
13+
makeQuizQuestions(): QuizQuestion[] {
14+
return [
15+
KimberleeHaldaneQuiz.makeQuestion0(),
16+
KimberleeHaldaneQuiz.makeQuestion1(),
17+
KimberleeHaldaneQuiz.makeQuestion2(),
18+
];
19+
}
20+
21+
private static makeQuestion0(): QuizQuestion {
22+
return new MultipleChoiceQuizQuestion(
23+
0,
24+
'Which command tells you where you are in the terminal?',
25+
new Map<AnswerChoice, string>([
26+
[AnswerChoice.A, 'pwd'],
27+
[AnswerChoice.B, 'ls'],
28+
[AnswerChoice.C, 'cd'],
29+
[AnswerChoice.D, 'mkdir'],
30+
]),
31+
AnswerChoice.UNANSWERED,
32+
); // Replace `UNANSWERED` with the correct answer.
33+
}
34+
35+
private static makeQuestion1(): QuizQuestion {
36+
return new MultipleChoiceQuizQuestion(
37+
1,
38+
'Why do we use IDEs?',
39+
new Map<AnswerChoice, string>([
40+
[AnswerChoice.A, 'hunting insects'],
41+
[AnswerChoice.B, 'testing powerlines'],
42+
[AnswerChoice.C, 'editing and refactoring code'],
43+
[AnswerChoice.D, 'all of the above'],
44+
]),
45+
AnswerChoice.UNANSWERED,
46+
); // Replace `UNANSWERED` with the correct answer.
47+
}
48+
49+
private static makeQuestion2(): QuizQuestion {
50+
return new MultipleChoiceQuizQuestion(
51+
2,
52+
'In the vscode terminal, what command is used to verify that you created a branch?',
53+
new Map<AnswerChoice, string>([
54+
[AnswerChoice.A, 'git branch -a'],
55+
[AnswerChoice.B, 'git merge main'],
56+
[AnswerChoice.C, 'git checkout -b new_feature'],
57+
[AnswerChoice.D, 'git remote -v'],
58+
]),
59+
AnswerChoice.UNANSWERED,
60+
); // Replace `UNANSWERED` with the correct answer.
61+
}
62+
}

lesson_03/quiz/src/quizzes/quizzes.module.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ import { ChigazoGrahamsQuiz } from './chigazo_graham_quiz.js';
88
import { DasiaEnglishQuiz } from './dasia_english_quiz.js';
99
import { JamesCapparellQuiz } from './james_capparell_quiz.js';
1010
import { JosephCaballeroQuiz } from './joseph_caballero_quiz.js';
11+
import { KimberleeHaldaneQuiz } from './kimberlee_haldane_quiz.js';
1112
import { LjMcwilliamsQuiz } from './lj_mcwilliams_quiz.js';
1213
import { OyeyemiJimohQuiz } from './oyeyemi_jimoh_quiz.js';
1314
import { PabloLimonParedesQuiz } from './pablo_limon_paredes_quiz.js';
@@ -28,6 +29,7 @@ const QUIZ_PROVIDERS = [
2829
JosephCaballeroQuiz,
2930
AngelicaCQuiz,
3031
OyeyemiJimohQuiz,
32+
KimberleeHaldaneQuiz,
3133
ShawnDunsmoreQuiz,
3234
DasiaEnglishQuiz,
3335
ChigazoGrahamsQuiz,

0 commit comments

Comments
 (0)