Skip to content
Merged
Show file tree
Hide file tree
Changes from 6 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
4 changes: 4 additions & 0 deletions lesson_03/quiz/quiz.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ quiz:
anotherone:
- $2y$10$8eHSzy3aCu4Ry3LzO9nWCeGpofSxsNVbnF.wCfn3ZADwQ6MEtN/KK
- $2y$10$dGB0CGv7.XQC5OqfyY6iXOiJsdVyxU3ve5YE0gt4m2I8P8H13lNXa
bryanasingletonbarnhart:
- $2y$10$1mLxFIqlwiKqivImNbEYE.khunzQLkqDL/40Yj39J6vJA0rLfwDuK
- $2y$10$sIjoP0Jqf5apX3Uk2tdy0.yt..CIanJbbDIA7Y98KtUSNd4iq4oRO
- $2y$10$rMn2M8gyKNbFmH4zTvGwrOlJJ4Jp.CtQBr1nYNTKuMYZ4wXK13bOq
ezraquiz:
- $2y$10$fisFjMsmMwzlj3.PELyBNeupdruYROU00dwq296pg0VfHo05SSkta
- $2y$10$.Z44VoTaxQSdPEx7RatO6OVCw1ff6ohS0kZnCrHEcFnElIgkfjP0u
Expand Down
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.
}
}
2 changes: 2 additions & 0 deletions lesson_03/quiz/src/quizzes/quizzes.module.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { Module } from '@nestjs/common';
import { Bryanasingletonbarnhart } from './ bryana_singleton-barnhart_quiz.js';
import { AnotherQuiz } from './another_quiz.js';
import { AnthonyMaysQuiz } from './anthony_mays_quiz.js';
import { JasonWatsonQuiz } from './jason_watson_quiz.js';
Expand All @@ -20,6 +21,7 @@ const QUIZ_PROVIDERS = [
MeikoStephensQuiz,
MercedesMathewsQuiz,
Jbeyquiz,
Bryanasingletonbarnhart,
EzraQuiz,
DavidAdenaikeQuiz,
KhaylaSaundersQuiz,
Expand Down