-
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.
- Loading branch information
1 parent
c565a4f
commit 84438b9
Showing
3 changed files
with
47 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,41 @@ | ||
import { | ||
AnswerChoice, | ||
MultipleChoiceQuizQuestion, | ||
QuizQuestion, | ||
QuizQuestionProvider, | ||
} from 'codedifferently-instructional'; | ||
|
||
export class AnthonyMaysQuiz2 implements QuizQuestionProvider { | ||
getProviderName(): string { | ||
return 'anthonymays2'; | ||
} | ||
|
||
makeQuizQuestions(): QuizQuestion[] { | ||
return [AnthonyMaysQuiz2.makeQuestion0(), AnthonyMaysQuiz2.makeQuestion1()]; | ||
} | ||
|
||
private static makeQuestion0(): QuizQuestion { | ||
return new MultipleChoiceQuizQuestion( | ||
0, | ||
'What is a multiple choice question?', | ||
new Map<AnswerChoice, string>([ | ||
[AnswerChoice.A, 'A question about agency'], | ||
[AnswerChoice.B, 'The hardest kind of quiz question there is'], | ||
[ | ||
AnswerChoice.C, | ||
'A question that can be answered using one or more provided choices', | ||
], | ||
[AnswerChoice.D, 'Whatever you want it to be!'], | ||
]), | ||
AnswerChoice.UNANSWERED, | ||
); // Replace `UNANSWERED` with the correct answer. | ||
} | ||
|
||
private static makeQuestion1(): QuizQuestion { | ||
return new QuizQuestion( | ||
1, | ||
'What is a computer?', | ||
'A machine that automatically transforms input into output.', | ||
); // 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