Skip to content

finished creating test #101

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 7 commits into from
Mar 13, 2025
Merged
Show file tree
Hide file tree
Changes from 1 commit
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 @@ -5,4 +5,8 @@ quiz:
- $2y$10$55EXRjF26JIgebtoH800ZOJecfefvMgHicuxf/rwTENuxiUaFQcNe
anotherone:
- $2y$10$8eHSzy3aCu4Ry3LzO9nWCeGpofSxsNVbnF.wCfn3ZADwQ6MEtN/KK
- $2y$10$dGB0CGv7.XQC5OqfyY6iXOiJsdVyxU3ve5YE0gt4m2I8P8H13lNXa
- $2y$10$dGB0CGv7.XQC5OqfyY6iXOiJsdVyxU3ve5YE0gt4m2I8P8H13lNXa
bryanasingletonbarnhart:
- $2y$10$1mLxFIqlwiKqivImNbEYE.khunzQLkqDL/40Yj39J6vJA0rLfwDuK
- $2y$10$sIjoP0Jqf5apX3Uk2tdy0.yt..CIanJbbDIA7Y98KtUSNd4iq4oRO
- $2y$10$rMn2M8gyKNbFmH4zTvGwrOlJJ4Jp.CtQBr1nYNTKuMYZ4wXK13bOq
61 changes: 61 additions & 0 deletions lesson_03/quiz/src/quizzes/ bryana_singleton-barnhart_quiz.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
import {
AnswerChoice,
MultipleChoiceQuizQuestion,
QuizQuestion,
QuizQuestionProvider,
} from 'codedifferently-instructional';

export class Bryanasingletonbarnhart implements QuizQuestionProvider {
getProviderName(): string {
return 'bryanasingletonbarnhart';
}

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

private static makeQuestion0(): QuizQuestion {
return new MultipleChoiceQuizQuestion(
0,
'Which component is consider the brain?',
new Map<AnswerChoice, string>([
[AnswerChoice.A, 'Case'],
[AnswerChoice.B, 'Power Supply'],
[AnswerChoice.C, 'CPU'],
[AnswerChoice.D, 'Motherboard'],
]),
AnswerChoice.C,
); // Replace `UNANSWERED` with the correct answer.
}

private static makeQuestion1(): QuizQuestion {
return new MultipleChoiceQuizQuestion(
1,
'What does SDD stand for?',
new Map<AnswerChoice, string>([
[AnswerChoice.A, 'Same Day Delivery'],
[AnswerChoice.B, 'Solid State Drive'],
[AnswerChoice.C, 'System Design Document'],
[AnswerChoice.D, 'Software Development Document'],
]),
AnswerChoice.B,
); // Replace `UNANSWERED` with the correct answer.
}
private static makeQuestion2(): QuizQuestion {
return new MultipleChoiceQuizQuestion(
2,
'How many bits is in a byte?',
new Map<AnswerChoice, string>([
[AnswerChoice.A, '2'],
[AnswerChoice.B, '40'],
[AnswerChoice.C, '1000'],
[AnswerChoice.D, '8'],
]),
AnswerChoice.D,
); // Replace `UNANSWERED` with the correct answer.
}
}