-
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
Closed
Closed
Homework 03 #107
Changes from all commits
Commits
Show all changes
17 commits
Select commit
Hold shift + click to select a range
3a9e4de
Chore: Get Quiz to compile
Dlafferty251 2d382f6
Chore: SWait for review from Anthony
Dlafferty251 9ae6de7
Chore: Fixed the questions to make them related to computers
Dlafferty251 3db929a
Updating John's code
Dlafferty251 cd06980
feat: adds Anana's README (#96)
Ananatawa 3707aec
feat: adds Jason's HTML README (#79)
jxwatson251 f93a09e
feat: adds John's quiz implementation (#97)
jbey251 8fde7ed
feat: adds Jbey README (#102)
jbey251 acd2391
feat: adds Jbey HTML README (#103)
jbey251 38a7bd9
Commiting so I can pull
Dlafferty251 3c65aa8
Chore: Get Quiz to compile
Dlafferty251 62cbd19
Chore: SWait for review from Anthony
Dlafferty251 64e291a
committing changes to Dylan_Lafferty_quiz.ts
Dlafferty251 521f984
Merge branch 'main' into homework_03
Dlafferty251 3efb314
Update quizzes.module.ts
Dlafferty251 d402209
Update lesson2.ts
Dlafferty251 205305b
Merge branch 'main' into homework_03
Dlafferty251 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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, | ||
); | ||
} | ||
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There should only be one variable declaration for
QUIZ_PROVIDERS
that has all the list of providers in it, but I see duplicate declarations on lines 19 and 21. You should runnpm run check
to make sure things look good before you send back for reviewThere was a problem hiding this comment.
Choose a reason for hiding this comment
The 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