Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
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: 5 additions & 1 deletion lesson_03/quiz/quiz.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,8 @@ quiz:
rmill:
- $2y$10$FquR69q7W4E68TX/SNCB7u8Ri0DOFRDqsUPdGfuyIBjZJRVFkNI.6
- $2y$10$FSWRA7hulVpyVxd8s67Nxuq/1cdmviW24qqoUbqihBf79cR.w9yly
- $2y$10$Qy1IsNsfuJvA384ypL/72uWubUuNbMRp4LD6j/LM0RIH66D/HIjF6
- $2y$10$Qy1IsNsfuJvA384ypL/72uWubUuNbMRp4LD6j/LM0RIH66D/HIjF6
jasonwatson:
- $2y$10$AZtPKyQ.6Bzb.jreO/u.2O3C7XfvYAVpjHzLkuhLVdsX74wc4vXwS
- $2y$10$QbKtEXqpeItigRLAHsn8Qe/06ZpXhKEP1bGPJSFXymsoFw9.04NHy
- $2y$10$tJLScW1OZpOLpVllM65EI.W1QjkSIIBtz.KG8z/s.07RNb7ZWC0um
62 changes: 62 additions & 0 deletions lesson_03/quiz/src/quizzes/jason_watson_quiz.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
import {
AnswerChoice,
MultipleChoiceQuizQuestion,
QuizQuestion,
QuizQuestionProvider,
} from 'codedifferently-instructional';

export class JasonWatsonQuiz implements QuizQuestionProvider {
getProviderName(): string {
return 'jasonwatson';
}

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

private static makeQuestion0(): QuizQuestion {
return new MultipleChoiceQuizQuestion(
0,
'How much MB of memory is equal to 1GB of RAM',
new Map<AnswerChoice, string>([
[AnswerChoice.A, '500MB'],
[AnswerChoice.B, '1024MB'],
[AnswerChoice.C, '2048MB'],
[AnswerChoice.D, '1000MB'],
]),
AnswerChoice.UNANSWERED,
); // Replace `UNANSWERED` with the correct answer.
}

private static makeQuestion1(): QuizQuestion {
return new MultipleChoiceQuizQuestion(
1,
'What is Visual Studio Code primarily used for',
new Map<AnswerChoice, string>([
[AnswerChoice.A, 'Graphic Design'],
[AnswerChoice.B, 'Word Processing'],
[AnswerChoice.C, 'Code Editing'],
[AnswerChoice.D, 'Video Prodection'],
]),
AnswerChoice.UNANSWERED,
); // Replace `UNANSWERED` with the correct answer.
}

private static makeQuestion2(): QuizQuestion {
return new MultipleChoiceQuizQuestion(
2,
'What file is commonly used to provide instructions or documenttation in a GitHub repository',
new Map<AnswerChoice, string>([
[AnswerChoice.A, 'README.md'],
[AnswerChoice.B, 'INSTRUCTIONS.txt'],
[AnswerChoice.C, 'GUIDE.pdf'],
[AnswerChoice.D, 'DOCS.docx'],
]),
AnswerChoice.UNANSWERED,
); // Replace `UNANSWERED` with the correct answer.
}
}
3 changes: 3 additions & 0 deletions lesson_03/quiz/src/quizzes/quizzes.module.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
import { Module } from '@nestjs/common';
import { AnotherQuiz } from './another_quiz.js';
import { AnthonyMaysQuiz } from './anthony_mays_quiz.js';
import { JasonWatsonQuiz } from './jason_watson_quiz.js';
import { Jbeyquiz } from './jbeyquiz.js';
import { MercedesMathewsQuiz } from './mercedes_mathews_quiz.js';
import { RasheedMillerQuiz } from './rasheed_miller_quiz.js';


export const Quizzes = Symbol.for('Quizzes');

// Add your quiz provider here.
Expand All @@ -14,6 +16,7 @@ const QUIZ_PROVIDERS = [
MercedesMathewsQuiz,
Jbeyquiz,
RasheedMillerQuiz,
JasonWatsonQuiz,
];

@Module({
Expand Down