Skip to content

Homework 03 Chore: Added Jerimiah's Quiz #135

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 12 commits into from
Mar 12, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions lesson_03/quiz/quiz.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@ quiz:
- $2y$10$7TUXmYaJlWnRZTzYR..CsefgVcOZJMGt7ctxyAf.G3obBBFEAB342
- $2y$10$0ghuTDegle177q8VjCgQ2OhManKjotYXrcDT3SLyUF8KvI152Wd0.
- $2y$10$JXoeInFy4UzHhi2Lskxzeu7CQ9RprnJgBw9pjAlV.t6zQyJTyy8OK
dylanlafferty:
- $2y$10$acRuI5XyFjj4PLpl3d1xd.ZEG2MsPUpw0aFoP/CmEx14fEhdmxP1i
- $2y$10$E9m5ekFKcrlyQkURGQNaaOPbu8sBn5fDRWEqUbGvuB8oLIhYLufn2
- $2y$10$ppMDrfmIXbKcj/D6tuLL0uSAzyevGD8bm2PnqriSdKh81iBiRfUlS
mercedesmathews:
- $2y$10$hRwUbEYSqz761B.cG79T2uYsYPiEtKu.JgD3Aj7.Mofx27TtX5YHa
- $2y$10$qE/gXxpq62FEGJOJd9MDA.vpDYLTNSsZbqZLpD/0368CKkcNBzW1y
Expand Down
61 changes: 61 additions & 0 deletions lesson_03/quiz/src/quizzes/dylan_lafferty_quiz.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
import {
AnswerChoice,
MultipleChoiceQuizQuestion,
QuizQuestion,
QuizQuestionProvider,
} from 'codedifferently-instructional';

export class DylanLaffertyQuiz implements QuizQuestionProvider {
getProviderName(): string {
return 'dylanlafferty';
}

makeQuizQuestions(): QuizQuestion[] {
return [
DylanLaffertyQuiz.makeQuestion0(),
DylanLaffertyQuiz.makeQuestion1(),
DylanLaffertyQuiz.makeQuestion2(),
];
}

private static makeQuestion0(): QuizQuestion {
return new MultipleChoiceQuizQuestion(
0,
'What is the Power supply unit most compared to when comparing it to a human body?',
new Map<AnswerChoice, string>([
[AnswerChoice.A, 'Heart'],
[AnswerChoice.B, 'Arm'],
[AnswerChoice.C, 'Leg'],
[AnswerChoice.D, 'Brain'],
]),
AnswerChoice.UNANSWERED,
);
}
private static makeQuestion1(): QuizQuestion {
return new MultipleChoiceQuizQuestion(
1,
'What is the full name of CPU?',
new Map<AnswerChoice, string>([
[AnswerChoice.A, 'Central Place Unit'],
[AnswerChoice.B, 'Certified Processing Unit'],
[AnswerChoice.C, 'Central Processing Unit'],
[AnswerChoice.D, 'Configured Procerdale Unicode'],
]),
AnswerChoice.UNANSWERED,
);
}

private static makeQuestion2(): QuizQuestion {
return new MultipleChoiceQuizQuestion(
2,
'What is used to keep Short term memory in a computer?',
new Map<AnswerChoice, string>([
[AnswerChoice.A, 'Hard Drive'],
[AnswerChoice.B, 'SSD'],
[AnswerChoice.C, 'GPU'],
[AnswerChoice.D, 'RAM'],
]),
AnswerChoice.UNANSWERED,
);
}
}
2 changes: 2 additions & 0 deletions lesson_03/quiz/src/quizzes/quizzes.module.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { Module } from '@nestjs/common';
import { AnotherQuiz } from './another_quiz.js';
import { AnthonyMaysQuiz } from './anthony_mays_quiz.js';
import { DylanLaffertyQuiz } from './dylan_lafferty_quiz.js';
import { ChanelHuttQuiz } from './Chanel_Huttquiz.js';
import { DavidAdenaikeQuiz } from './david_adenaike_quiz.js';
import { EvanPhilakhongQuiz } from './evan_philakhong_quiz.js';
Expand All @@ -27,6 +28,7 @@ const QUIZ_PROVIDERS = [
DavidAdenaikeQuiz,
EvanPhilakhongQuiz,
KhaylaSaundersQuiz,
DylanLaffertyQuiz,
RasheedMillerQuiz,
ChanelHuttQuiz,
JeremiahWingQuiz,
Expand Down