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
6 changes: 6 additions & 0 deletions lesson_03/quiz/quiz.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,12 @@ quiz:
- $2y$10$FquR69q7W4E68TX/SNCB7u8Ri0DOFRDqsUPdGfuyIBjZJRVFkNI.6
- $2y$10$FSWRA7hulVpyVxd8s67Nxuq/1cdmviW24qqoUbqihBf79cR.w9yly
- $2y$10$Qy1IsNsfuJvA384ypL/72uWubUuNbMRp4LD6j/LM0RIH66D/HIjF6

niapack:
- $2y$10$AHKmPPaTlafHO3T5q..kAuAhAy4n8Kn.wcY7ZAeYgokCjitwyjqE2
- $2y$10$Z0g.9UO7qwkwoeNe8byn3.MVNIiIKBxa6ztLVHzDz.m5Ao5ozGqh6
- $2y$10$QjpqUnI.C5UPmDuMPU.Eyu7k.T/qF0oAZDl0.osqlaJW.NC7Lvfya

jasonwatson:
- $2y$10$AZtPKyQ.6Bzb.jreO/u.2O3C7XfvYAVpjHzLkuhLVdsX74wc4vXwS
- $2y$10$QbKtEXqpeItigRLAHsn8Qe/06ZpXhKEP1bGPJSFXymsoFw9.04NHy
Expand Down
75 changes: 75 additions & 0 deletions lesson_03/quiz/src/quizzes/nia_quiz.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
import {
AnswerChoice,
MultipleChoiceQuizQuestion,
QuizQuestion,
QuizQuestionProvider,
} from 'codedifferently-instructional';

export class NiaPackquiz implements QuizQuestionProvider {
getProviderName(): string {
return 'niapack';
}

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

private static makeQuestion0(): QuizQuestion {
return new MultipleChoiceQuizQuestion(
0,
'What is branching? Why is it important?',
new Map<AnswerChoice, string>([
[
AnswerChoice.A,
'It is when a tree grows and is important to make the sky look beautiful',
],
[
AnswerChoice.B,
'It is when you create a seperate copy of a code and is important because it doesnt affect the main version and makes it easier to work with a team',
],
[
AnswerChoice.C,
'It is when you delete all previous versions of your code and is important so you dont have to start from scratch',
],
[
AnswerChoice.D,
'It is merging all changes directly into the main code and is important because it speeds up develpoment by avoiding unnecessary review or debugging steps',
],
]),
AnswerChoice.UNANSWERED,
); // Replace `UNANSWERED` with the correct answer.
}
private static makeQuestion1(): QuizQuestion {
return new MultipleChoiceQuizQuestion(
1,
'Which programming languages can you use in VS code?',
new Map<AnswerChoice, string>([
[AnswerChoice.A, 'Only Python'],
[AnswerChoice.B, 'Only JavaScript'],
[AnswerChoice.C, 'Multiple languages like Python, JavaScript, and C++'],
[AnswerChoice.D, 'C++'],
]),
AnswerChoice.UNANSWERED,
); // Replace `UNANSWERED` with the correct answer.
}
private static makeQuestion2(): QuizQuestion {
return new MultipleChoiceQuizQuestion(
2,
'What is a pull request request on GitHub?',
new Map<AnswerChoice, string>([
[
AnswerChoice.A,
'A way to merge changes from one branch into another after review',
],
[AnswerChoice.B, 'A command to delete a branch permanently'],
[AnswerChoice.C, 'A method for creating a local copy of a repository'],
[AnswerChoice.D, 'A tool to schedule automatic repository backups'],
]),
AnswerChoice.UNANSWERED,
); // Replace `UNANSWERED` with the correct answer.
}
}
9 changes: 9 additions & 0 deletions lesson_03/quiz/src/quizzes/quizzes.module.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,21 @@
import { Module } from '@nestjs/common';
import { AnotherQuiz } from './another_quiz.js';
import { AnthonyMaysQuiz } from './anthony_mays_quiz.js';





import { NiaPackquiz } from './nia_quiz.js';

import { JasonWatsonQuiz } from './jason_watson_quiz.js';
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 { KhaylaSaundersQuiz } from './khayla_quiz.js';
import { MercedesMathewsQuiz } from './mercedes_mathews_quiz.js';

import { RasheedMillerQuiz } from './rasheed_miller_quiz.js';

export const Quizzes = Symbol.for('Quizzes');
Expand All @@ -24,6 +32,7 @@ const QUIZ_PROVIDERS = [
DavidAdenaikeQuiz,
KhaylaSaundersQuiz,
RasheedMillerQuiz,
NiaPackquiz,
JasonWatsonQuiz,
];

Expand Down