Skip to content
Merged
Show file tree
Hide file tree
Changes from 5 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
computerparts:
- $2y$10$7TUXmYaJlWnRZTzYR..CsefgVcOZJMGt7ctxyAf.G3obBBFEAB342
- $2y$10$0ghuTDegle177q8VjCgQ2OhManKjotYXrcDT3SLyUF8KvI152Wd0.
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.
}
}
3 changes: 3 additions & 0 deletions lesson_03/quiz/src/quizzes/quizzes.module.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
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 { Jbeyquiz } from './jbeyquiz.js';
import { MercedesMathewsQuiz } from './mercedes_mathews_quiz.js';

Expand All @@ -12,6 +14,7 @@ const QUIZ_PROVIDERS = [
AnotherQuiz,
MercedesMathewsQuiz,
Jbeyquiz,
Bryanasingletonbarnhart,
];

@Module({
Expand Down