Skip to content

Commit 89a7897

Browse files
committed
I have created a new branch adding in Homework 3 because of a merge bug on my last branch
1 parent 556c514 commit 89a7897

File tree

3 files changed

+69
-3
lines changed

3 files changed

+69
-3
lines changed

lesson_03/quiz/quiz.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,10 @@ quiz:
1818
- $2y$10$7TUXmYaJlWnRZTzYR..CsefgVcOZJMGt7ctxyAf.G3obBBFEAB342
1919
- $2y$10$0ghuTDegle177q8VjCgQ2OhManKjotYXrcDT3SLyUF8KvI152Wd0.
2020
- $2y$10$JXoeInFy4UzHhi2Lskxzeu7CQ9RprnJgBw9pjAlV.t6zQyJTyy8OK
21+
dylanlafferty:
22+
- $2y$10$acRuI5XyFjj4PLpl3d1xd.ZEG2MsPUpw0aFoP/CmEx14fEhdmxP1i
23+
- $2y$10$E9m5ekFKcrlyQkURGQNaaOPbu8sBn5fDRWEqUbGvuB8oLIhYLufn2
24+
- $2y$10$ppMDrfmIXbKcj/D6tuLL0uSAzyevGD8bm2PnqriSdKh81iBiRfUlS
2125
mercedesmathews:
2226
- $2y$10$hRwUbEYSqz761B.cG79T2uYsYPiEtKu.JgD3Aj7.Mofx27TtX5YHa
2327
- $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: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,22 +4,23 @@ import { AnthonyMaysQuiz } from './anthony_mays_quiz.js';
44
import { JasonWatsonQuiz } from './jason_watson_quiz.js';
55
import { MeikoStephensQuiz } from './meiko_stephens_quiz.js';
66
import { DavidAdenaikeQuiz } from './david_adenaike_quiz.js';
7+
import { DylanLaffertyQuiz } from './dylan_lafferty_quiz.js';
78
import { Jbeyquiz } from './jbeyquiz.js';
89
import { KhaylaSaundersQuiz } from './khayla_quiz.js';
910
import { MercedesMathewsQuiz } from './mercedes_mathews_quiz.js';
1011
import { RasheedMillerQuiz } from './rasheed_miller_quiz.js';
1112

1213
export const Quizzes = Symbol.for('Quizzes');
1314

14-
// Add your quiz provider here.
1515
const QUIZ_PROVIDERS = [
1616
AnthonyMaysQuiz,
17-
AnotherQuiz,
18-
MeikoStephensQuiz ,
17+
AnotherQuiz,
18+
MeikoStephensQuiz,
1919
MercedesMathewsQuiz,
2020
Jbeyquiz,
2121
DavidAdenaikeQuiz,
2222
KhaylaSaundersQuiz,
23+
DylanLaffertyQuiz,
2324
RasheedMillerQuiz,
2425
JasonWatsonQuiz,
2526
];

0 commit comments

Comments
 (0)