-
Notifications
You must be signed in to change notification settings - Fork 23
Lesson 03 chore: fixed quizzes module, yaml, and ananatawas quiz #134
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
+84
−0
Merged
Changes from 7 commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
34b774e
Updated ananatawas quiz,yaml, and quizzes module
Ananatawa 8210e1a
Updated ananatawas quiz,quizzes, and yaml
Ananatawa c4233d9
Updated quizzes module,yaml, and ananatawaquiz
Ananatawa 66f7159
removed the 2 json files
Ananatawa e960b19
reverted json file
Ananatawa cc790c5
Merge branch 'main' into Lesson03
Ananatawa f4ff260
fix: adds missing comma to quiz providers
anthonydmays 373418d
Merge branch 'main' into Lesson03
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,77 @@ | ||
import { | ||
AnswerChoice, | ||
MultipleChoiceQuizQuestion, | ||
QuizQuestion, | ||
QuizQuestionProvider, | ||
} from 'codedifferently-instructional'; | ||
|
||
export class AnanatawaQuiz implements QuizQuestionProvider { | ||
getProviderName(): string { | ||
return 'awatanana'; | ||
} | ||
|
||
makeQuizQuestions(): QuizQuestion[] { | ||
return [ | ||
AnanatawaQuiz.makeQuestion0(), | ||
AnanatawaQuiz.makeQuestion1(), | ||
AnanatawaQuiz.makeQuestion2(), | ||
AnanatawaQuiz.makeQuestion3(), | ||
]; | ||
} | ||
|
||
private static makeQuestion0(): QuizQuestion { | ||
return new MultipleChoiceQuizQuestion( | ||
0, | ||
'What is a pull request?', | ||
new Map<AnswerChoice, string>([ | ||
[AnswerChoice.A,'When someone asks to add their changes to the main project.'], | ||
[AnswerChoice.B,'A personal copy of someone elses project that you can make changes to.'], | ||
[AnswerChoice.C,'A toolbox where you can write, commit, and push code.'], | ||
[AnswerChoice.D, 'A request to pull the plug on a project.'], | ||
]), | ||
AnswerChoice.UNANSWERED, | ||
); // Replace `UNANSWERED` with the correct answer. | ||
} | ||
|
||
private static makeQuestion1(): QuizQuestion { | ||
return new MultipleChoiceQuizQuestion( | ||
1, | ||
'What does the command git status do?', | ||
new Map<AnswerChoice, string>([ | ||
[AnswerChoice.A, 'Make a new git repository'], | ||
[AnswerChoice.B, 'Checks the status of your repository'], | ||
[AnswerChoice.C, 'Stage a file for commit'], | ||
[AnswerChoice.D, 'List all branches in the repository'], | ||
]), | ||
AnswerChoice.UNANSWERED, | ||
); // Replace `UNANSWERED` with the correct answer. | ||
} | ||
|
||
private static makeQuestion2(): QuizQuestion { | ||
return new MultipleChoiceQuizQuestion( | ||
2, | ||
'What does the command git pull origin do?', | ||
new Map<AnswerChoice, string>([ | ||
[AnswerChoice.A, 'Push the latest changes from the remote repo.'], | ||
[AnswerChoice.B, 'Pull the latest changes from the remote repo.'], | ||
[AnswerChoice.C, 'Display the definition for Git.'], | ||
[AnswerChoice.D, 'Stage a file for commit.'], | ||
]), | ||
AnswerChoice.UNANSWERED, | ||
); // Replace `UNANSWERED` with the correct answer. | ||
} | ||
|
||
private static makeQuestion3(): QuizQuestion { | ||
return new MultipleChoiceQuizQuestion( | ||
3, | ||
'What was the first homework assignment that Mr. Mays assigned Cohort 25.1?', | ||
new Map<AnswerChoice, string>([ | ||
[AnswerChoice.A, 'Make an account on GitHub.com'], | ||
[AnswerChoice.B, 'Convert a Markdown file into HTML.'], | ||
[AnswerChoice.C, 'Create a personal README and submit via GitHub.'], | ||
[AnswerChoice.D,'Create a personal README and push to Github via VS Code.'], | ||
]), | ||
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.