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
7 changes: 6 additions & 1 deletion lesson_03/quiz/quiz.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,9 @@ quiz:
rmill:
- $2y$10$FquR69q7W4E68TX/SNCB7u8Ri0DOFRDqsUPdGfuyIBjZJRVFkNI.6
- $2y$10$FSWRA7hulVpyVxd8s67Nxuq/1cdmviW24qqoUbqihBf79cR.w9yly
- $2y$10$Qy1IsNsfuJvA384ypL/72uWubUuNbMRp4LD6j/LM0RIH66D/HIjF6
- $2y$10$Qy1IsNsfuJvA384ypL/72uWubUuNbMRp4LD6j/LM0RIH66D/HIjF6
jeremiahwing:
- $2y$10$YLN9gvb8/fBf3ByHNIdb9.UZ8ilcuCdPgZN9QIYd2rwD23vzt2lvy
- $2y$10$AEUmg5pH8c2VLZ871//G4eKjwx5cnKH5c2HGTNXdnAPF.3/ZmNap2
- $2y$10$bcTYSI0R/3x0pPHcGPAjautopYx2MD8mJPqf2nXKMJeteoIwJQrQm
- $2y$10$V8pMtwgtZe725nPssrr8kejs4Evh/Vi3ia8RulylOQ8x2YV4tJ4LO
83 changes: 83 additions & 0 deletions lesson_03/quiz/src/quizzes/jeremiah_wing_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 JeremiahWingQuiz implements QuizQuestionProvider {
getProviderName(): string {
return 'jeremiahwing';
}

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

private static makeQuestion0(): QuizQuestion {
return new MultipleChoiceQuizQuestion(
0,
'What does the SRC element stand for?',
new Map<AnswerChoice, string>([
[AnswerChoice.A, 'Source'],
[AnswerChoice.B, 'Script'],
[AnswerChoice.C, 'Style'],
[AnswerChoice.D, 'Section'],
]),
AnswerChoice.UNANSWERED,
);
}

private static makeQuestion1(): QuizQuestion {
return new MultipleChoiceQuizQuestion(
1,
'What does the git fetch command do?',
new Map<AnswerChoice, string>([
[AnswerChoice.A, 'Downloads objects and refs from another repository'],
[AnswerChoice.B, 'Merges changes from another branch'],
[AnswerChoice.C, 'Commits changes to the local repository'],
[AnswerChoice.D, 'Deletes a branch from the repository'],
]),
AnswerChoice.UNANSWERED,
);
}

private static makeQuestion2(): QuizQuestion {
return new MultipleChoiceQuizQuestion(
2,
'What does the git pull command do?',
new Map<AnswerChoice, string>([
[
AnswerChoice.A,
'Fetches from and integrates with another repository or a local branch',
],
[AnswerChoice.B, 'Merges changes from another branch'],
[AnswerChoice.C, 'Commits changes to the local repository'],
[AnswerChoice.D, 'Deletes a branch from the repository'],
]),
AnswerChoice.UNANSWERED,
);
}

private static makeQuestion3(): QuizQuestion {
return new MultipleChoiceQuizQuestion(
3,
'What does the git push command do?',
new Map<AnswerChoice, string>([
[
AnswerChoice.A,
'Uploads local repository content to a remote repository',
],
[AnswerChoice.B, 'Merges changes from another branch'],
[AnswerChoice.C, 'Commits changes to the local repository'],
[AnswerChoice.D, 'Downloads objects and refs from another repository'],
]),
AnswerChoice.UNANSWERED,
);
}
}
4 changes: 4 additions & 0 deletions lesson_03/quiz/src/quizzes/quizzes.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ import { AnthonyMaysQuiz } from './anthony_mays_quiz.js';
import { Jbeyquiz } from './jbeyquiz.js';
import { MercedesMathewsQuiz } from './mercedes_mathews_quiz.js';
import { RasheedMillerQuiz } from './rasheed_miller_quiz.js';
import { JeremiahWingQuiz } from './jeremiah_wing_quiz.js';



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

Expand All @@ -14,6 +17,7 @@ const QUIZ_PROVIDERS = [
MercedesMathewsQuiz,
Jbeyquiz,
RasheedMillerQuiz,
JeremiahWingQuiz
];

@Module({
Expand Down