Skip to content

Commit 447ff0a

Browse files
committed
I have created a new branch adding in Homework 3 because of a merge bug on my last branch
1 parent 5d1a93c commit 447ff0a

File tree

3 files changed

+70
-3
lines changed

3 files changed

+70
-3
lines changed

lesson_03/quiz/quiz.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,10 @@ quiz:
2222
- $2y$10$7TUXmYaJlWnRZTzYR..CsefgVcOZJMGt7ctxyAf.G3obBBFEAB342
2323
- $2y$10$0ghuTDegle177q8VjCgQ2OhManKjotYXrcDT3SLyUF8KvI152Wd0.
2424
- $2y$10$JXoeInFy4UzHhi2Lskxzeu7CQ9RprnJgBw9pjAlV.t6zQyJTyy8OK
25+
dylanlafferty:
26+
- $2y$10$acRuI5XyFjj4PLpl3d1xd.ZEG2MsPUpw0aFoP/CmEx14fEhdmxP1i
27+
- $2y$10$E9m5ekFKcrlyQkURGQNaaOPbu8sBn5fDRWEqUbGvuB8oLIhYLufn2
28+
- $2y$10$ppMDrfmIXbKcj/D6tuLL0uSAzyevGD8bm2PnqriSdKh81iBiRfUlS
2529
mercedesmathews:
2630
- $2y$10$hRwUbEYSqz761B.cG79T2uYsYPiEtKu.JgD3Aj7.Mofx27TtX5YHa
2731
- $2y$10$qE/gXxpq62FEGJOJd9MDA.vpDYLTNSsZbqZLpD/0368CKkcNBzW1y
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 DylanLaffertyQuiz implements QuizQuestionProvider {
9+
getProviderName(): string {
10+
return 'dylanlafferty';
11+
}
12+
13+
makeQuizQuestions(): QuizQuestion[] {
14+
return [
15+
DylanLaffertyQuiz.makeQuestion0(),
16+
DylanLaffertyQuiz.makeQuestion1(),
17+
DylanLaffertyQuiz.makeQuestion2(),
18+
];
19+
}
20+
21+
private static makeQuestion0(): QuizQuestion {
22+
return new MultipleChoiceQuizQuestion(
23+
0,
24+
'What is the Power supply unit most compared to when comparing it to a human body?',
25+
new Map<AnswerChoice, string>([
26+
[AnswerChoice.A, 'Heart'],
27+
[AnswerChoice.B, 'Arm'],
28+
[AnswerChoice.C, 'Leg'],
29+
[AnswerChoice.D, 'Brain'],
30+
]),
31+
AnswerChoice.A,
32+
);
33+
}
34+
private static makeQuestion1(): QuizQuestion {
35+
return new MultipleChoiceQuizQuestion(
36+
1,
37+
'What is the full name of CPU?',
38+
new Map<AnswerChoice, string>([
39+
[AnswerChoice.A, 'Central Place Unit'],
40+
[AnswerChoice.B, 'Certified Processing Unit'],
41+
[AnswerChoice.C, 'Central Processing Unit'],
42+
[AnswerChoice.D, 'Configured Procerdale Unicode'],
43+
]),
44+
AnswerChoice.C,
45+
);
46+
}
47+
48+
private static makeQuestion2(): QuizQuestion {
49+
return new MultipleChoiceQuizQuestion(
50+
2,
51+
'What is used to keep Short term memory in a computer?',
52+
new Map<AnswerChoice, string>([
53+
[AnswerChoice.A, 'Hard Drive'],
54+
[AnswerChoice.B, 'SSD'],
55+
[AnswerChoice.C, 'GPU'],
56+
[AnswerChoice.D, 'RAM'],
57+
]),
58+
AnswerChoice.D,
59+
);
60+
}
61+
}

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

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,16 @@
11
import { Module } from '@nestjs/common';
22
import { AnotherQuiz } from './another_quiz.js';
33
import { AnthonyMaysQuiz } from './anthony_mays_quiz.js';
4-
import { JasonWatsonQuiz } from './jason_watson_quiz.js';
5-
import { MeikoStephensQuiz } from './meiko_stephens_quiz.js';
64
import { DavidAdenaikeQuiz } from './david_adenaike_quiz.js';
5+
import { DylanLaffertyQuiz } from './dylan_lafferty_quiz.js';
76
import { EzraQuiz } from './ezra_quiz.js';
7+
import { JasonWatsonQuiz } from './jason_watson_quiz.js';
88
import { Jbeyquiz } from './jbeyquiz.js';
9+
import { JeremiahWingQuiz } from './jeremiah_wing_quiz.js';
910
import { KhaylaSaundersQuiz } from './khayla_quiz.js';
11+
import { MeikoStephensQuiz } from './meiko_stephens_quiz.js';
1012
import { MercedesMathewsQuiz } from './mercedes_mathews_quiz.js';
1113
import { RasheedMillerQuiz } from './rasheed_miller_quiz.js';
12-
import { JeremiahWingQuiz } from './jeremiah_wing_quiz.js';
1314

1415
export const Quizzes = Symbol.for('Quizzes');
1516

@@ -24,6 +25,7 @@ const QUIZ_PROVIDERS = [
2425
EzraQuiz,
2526
DavidAdenaikeQuiz,
2627
KhaylaSaundersQuiz,
28+
DylanLaffertyQuiz,
2729
RasheedMillerQuiz,
2830
JeremiahWingQuiz,
2931
JasonWatsonQuiz,

0 commit comments

Comments
 (0)