Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
9eb6e4e
Added files
Aug 4, 2025
080667e
update
Aug 4, 2025
a97238e
update
Aug 4, 2025
d744235
update
Aug 4, 2025
cb68f78
update
Aug 4, 2025
5365174
update
Aug 4, 2025
33ac6e1
update
Aug 4, 2025
98336a7
update
Aug 4, 2025
651807f
”update”
DaFDE31 Aug 5, 2025
c1a0491
finished README
DaFDE31 Aug 5, 2025
2ac0d00
fix:fixing chhange requests
Aug 5, 2025
c63cfb7
feat: add work email
Aug 5, 2025
a48373f
Merge pull request #1 from DaFDE31/feature/no-ref/personal-readme
DaFDE31 Aug 6, 2025
15daaa9
Merge branch 'code-differently:main' into main
DaFDE31 Aug 6, 2025
e17ae60
Merge branch 'code-differently:main' into main
DaFDE31 Aug 8, 2025
3c89d60
Merge branch 'code-differently:main' into main
DaFDE31 Aug 8, 2025
fa32d54
Merge branch 'code-differently:main' into main
DaFDE31 Aug 10, 2025
06ce81e
Merge branch 'code-differently:main' into main
DaFDE31 Aug 12, 2025
451ca3c
feat: added test and passing
DaFDE31 Aug 12, 2025
41fd2bc
chore:updating
DaFDE31 Aug 13, 2025
0d9edf6
Merge branch 'main' into feature/lesson_03/quizzes
DaFDE31 Aug 13, 2025
c19808c
Merge branch 'main' into feature/lesson_03/quizzes
DaFDE31 Aug 14, 2025
48072ab
Merge branch 'main' into feature/lesson_03/quizzes
DaFDE31 Aug 14, 2025
72f5ea9
Update quiz.yaml
DaFDE31 Aug 14, 2025
f56e725
Merge branch 'main' into feature/lesson_03/quizzes
DaFDE31 Aug 14, 2025
f0a9f99
Update quiz.yaml
DaFDE31 Aug 14, 2025
8bc97da
revert: reverted another_quiz.ts
DaFDE31 Aug 14, 2025
28bbc17
Update quiz.yaml
DaFDE31 Aug 14, 2025
0a222cb
fix: quizzes.module.ts
DaFDE31 Aug 14, 2025
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 @@ -6,6 +6,10 @@ quiz:
anotherone:
- $2y$10$8eHSzy3aCu4Ry3LzO9nWCeGpofSxsNVbnF.wCfn3ZADwQ6MEtN/KK
- $2y$10$dGB0CGv7.XQC5OqfyY6iXOiJsdVyxU3ve5YE0gt4m2I8P8H13lNXa
danielsonadjocy:
- $2y$13$a2VPLkXi0XoTkCgytHabiuFX36ezOtQvSgG8Fjonlp.FYsgDnMQ1S
- $2y$10$z37Nf6Ay1CZrbb3OtmhaXuFGnOqiUgAEc6CThl3iUAVFE3kEYS/cq
- $2y$10$z37Nf6Ay1CZrbb3OtmhaXuFGnOqiUgAEc6CThl3iUAVFE3kEYS/cq
benjaminscott:
- $2y$10$0iAVwkn0xfqhPTeVqnmmyO7g7aXGKBi66auNd0FfIQOK0pdSxeU2u
- $2y$10$HantnEd1PSiBewfIt45yMeM2knNgv7mmwBiE16JctO/mu35SVdR5.
Expand All @@ -22,4 +26,4 @@ quiz:
brooklynharden:
- $2y$10$FMRsdjEhIG0anbZOIcVvSOy4e4eFTZGIYYyATChwc.QRMpWuomR5C
- $2y$10$0AQW/94c4pPxp8xIhJUIs.qoLnUuQg/Hwe1vd4975K96EKGEPz.H6
- $2y$10$ibNpd6ZjWh/yRXafaN8R5.vxbBw7KVZ7r4IsFv4Uy3naXqagr2B5W
- $2y$10$ibNpd6ZjWh/yRXafaN8R5.vxbBw7KVZ7r4IsFv4Uy3naXqagr2B5W
63 changes: 63 additions & 0 deletions lesson_03/quiz/src/quizzes/danielson_adjocys_quiz.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
import {
AnswerChoice,
MultipleChoiceQuizQuestion,
QuizQuestion,
QuizQuestionProvider,
} from 'codedifferently-instructional';

export class DanielsonAdjocyQuiz implements QuizQuestionProvider {
getProviderName(): string {
return 'danielsonadjocy';
}

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

private static makeQuestion0(): QuizQuestion {
return new MultipleChoiceQuizQuestion(
0,
'What should go first in a pc frame?',
new Map<AnswerChoice, string>([
[AnswerChoice.A, 'CPU'],
[AnswerChoice.B, 'GPU'],
[
AnswerChoice.C,
'Motherboard',
],
[AnswerChoice.D, 'Power supply'],
]),
AnswerChoice.UNANSWERED,
); // Replace `UNANSWERED` with the correct answer.
}

private static makeQuestion1(): QuizQuestion {
return new MultipleChoiceQuizQuestion(
1,
'True or False: Data in a computer is represented by Binary, Decimal, and Hexadecimal',
new Map<AnswerChoice, string>([
[AnswerChoice.A, 'True'],
[AnswerChoice.B, 'False'],
]),
AnswerChoice.UNANSWERED,
); // Replace `UNANSWERED` with the correct answer.
}

private static makeQuestion2(): QuizQuestion {
return new MultipleChoiceQuizQuestion(
2,
'What is the brain of the computer?',
new Map<AnswerChoice, string>([
[AnswerChoice.A, 'CPU'],
[AnswerChoice.B, 'GPU'],
[AnswerChoice.C, 'Motherboard'],
[AnswerChoice.D, 'Power supply'],
]),
AnswerChoice.UNANSWERED,
); // Replace `UNANSWERED` with the correct answer.
}
}
8 changes: 7 additions & 1 deletion 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 { DanielsonAdjocyQuiz } from './danielson_adjocys_quiz.js';
import { AnotherQuiz } from './another_quiz.js';
import { AnthonyMaysQuiz } from './anthony_mays_quiz.js';
import { BenjaminScottQuiz } from './benjamin_scott_quiz.js';
Expand All @@ -9,15 +10,20 @@ export const Quizzes = Symbol.for('Quizzes');

// Add your quiz provider here.




const QUIZ_PROVIDERS = [
AnthonyMaysQuiz,
TrinitieJacksonQuiz,
BrooklynHardenQuiz,
TyranRicesQuiz,
AnotherQuiz,
BenjaminScottQuiz
BenjaminScottQuiz,
DanielsonAdjocyQuiz
];


@Module({
providers: [
...QUIZ_PROVIDERS,
Expand Down