Skip to content

Commit a87e2b1

Browse files
committed
Fantastic
1 parent 62930d3 commit a87e2b1

File tree

3 files changed

+33
-31
lines changed

3 files changed

+33
-31
lines changed

lesson_03/quiz/quiz.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ quiz:
66
anotherone:
77
- $2y$10$8eHSzy3aCu4Ry3LzO9nWCeGpofSxsNVbnF.wCfn3ZADwQ6MEtN/KK
88
- $2y$10$dGB0CGv7.XQC5OqfyY6iXOiJsdVyxU3ve5YE0gt4m2I8P8H13lNXa
9-
DavisD:
10-
-
11-
-
12-
- $2y$10$7Bu5jVU3VoQATS7zv5OnYONMIUJGtuxxWW/uSK8.lWKFayZ9K6SkG
9+
DavisDarius:
10+
- $2y$10$yMJb1Jq0KavCZA6FlPzcbeTAcvnngH1dH.LwfvOHUIZxeiL8Y8B2C
11+
- $2y$10$wjDnHllQW16n/Pgr3nM2PeP5mlUeTjDWWCH5vOFtDEoJ7I2ltluQC
12+
- $2y$10$vNFRGJtBXdsZj7Uheaf5y.ck8UhScBkHbMAwVacrETF2WEYOfbPlK

lesson_03/quiz/src/quizzes/Davis_D._quiz.ts

Lines changed: 27 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -5,55 +5,57 @@ import {
55
QuizQuestionProvider,
66
} from 'codedifferently-instructional';
77

8-
export class DavisDQuiz implements QuizQuestionProvider {
8+
export class DavisQuiz implements QuizQuestionProvider {
99
getProviderName(): string {
10-
return 'DavisD';
10+
return 'DavisDarius';
1111
}
1212

1313
makeQuizQuestions(): QuizQuestion[] {
1414
return [
15-
DavisDQuiz.makeQuestion1(),
16-
DavisDQuiz.makeQuestion2(),
17-
DavisDQuiz.makeQuestion3(),
15+
DavisQuiz.makeQuestion0(),
16+
DavisQuiz.makeQuestion1(),
17+
DavisQuiz.makeQuestion2(),
1818
];
1919
}
2020

21-
private static makeQuestion1(): QuizQuestion {
21+
private static makeQuestion0(): QuizQuestion {
2222
return new MultipleChoiceQuizQuestion(
23-
1,
24-
'What is the best hairstlye?',
23+
0,
24+
'What should you not be doing during a Tech Talk?',
2525
new Map<AnswerChoice, string>([
26-
[AnswerChoice.A, 'Waves/Lowcut'],
27-
[AnswerChoice.B, 'Locs or Twists'],
28-
[AnswerChoice.C, 'Afro/HighTop'],
29-
[AnswerChoice.D, 'The Mullet'],
26+
[AnswerChoice.A, 'Talk Amongst Friends'],
27+
[AnswerChoice.B, 'Take Notes'],
28+
[AnswerChoice.C, 'Ask speaker questions'],
29+
[AnswerChoice.D, 'Be attentive'],
3030
]),
3131
AnswerChoice.A,
3232
); // Replace `UNANSWERED` with the correct answer.
3333
}
3434

35-
private static makeQuestion2(): QuizQuestion {
35+
private static makeQuestion1(): QuizQuestion {
3636
return new MultipleChoiceQuizQuestion(
37-
2,
38-
'Are Hotdogs Sandwhiches?',
37+
1,
38+
'3 Levels of Tech Talk',
3939
new Map<AnswerChoice, string>([
40-
[AnswerChoice.A, 'No'],
41-
[AnswerChoice.B, 'Yes'],
40+
[AnswerChoice.A, 'Push, Pull, Punch'],
41+
[AnswerChoice.B, 'Pay, Listen, Persuade'],
42+
[AnswerChoice.C, 'Purpose, Prep, Show-up'],
4243
]),
43-
AnswerChoice.A,
44+
AnswerChoice.C,
4445
); // Provide an answer.
4546
}
4647

47-
private static makeQuestion3(): QuizQuestion {
48+
private static makeQuestion2(): QuizQuestion {
4849
return new MultipleChoiceQuizQuestion(
49-
3,
50-
'If we flip a coin...?',
50+
2,
51+
'During Tech Talks should you be marketing yourself to secure a job?',
5152
new Map<AnswerChoice, string>([
52-
[AnswerChoice.A, 'Heads'],
53-
[AnswerChoice.B, 'Tails'],
54-
[AnswerChoice.C, 'Both'],
53+
[AnswerChoice.A, 'No'],
54+
[AnswerChoice.B, 'Yes'],
55+
[AnswerChoice.C, 'Maybe'],
56+
[AnswerChoice.D, 'IDK'],
5557
]),
56-
AnswerChoice.C,
58+
AnswerChoice.B,
5759
); // Replace `UNANSWERED` with the correct answer.
5860
}
5961
}

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +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 { DavisDQuiz } from './Davis_D._quiz.js';
4+
import { DavisQuiz } from './Davis_D._quiz.js';
55

66
export const Quizzes = Symbol.for('Quizzes');
77

88
// Add your quiz provider here.
9-
const QUIZ_PROVIDERS = [AnthonyMaysQuiz, AnotherQuiz, DavisDQuiz];
9+
const QUIZ_PROVIDERS = [AnthonyMaysQuiz, AnotherQuiz, DavisQuiz];
1010

1111
@Module({
1212
providers: [

0 commit comments

Comments
 (0)