Skip to content

Commit ff6536b

Browse files
committed
kimberlee_haldane_quiz
1 parent 54e4328 commit ff6536b

File tree

3 files changed

+67
-1
lines changed

3 files changed

+67
-1
lines changed

lesson_03/quiz/quiz.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,7 @@ quiz:
66
anotherone:
77
- $2y$10$8eHSzy3aCu4Ry3LzO9nWCeGpofSxsNVbnF.wCfn3ZADwQ6MEtN/KK
88
- $2y$10$dGB0CGv7.XQC5OqfyY6iXOiJsdVyxU3ve5YE0gt4m2I8P8H13lNXa
9+
kimberleehaldane:
10+
- $2y$10$//R05yiCI1FQyyxDcTAfbOjX5R2QE1uP.X5bluhlhELVftbt3Uhjy
11+
- $2y$10$spQll/yP2jNAoncoqUtZTu2vam7rp6bljvv7rQs9dwVpFuBHDJxgG
12+
- $2y$10$NXQfifFPXn3LTKL8F2nmeOkIHHW/ZY5Hj9R74OuWTiRKCNky.Xmze
Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
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+
];
18+
}
19+
20+
private static makeQuestion0(): QuizQuestion {
21+
return new MultipleChoiceQuizQuestion(
22+
0,
23+
'Which command tells you where you are in the terminal?',
24+
new Map<AnswerChoice, string>([
25+
[AnswerChoice.A, 'pwd'],
26+
[AnswerChoice.B, 'ls'],
27+
[AnswerChoice.C, 'cd'],
28+
[AnswerChoice.D, 'mkdir'],
29+
]),
30+
AnswerChoice.UNANSWERED,
31+
); // Replace `UNANSWERED` with the correct answer.
32+
}
33+
34+
private static makeQuestion1(): QuizQuestion {
35+
return new QuizQuestion(
36+
1,
37+
'Why do we use IDEs?',
38+
new Map<AnswerChoice, string>([
39+
[AnswerChoice.A, 'hunting insects'],
40+
[AnswerChoice.B, 'testing powerlines'],
41+
[AnswerChoice.C, 'editing and refactoring code'],
42+
[AnswerChoice.D, 'all of the above'],
43+
]),
44+
AnswerChoice.UNANSWERED,
45+
); // Replace `UNANSWERED` with the correct answer.
46+
}
47+
48+
private static makeQuestion2(): QuizQuestion {
49+
return new QuizQuestion(
50+
2,
51+
'In the vscode terminal, what command is used to verify that you created a branch?',
52+
new Map<AnswerChoice, string>([
53+
[AnswerChoice.A, 'git branch -a'],
54+
[AnswerChoice.B, 'git merge main'],
55+
[AnswerChoice.C, 'git checkout -b new_feature'],
56+
[AnswerChoice.D, 'git remote -v'],
57+
]),
58+
AnswerChoice.UNANSWERED,
59+
); // Replace `UNANSWERED` with the correct answer.
60+
}
61+
}

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
import { Module } from '@nestjs/common';
22
import { AnotherQuiz } from './another_quiz.js';
33
import { AnthonyMaysQuiz } from './anthony_mays_quiz.js';
4+
import { KimberleeHaldaneQuiz } from './kimberlee_haldane_quiz.js';
45

56
export const Quizzes = Symbol.for('Quizzes');
67

78
// Add your quiz provider here.
8-
const QUIZ_PROVIDERS = [AnthonyMaysQuiz, AnotherQuiz];
9+
const QUIZ_PROVIDERS = [AnthonyMaysQuiz, AnotherQuiz, KimberleeHaldaneQuiz];
910

1011
@Module({
1112
providers: [

0 commit comments

Comments
 (0)