Skip to content
Closed
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
7 changes: 7 additions & 0 deletions lesson_03/quiz/quiz.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,12 @@ quiz:
anotherone:
- $2y$10$8eHSzy3aCu4Ry3LzO9nWCeGpofSxsNVbnF.wCfn3ZADwQ6MEtN/KK
- $2y$10$dGB0CGv7.XQC5OqfyY6iXOiJsdVyxU3ve5YE0gt4m2I8P8H13lNXa
Chutt_lesson_03
chanelhutt:
- $2y$10$RL0pFvQE0YDCxR.f7AFb5.P45m9x9t.0diyZ5mOnADWvBhiCJW4Ci
- $2y$10$Bgkbza7Vq5z0qz4iMZWuJep6Vfxq1Zp/ddQuo.vLzmdNo84JCDaoa
- $2y$10$hYXAGlRHPLJME/CM556vouvwDwcUts.kH4zRRZk.jQyFQEzC9FkVa

computerparts:
- $2y$10$7TUXmYaJlWnRZTzYR..CsefgVcOZJMGt7ctxyAf.G3obBBFEAB342
- $2y$10$0ghuTDegle177q8VjCgQ2OhManKjotYXrcDT3SLyUF8KvI152Wd0.
Expand All @@ -14,3 +20,4 @@ quiz:
- $2y$10$hRwUbEYSqz761B.cG79T2uYsYPiEtKu.JgD3Aj7.Mofx27TtX5YHa
- $2y$10$qE/gXxpq62FEGJOJd9MDA.vpDYLTNSsZbqZLpD/0368CKkcNBzW1y
- $2y$10$yI/2BgOyqQfLdHM3ixPE5uLu89su/sHRJB2c5szDFIAYXDhRakS.C
main
64 changes: 64 additions & 0 deletions lesson_03/quiz/src/quizzes/Chanel_Hutt_quiz.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
import {
AnswerChoice,
MultipleChoiceQuizQuestion,
QuizQuestion,
QuizQuestionProvider,
} from 'codedifferently-instructional';

export class ChanelHuttQuiz implements QuizQuestionProvider {
getProviderName(): string {
return 'chanelhutt';
}

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

private static makeQuestion0(): QuizQuestion {
return new MultipleChoiceQuizQuestion(
0,
'Which one is not a purpose for git commit?',
new Map<AnswerChoice, string>([
[AnswerChoice.A, 'To save changes to your local repository'],
[
AnswerChoice.B,
'To provide a clear, descriptive message for the changes made',
],
[AnswerChoice.C, 'To clear the terminal and re-type the command'],
[AnswerChoice.D, 'Keeps track of changes made to your code'],
]),
AnswerChoice.UNANSWERED,
); // Replace `UNANSWERED` with the correct answer.
}

private static makeQuestion1(): QuizQuestion {
return new MultipleChoiceQuizQuestion(
1,
'Which answer best fits the command git push?',
new Map<AnswerChoice, string>([
[AnswerChoice.A, 'To move the code to the trash'],
[
AnswerChoice.B,
'To transfer files from the local repository to remote repository hosting services',
],
[AnswerChoice.C, 'To add comments to the code'],
[AnswerChoice.D, 'To merge several branches into one branch'],
]),
AnswerChoice.UNANSWERED,
); // Replace `UNANSWERED` with the correct answer.
}

private static makeQuestion2(): QuizQuestion {
return new MultipleChoiceQuizQuestion(
2,
'Which command is used to update the yourlocal repository with changes from your remote repository?',
new Map<AnswerChoice, string>([
[AnswerChoice.A, 'git fetch upstream'],
[AnswerChoice.B, 'git pull'],
[AnswerChoice.C, 'git commit'],
[AnswerChoice.D, 'git checkout main'],
]),
AnswerChoice.UNANSWERED,
); // Replace `UNANSWERED` with the correct answer.
}
}
8 changes: 8 additions & 0 deletions lesson_03/quiz/src/quizzes/quizzes.module.ts
Original file line number Diff line number Diff line change
@@ -1,18 +1,26 @@
import { Module } from '@nestjs/common';
import { AnotherQuiz } from './another_quiz.js';
import { AnthonyMaysQuiz } from './anthony_mays_quiz.js';
Chutt_lesson_03
import { ChanelHuttQuiz } from './Chanel_Hutt_quiz.js';

import { Jbeyquiz } from './jbeyquiz.js';
import { MercedesMathewsQuiz } from './mercedes_mathews_quiz.js';
main

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

// Add your quiz provider here.
Chutt_lesson_03
const QUIZ_PROVIDERS = [AnthonyMaysQuiz, AnotherQuiz, ChanelHuttQuiz];
=======
const QUIZ_PROVIDERS = [
AnthonyMaysQuiz,
AnotherQuiz,
MercedesMathewsQuiz,
Jbeyquiz,
];
main

@Module({
providers: [
Expand Down
Loading