Skip to content
Merged
Show file tree
Hide file tree
Changes from 3 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 @@ -26,6 +26,10 @@ quiz:
- $2y$10$hRwUbEYSqz761B.cG79T2uYsYPiEtKu.JgD3Aj7.Mofx27TtX5YHa
- $2y$10$qE/gXxpq62FEGJOJd9MDA.vpDYLTNSsZbqZLpD/0368CKkcNBzW1y
- $2y$10$yI/2BgOyqQfLdHM3ixPE5uLu89su/sHRJB2c5szDFIAYXDhRakS.C
karenalabi:
- $2y$10$oxPNDhhyNt9BpV3g7RPmgOeQybzmsZIP5SYJkpAga6CnYbHVOqrei
- $2y$10$q4dA/UIgxjzjYKK1p4MRDugTEWajBN5WAOxJflQXXI2M/8gKegXP.
- $2y$10$czzmXmK7hipnM0mrjyqA/.QxgJgryPU/rNX3dof8aw2npU9BQ/4ZC
davidadenaike:
- $2y$10$CCxBimjXsumkjTLWRWqibue0VeGel6Idfb/2q3y.mIuKHbkWVTsx6
- $2y$10$/z0Ri9Fg7pOXUFYsOErj.Ol8Hxcy7zwqWezLTMWVtFv6tzvkCrJti
Expand Down
83 changes: 83 additions & 0 deletions lesson_03/quiz/src/quizzes/karen_alabi_quiz.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,83 @@
import {
AnswerChoice,
MultipleChoiceQuizQuestion,
QuizQuestion,
QuizQuestionProvider,
} from 'codedifferently-instructional';

export class KarensQuiz implements QuizQuestionProvider {
getProviderName(): string {
return 'karenalabi';
}

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

private static makeQuestion0(): QuizQuestion {
return new MultipleChoiceQuizQuestion(
0,
'What does GPU stand for?',
new Map<AnswerChoice, string>([
[AnswerChoice.A, 'Graphical Processing Unit'],
[AnswerChoice.B, 'Gaming Processing Unit'],
[AnswerChoice.C, 'General Preserving Unit'],
[AnswerChoice.D, 'George P. Underwood'],
]),
AnswerChoice.UNANSWERED,
); // Replace `UNANSWERED` with the correct answer.
}

private static makeQuestion1(): QuizQuestion {
return new MultipleChoiceQuizQuestion(
1,
'Which of the following best describes a computer?',
new Map<AnswerChoice, string>([
[AnswerChoice.A, 'Karen from Spongebob'],
[
AnswerChoice.B,
'A machine that automatically transforms input data into output data using pre-programmed instructions',
],
[
AnswerChoice.C,
'A high-tech calculator that only performs basic arithmetic operations like addition and subtraction, making it useful only for solving math problems',
],
[
AnswerChoice.D,
'A microwave with a keyboard that heats up data instead of food',
],
]),
AnswerChoice.UNANSWERED,
); // Provide the correct answer.
}

private static makeQuestion2(): QuizQuestion {
return new MultipleChoiceQuizQuestion(
2,
'What is the motherboard?',
new Map<AnswerChoice, string>([
[
AnswerChoice.A,
'A big chip that controls how fast your computer runs.',
],
[
AnswerChoice.B,
'The part of the computer that generates electricity to power all the other components.',
],
[
AnswerChoice.C,
'The main circuit board of a computer that houses the CPU, memory, and other essential components.',
],
[
AnswerChoice.D,
'The board that a mother uses to control the computer.',
],
]),
AnswerChoice.UNANSWERED,
);
}
}
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 @@ -6,6 +6,7 @@ import { MeikoStephensQuiz } from './meiko_stephens_quiz.js';
import { DavidAdenaikeQuiz } from './david_adenaike_quiz.js';
import { EzraQuiz } from './ezra_quiz.js';
import { Jbeyquiz } from './jbeyquiz.js';
import { KarensQuiz } from './karen_alabi_quiz.js';
import { KhaylaSaundersQuiz } from './khayla_quiz.js';
import { MercedesMathewsQuiz } from './mercedes_mathews_quiz.js';
import { RasheedMillerQuiz } from './rasheed_miller_quiz.js';
Expand All @@ -21,6 +22,7 @@ const QUIZ_PROVIDERS = [
MeikoStephensQuiz,
MercedesMathewsQuiz,
Jbeyquiz,
KarensQuiz,
EzraQuiz,
DavidAdenaikeQuiz,
KhaylaSaundersQuiz,
Expand Down