-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added james_capparellquiz.ts, updated quizzes.module.ts, edited the q…
…uiz.yaml files
- Loading branch information
jjcapparell
committed
Oct 1, 2024
1 parent
7659ee8
commit 0b9b989
Showing
3 changed files
with
61 additions
and
1 deletion.
There are no files selected for viewing
This file contains 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 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,55 @@ | ||
import { | ||
AnswerChoice, | ||
MultipleChoiceQuizQuestion, | ||
QuizQuestion, | ||
QuizQuestionProvider, | ||
} from 'codedifferently-instructional'; | ||
|
||
export class JamesCapparellQuiz implements QuizQuestionProvider { | ||
getProviderName(): string { | ||
return 'jamescapparell'; | ||
} | ||
|
||
makeQuizQuestions(): QuizQuestion[] { | ||
return [ | ||
JamesCapparellQuiz.makeQuestion0(), | ||
JamesCapparellQuiz.makeQuestion1(), | ||
JamesCapparellQuiz.makeQuestion2(), | ||
]; | ||
} | ||
|
||
private static makeQuestion0(): QuizQuestion { | ||
return new MultipleChoiceQuizQuestion( | ||
0, | ||
'What county in Delaware is Code differently offices in?', | ||
new Map<AnswerChoice, string>([ | ||
[AnswerChoice.A, 'Sussex County'], | ||
[AnswerChoice.B, 'Kent County'], | ||
[AnswerChoice.C, 'New Castle County'], | ||
[AnswerChoice.D, 'Lancaster County'], | ||
]), | ||
AnswerChoice.UNANSWERED, | ||
); // Replace `UNANSWERED` with the correct answer. | ||
} | ||
private static makeQuestion1(): QuizQuestion { | ||
return new MultipleChoiceQuizQuestion( | ||
1, | ||
'Which video game charcter has the most games in their series?', | ||
new Map<AnswerChoice, string>([ | ||
[AnswerChoice.A, 'Mario'], | ||
[AnswerChoice.B, 'Sonic'], | ||
[AnswerChoice.C, 'Mega Man'], | ||
[AnswerChoice.D, 'Pikachu'], | ||
]), | ||
AnswerChoice.UNANSWERED, | ||
); // Replace `UNANSWERED` with the correct answer. | ||
} | ||
|
||
private static makeQuestion2(): QuizQuestion { | ||
return new QuizQuestion( | ||
2, | ||
'Type the full answer while filling in the blanks! A _____ that transforms ____ data into ____ data using automatically executed, pre-programmed ____.', | ||
'A _____ that transforms ____ data into ____ data using automatically executed, pre-programmed ____.', | ||
); // Provide an answer. | ||
} | ||
} |
This file contains 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