Skip to content

my quiz made #115

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 11 commits into from
Mar 12, 2025
Merged
Show file tree
Hide file tree
Changes from all 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
meikostephens:
- $2y$10$AD1YHmrZZivus7DoM91UMuErNnpi63ueluFs7DcSQSrZbXwDycAOi
- $2y$10$KvnxAYKh3A151RyOOFtOv.wfImRzZMgbBgKy3gyLd1uUSSjHaN.4u
- $2y$10$qJDpo1X1kFXRD1M6Kpi8WeKg.a8dgzd8RawXX/3RuMqM82biBc6iK
computerparts:
- $2y$10$7TUXmYaJlWnRZTzYR..CsefgVcOZJMGt7ctxyAf.G3obBBFEAB342
- $2y$10$0ghuTDegle177q8VjCgQ2OhManKjotYXrcDT3SLyUF8KvI152Wd0.
Expand Down
65 changes: 65 additions & 0 deletions lesson_03/quiz/src/quizzes/meiko_stephens_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 MeikoStephensQuiz implements QuizQuestionProvider {
getProviderName(): string {
return 'meikostephens';
}

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

private static makeQuestion0(): QuizQuestion {
return new MultipleChoiceQuizQuestion(
0,
'What is a branch?',
new Map<AnswerChoice, string>([
[AnswerChoice.A, 'A new line of code'],
[
AnswerChoice.B,
'A copy of a repository that allows you make changes and merge them later',
],
[AnswerChoice.C, 'A way to delete a respository and start over'],
[AnswerChoice.D, 'A way to run code'],
]),
AnswerChoice.UNANSWERED,
); // Replace `UNANSWERED` with the correct answer.
}

private static makeQuestion1(): QuizQuestion {
return new MultipleChoiceQuizQuestion(
1,
'What does a syncfork do?',
new Map<AnswerChoice, string>([
[AnswerChoice.A, 'Updates changes from the original repository'],
[AnswerChoice.B, 'Deletes the repositiory'],
[AnswerChoice.C, 'Transforms the repository into a branch'],
[AnswerChoice.D, 'Runs the code more efficiently'],
]),
AnswerChoice.UNANSWERED,
); // Replace `UNANSWERED` with the correct answer.
}

private static makeQuestion2(): QuizQuestion {
return new MultipleChoiceQuizQuestion(
2,
'What brings the modify changes to merge into the main repositiory?',
new Map<AnswerChoice, string>([
[AnswerChoice.A, 'A terminal'],
[AnswerChoice.B, 'A branch'],
[AnswerChoice.C, 'A syncfork'],
[AnswerChoice.D, 'A pull request'],
]),
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,6 +1,7 @@
import { Module } from '@nestjs/common';
import { AnotherQuiz } from './another_quiz.js';
import { AnthonyMaysQuiz } from './anthony_mays_quiz.js';
import { MeikoStephensQuiz } from './meiko_stephens_quiz.js';
import { Jbeyquiz } from './jbeyquiz.js';
import { MercedesMathewsQuiz } from './mercedes_mathews_quiz.js';
import { RasheedMillerQuiz } from './rasheed_miller_quiz.js';
Expand All @@ -10,7 +11,8 @@ export const Quizzes = Symbol.for('Quizzes');
// Add your quiz provider here.
const QUIZ_PROVIDERS = [
AnthonyMaysQuiz,
AnotherQuiz,
AnotherQuiz,
MeikoStephensQuiz ,
MercedesMathewsQuiz,
Jbeyquiz,
RasheedMillerQuiz,
Expand Down