Skip to content

Commit 68a7853

Browse files
NelltheWizanthonydmays
authored andcommitted
feat branch for lesson3
1 parent 7f067c8 commit 68a7853

File tree

3 files changed

+78
-4
lines changed

3 files changed

+78
-4
lines changed

lesson_03/quiz/quiz.yaml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,4 +46,8 @@ quiz:
4646
jasonwatson:
4747
- $2y$10$AZtPKyQ.6Bzb.jreO/u.2O3C7XfvYAVpjHzLkuhLVdsX74wc4vXwS
4848
- $2y$10$QbKtEXqpeItigRLAHsn8Qe/06ZpXhKEP1bGPJSFXymsoFw9.04NHy
49-
- $2y$10$tJLScW1OZpOLpVllM65EI.W1QjkSIIBtz.KG8z/s.07RNb7ZWC0um
49+
- $2y$10$tJLScW1OZpOLpVllM65EI.W1QjkSIIBtz.KG8z/s.07RNb7ZWC0um
50+
chanelhutt:
51+
- $2y$10$7/GS4n5j/5TXQc5zjDzlc.2xBKwRqrsksWzcl7VKRwa.fDxzdficS
52+
- $2y$10$9mfdal67CXoVG2phPKe1s.BpAT6HQeyQIiDtStfFazkPMW2AaW6Zu
53+
- $2y$10$LiCnvad23bwZWZbxXLhs3.r/YdwIX9eAFtjofaW1AH3Htnc9sEU1G
Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
import {
2+
AnswerChoice,
3+
MultipleChoiceQuizQuestion,
4+
QuizQuestion,
5+
QuizQuestionProvider,
6+
} from 'codedifferently-instructional';
7+
8+
export class ChanelHuttQuiz implements QuizQuestionProvider {
9+
getProviderName(): string {
10+
return 'chanelhutt';
11+
}
12+
13+
makeQuizQuestions(): QuizQuestion[] {
14+
return [
15+
ChanelHuttQuiz.makeQuestion0(),
16+
ChanelHuttQuiz.makeQuestion1(),
17+
ChanelHuttQuiz.makeQuestion2(),
18+
];
19+
}
20+
21+
private static makeQuestion0(): QuizQuestion {
22+
return new MultipleChoiceQuizQuestion(
23+
0,
24+
'Which one is not a purpose for git commit?',
25+
new Map<AnswerChoice, string>([
26+
[AnswerChoice.A, 'To save changes to your local repository'],
27+
[
28+
AnswerChoice.B,
29+
'To provide a clear, descriptive message for the changes made',
30+
],
31+
[AnswerChoice.C, 'To clear the terminal and re-type the command'],
32+
[AnswerChoice.D, 'Keeps track of changes made to your code'],
33+
]),
34+
AnswerChoice.UNANSWERED,
35+
); // Replace `UNANSWERED` with the correct answer.
36+
}
37+
38+
private static makeQuestion1(): QuizQuestion {
39+
return new MultipleChoiceQuizQuestion(
40+
1,
41+
'Which answer best fits the command git push?',
42+
new Map<AnswerChoice, string>([
43+
[AnswerChoice.A, 'To move the code to the trash'],
44+
[
45+
AnswerChoice.B,
46+
'To transfer files from the local repository to remote repository hosting services',
47+
],
48+
[AnswerChoice.C, 'To add comments to the code'],
49+
[AnswerChoice.D, 'To merge several branches into one branch'],
50+
]),
51+
AnswerChoice.UNANSWERED,
52+
); // Replace `UNANSWERED` with the correct answer.
53+
}
54+
55+
private static makeQuestion2(): QuizQuestion {
56+
return new MultipleChoiceQuizQuestion(
57+
2,
58+
'Which command is used to update the yourlocal repository with changes from your remote repository?',
59+
new Map<AnswerChoice, string>([
60+
[AnswerChoice.A, 'git fetch upstream'],
61+
[AnswerChoice.B, 'git pull'],
62+
[AnswerChoice.C, 'git commit'],
63+
[AnswerChoice.D, 'git checkout main'],
64+
]),
65+
AnswerChoice.UNANSWERED,
66+
); // Replace `UNANSWERED` with the correct answer.
67+
}
68+
}

lesson_03/quiz/src/quizzes/quizzes.module.ts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,17 @@
11
import { Module } from '@nestjs/common';
22
import { AnotherQuiz } from './another_quiz.js';
33
import { AnthonyMaysQuiz } from './anthony_mays_quiz.js';
4-
import { JasonWatsonQuiz } from './jason_watson_quiz.js';
5-
import { MeikoStephensQuiz } from './meiko_stephens_quiz.js';
4+
import { ChanelHuttQuiz } from './Chanel_Huttquiz.js';
65
import { DavidAdenaikeQuiz } from './david_adenaike_quiz.js';
76
import { EvanPhilakhongQuiz } from './evan_philakhong_quiz.js';
87
import { EzraQuiz } from './ezra_quiz.js';
8+
import { JasonWatsonQuiz } from './jason_watson_quiz.js';
99
import { Jbeyquiz } from './jbeyquiz.js';
10+
import { JeremiahWingQuiz } from './jeremiah_wing_quiz.js';
1011
import { KhaylaSaundersQuiz } from './khayla_quiz.js';
12+
import { MeikoStephensQuiz } from './meiko_stephens_quiz.js';
1113
import { MercedesMathewsQuiz } from './mercedes_mathews_quiz.js';
1214
import { RasheedMillerQuiz } from './rasheed_miller_quiz.js';
13-
import { JeremiahWingQuiz } from './jeremiah_wing_quiz.js';
1415

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

@@ -27,6 +28,7 @@ const QUIZ_PROVIDERS = [
2728
EvanPhilakhongQuiz,
2829
KhaylaSaundersQuiz,
2930
RasheedMillerQuiz,
31+
ChanelHuttQuiz,
3032
JeremiahWingQuiz,
3133
JasonWatsonQuiz,
3234
];

0 commit comments

Comments
 (0)