-
Notifications
You must be signed in to change notification settings - Fork 25
Lesson 3 Tommy Tran quiz #123
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
Changes from 4 commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
66a71bc
feat: create a Tommy_Tran_quiz.ts and added answers
txtran224 4b7fe33
Fix: lesson 3 changed answer choice to Unanswered
txtran224 5d635e7
fix: merge conflicts with lesson_3 branch
txtran224 bb34c99
fix: fixed quizzes.module.ts file
txtran224 7cbd587
fix: add xaviercruzquiz back into merge manual
txtran224 1561c52
Merge branch 'code-differently:main' into lesson_3
txtran224 78ee5c7
.
txtran224 4d6d908
fix: Lower case settings for lesson 3 quiz
txtran224 49697a0
fix: case settings for lesson 3
txtran224 0d4943a
chore: deletes lesson_03/quiz/src/quizzes/Tommy_Tran_quiz.ts
anthonydmays 525b56b
sync changes fix: lower case file lesson 3
txtran224 bd78d26
fix: merge conflicts lesson 3
txtran224 011febf
chore: adjust zionbuchanan quiz answers indentation
anthonydmays 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,62 @@ | ||
import { | ||
AnswerChoice, | ||
MultipleChoiceQuizQuestion, | ||
QuizQuestion, | ||
QuizQuestionProvider, | ||
} from 'codedifferently-instructional'; | ||
|
||
export class TommyTranQuiz implements QuizQuestionProvider { | ||
getProviderName(): string { | ||
return 'tommytran'; | ||
} | ||
|
||
makeQuizQuestions(): QuizQuestion[] { | ||
return [ | ||
TommyTranQuiz.makeQuestion0(), | ||
TommyTranQuiz.makeQuestion1(), | ||
TommyTranQuiz.makeQuestion2(), | ||
]; | ||
} | ||
|
||
private static makeQuestion0(): QuizQuestion { | ||
return new MultipleChoiceQuizQuestion( | ||
0, | ||
'What is the capital city of Japan?', | ||
new Map<AnswerChoice, string>([ | ||
[AnswerChoice.A, 'Seoul'], | ||
[AnswerChoice.B, 'Tokyo'], | ||
[AnswerChoice.C, 'Beijing'], | ||
[AnswerChoice.D, 'Bangkok'], | ||
]), | ||
AnswerChoice.UNANSWERED, | ||
); // Replace `UNANSWERED` with the correct answer. | ||
} | ||
|
||
private static makeQuestion1(): QuizQuestion { | ||
return new MultipleChoiceQuizQuestion( | ||
1, | ||
'Which planet is known as the "Red Planet?', | ||
new Map<AnswerChoice, string>([ | ||
[AnswerChoice.A, 'Venus'], | ||
[AnswerChoice.B, 'Jupiter'], | ||
[AnswerChoice.C, 'Mars'], | ||
[AnswerChoice.D, 'Saturn'], | ||
]), | ||
AnswerChoice.UNANSWERED, | ||
); // Replace `UNANSWERED` with the correct answer. | ||
} | ||
|
||
private static makeQuestion2(): QuizQuestion { | ||
return new MultipleChoiceQuizQuestion( | ||
2, | ||
'Who wrote the play "Romeo and Juliet?', | ||
new Map<AnswerChoice, string>([ | ||
[AnswerChoice.A, 'Charles Dickens'], | ||
[AnswerChoice.B, 'William Shakespeare'], | ||
[AnswerChoice.C, 'Jane Austen'], | ||
[AnswerChoice.D, 'Mark Twain'], | ||
]), | ||
AnswerChoice.UNANSWERED, | ||
); // Replace `UNANSWERED` with the correct answer. | ||
} | ||
} |
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
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.
Uh oh!
There was an error while loading. Please reload this page.