Skip to content

feat: create test questions for Angie #109

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 9 commits into from
Oct 1, 2024
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
5 changes: 5 additions & 0 deletions lesson_03/quiz/quiz.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,12 @@ quiz:
- $2y$10$XcsVuO66KZiUiN75NtssdOkKvHKhuBo91JgE/TJEnSrrzbhjxuql.
- $2y$10$9fZs867NHxoPQ/VWMeLyj.us5Kg3SLPcbt9O5ki/FdJ37TbhgFMFC
- $2y$10$GfjcKvtzr6n8553Mdr1RJOOYDfzOudlW.3i8otsH0HiW52CU7tUAW
angelicacastillo:
- $2y$10$MkiKfTFDIR5e4nWe3Q3XKOSEk2E06urRRykXIx/2JV6Y5j.OPIWMi
- $2y$10$WsWcxQ.rCkq/WoUVMbdMNuUU8v5O9xDFpWdbWydVFu7/Ufz/8lLru
- $2y$10$9FB5PKcxb5z0xijnLVnF8.127CghZcgd7.0Phn2QsWdCYBxxZWrwG
amiyahjones:
- $2y$10$QsN9VkjWORsKgZRiBT46VOUgc5HVnswKAT4uDbs7JYbTF7DdKbsw.
- $2y$10$sqXEOL0L8o0kRyiAb.2s4u0RlBC2.LmOGDbGWXHj5IfBNwinkv2yq
- $2y$10$HaWueXgrIzd7z8yf39HfVeTjjyr.Kgx0GFBqwCRSzW3zRSreN19yi

65 changes: 65 additions & 0 deletions lesson_03/quiz/src/quizzes/angelica_c_quiz.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
import {
AnswerChoice,
MultipleChoiceQuizQuestion,
QuizQuestion,
QuizQuestionProvider,
} from 'codedifferently-instructional';

export class AngelicaCQuiz implements QuizQuestionProvider {
getProviderName(): string {
return 'angelicacastillo';
}

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

private static makeQuestion0(): QuizQuestion {
return new MultipleChoiceQuizQuestion(
0,
'What does CPU stand for?',
new Map<AnswerChoice, string>([
[AnswerChoice.A, 'Central Processing Unit'],
[AnswerChoice.B, 'Central Program Unit'],
[
AnswerChoice.C,
'Center Program Unit',
],
[AnswerChoice.D, 'Whatever you want it to be!'],
]),
AnswerChoice.UNANSWERED,
); // Replace `UNANSWERED` with the correct answer.
}
private static makeQuestion1(): QuizQuestion {
return new MultipleChoiceQuizQuestion(
1,
'Which of the following would be a "simple" essential part of the computer?',
new Map<AnswerChoice, string>([
[AnswerChoice.A, 'RAM'],
[AnswerChoice.B, 'CPU'],
[
AnswerChoice.C,
'CASE',
],
[AnswerChoice.D, 'HARD DRIVE'],
]),
AnswerChoice.UNANSWERED,
); // Replace `UNANSWERED` with the correct answer.
}
private static makeQuestion2(): QuizQuestion {
return new MultipleChoiceQuizQuestion(
2,
'What would be considered the brains long term memory?',
new Map<AnswerChoice, string>([
[AnswerChoice.A, 'Mother board'],
[AnswerChoice.B, 'Hard drive'],
[
AnswerChoice.C,
'Power supply',
],
[AnswerChoice.D, 'Computer'],
]),
AnswerChoice.UNANSWERED,
); // Replace `UNANSWERED` with the correct answer.
}
}
4 changes: 3 additions & 1 deletion lesson_03/quiz/src/quizzes/quizzes.module.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
import { Module } from '@nestjs/common';
import { AngelicaCQuiz } from './angelica_c_quiz.js';
import { AnotherQuiz } from './another_quiz.js';
import { OyeyemiJimohQuiz } from './oyeyemi_jimoh_quiz.js';
import { AnthonyMaysQuiz } from './anthony_mays_quiz.js';
import { ChigazoGrahamsQuiz } from './chigazo_graham_quiz.js';
import { JosephCaballeroQuiz } from './joseph_caballero_quiz.js';
import { OyeyemiJimohQuiz } from './oyeyemi_jimoh_quiz.js';
import { YafiahAbdullahQuiz } from './yafiah_abdullah_quiz.js';
import { AmiyahJonesQuiz } from './amiyah_jones_quiz.js';

Expand All @@ -16,6 +17,7 @@ const QUIZ_PROVIDERS = [
YafiahAbdullahQuiz,
AnotherQuiz,
JosephCaballeroQuiz,
AngelicaCQuiz,
OyeyemiJimohQuiz,
ChigazoGrahamsQuiz,
AmiyahJonesQuiz
Expand Down