Skip to content

Created quiz questions #113

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 6 commits into from
Oct 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion lesson_03/quiz/quiz.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ quiz:
- $2y$10$9D.oRC8h/PD/10NMSR6MMOzjVAJKm.vfw4te8Rxgw1M1.0Q9x8pjK
- $2y$10$ypLhtfxJikRhLaQdW0Y8GOEqO/X1uoBD8w.kSSSUPggBa9wHLkw0i
- $2y$10$cYuji5D0xOEFAV2fyMaJAuaODeWEwIYu.X3089qnojdx3nQljil5G
dasiaenglish:
dasiaenglish:
- $2y$10$ANtdDzA0GAqn/QeExPO/Du8LgHUwznRLxpv0W0ib2seYk23BZowOC
- $2y$10$6vAkOUmpPrUtWrh010f8e.A4M9kEzuzCrQ8ghWI9hQSEsZeGHpQ9W
- $2y$10$YYTJf2QW.BJST9EUB7NZneVpNkOywIfhsWRpxIsPBg/oTmgqoYWse
Expand Down Expand Up @@ -40,3 +40,7 @@ quiz:
- $2y$10$sqXEOL0L8o0kRyiAb.2s4u0RlBC2.LmOGDbGWXHj5IfBNwinkv2yq
- $2y$10$HaWueXgrIzd7z8yf39HfVeTjjyr.Kgx0GFBqwCRSzW3zRSreN19yi

shawndunsmore:
- $2y$10$Kpde4LAfDyEhgWezFoI5texc53Sge6QQs8y5hR8DA7zHfyK8It5LW
- $2y$10$T061IZuccoHb2XGjaICB/Olchf62DqrSDVIE0TE9Q9qidfLAL7sHS
- $2y$10$T061IZuccoHb2XGjaICB/Olchf62DqrSDVIE0TE9Q9qidfLAL7sHS
2 changes: 2 additions & 0 deletions lesson_03/quiz/src/quizzes/quizzes.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import { DasiaEnglishQuiz } from './dasia_english_quiz.js';
import { ChigazoGrahamsQuiz } from './chigazo_graham_quiz.js';
import { JosephCaballeroQuiz } from './joseph_caballero_quiz.js';
import { OyeyemiJimohQuiz } from './oyeyemi_jimoh_quiz.js';
import { ShawnDunsmoreQuiz } from './shawn_dunsmore_quiz.js';
import { YafiahAbdullahQuiz } from './yafiah_abdullah_quiz.js';
import { AmiyahJonesQuiz } from './amiyah_jones_quiz.js';

Expand All @@ -20,6 +21,7 @@ const QUIZ_PROVIDERS = [
JosephCaballeroQuiz,
AngelicaCQuiz,
OyeyemiJimohQuiz,
ShawnDunsmoreQuiz,
DasiaEnglishQuiz,
ChigazoGrahamsQuiz,
AmiyahJonesQuiz,
Expand Down
62 changes: 62 additions & 0 deletions lesson_03/quiz/src/quizzes/shawn_dunsmore_quiz.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
import {
AnswerChoice,
MultipleChoiceQuizQuestion,
QuizQuestion,
QuizQuestionProvider,
} from 'codedifferently-instructional';

export class ShawnDunsmoreQuiz implements QuizQuestionProvider {
getProviderName(): string {
return 'shawndunsmore';
}

makeQuizQuestions(): QuizQuestion[] {
return [
ShawnDunsmoreQuiz.makeQuestion0(),
ShawnDunsmoreQuiz.makeQuestion1(),
ShawnDunsmoreQuiz.makeQuestion2(),
];
}

private static makeQuestion0(): QuizQuestion {
return new MultipleChoiceQuizQuestion(
0,
'What is Davids Favorite Color?',
new Map<AnswerChoice, string>([
[AnswerChoice.A, 'Idc'],
[AnswerChoice.B, 'Blue'],
[AnswerChoice.C, 'Black'],
[AnswerChoice.D, 'Whatever you think it is.'],
]),
AnswerChoice.UNANSWERED,
); // Replace `UNANSWERED` with the correct answer.
}

private static makeQuestion1(): QuizQuestion {
return new MultipleChoiceQuizQuestion(
1,
'What is Jordan famous for?',
new Map<AnswerChoice, string>([
[AnswerChoice.A, 'Photography'],
[AnswerChoice.B, 'Being short'],
[AnswerChoice.C, 'Pickleball'],
[AnswerChoice.D, 'Trampoline Dunking.'],
]),
AnswerChoice.UNANSWERED,
); // Replace `UNANSWERED` with the correct answer.
}

private static makeQuestion2(): QuizQuestion {
return new MultipleChoiceQuizQuestion(
2,
'How mnay states are there?',
new Map<AnswerChoice, string>([
[AnswerChoice.A, '50'],
[AnswerChoice.B, '35'],
[AnswerChoice.C, '20'],
[AnswerChoice.D, '65'],
]),
AnswerChoice.UNANSWERED,
); // Replace `UNANSWERED` with the correct answer.
}
}