-
Notifications
You must be signed in to change notification settings - Fork 23
Homework 03 #107
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
Homework 03 #107
Changes from 14 commits
3a9e4de
2d382f6
9ae6de7
3db929a
cd06980
3707aec
f93a09e
8fde7ed
acd2391
38a7bd9
3c65aa8
62cbd19
64e291a
521f984
3efb314
d402209
205305b
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
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(), | ||
]; | ||
|
||
return [ | ||
DylanLaffertyQuiz.makeQuestion0(), | ||
DylanLaffertyQuiz.makeQuestion0(), | ||
]; | ||
} | ||
|
||
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, | ||
); | ||
} | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,21 @@ | ||
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'; | ||
======= | ||
Dlafferty251 marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
import { Jbeyquiz } from './jbeyquiz.js'; | ||
|
||
export const Quizzes = Symbol.for('Quizzes'); | ||
|
||
// Add your quiz provider here. | ||
|
||
const QUIZ_PROVIDERS = [ | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. There should only be one variable declaration for There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Oh my goodness gracious Ill go back and fix it smh at myself |
||
AnthonyMaysQuiz, | ||
AnotherQuiz, | ||
DylanLaffertyQuiz, | ||
Jbeyquiz, | ||
]; | ||
const QUIZ_PROVIDERS = [AnthonyMaysQuiz, AnotherQuiz, Jbeyquiz]; | ||
|
||
@Module({ | ||
|
Uh oh!
There was an error while loading. Please reload this page.