Skip to content

Commit 37419ee

Browse files
authored
Merge branch 'main' into Homework_03_pt2
2 parents e78b68d + a236d7d commit 37419ee

File tree

4 files changed

+144
-2
lines changed

4 files changed

+144
-2
lines changed

lesson_03/quiz/quiz.yaml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,10 @@ quiz:
3838
- $2y$10$FquR69q7W4E68TX/SNCB7u8Ri0DOFRDqsUPdGfuyIBjZJRVFkNI.6
3939
- $2y$10$FSWRA7hulVpyVxd8s67Nxuq/1cdmviW24qqoUbqihBf79cR.w9yly
4040
- $2y$10$Qy1IsNsfuJvA384ypL/72uWubUuNbMRp4LD6j/LM0RIH66D/HIjF6
41+
evanphilakhong:
42+
- $2y$10$3ERfjtWq6bYipHm0QGOuDe8oeXth3dnmfxT8g5P65sc8m4EivQNY.
43+
- $2y$10$cr3WSpMx9zljgMYCqz4uYOAMT2iOzDaRsnoQi6CfPu/761F.1EpwW
44+
- $2y$10$us8POdRzHVBFr1wNcuC7iuDg/YsQvr0GXe5JpFg8EIWzc6IMnIEUG
4145
jeremiahwing:
4246
- $2y$10$YLN9gvb8/fBf3ByHNIdb9.UZ8ilcuCdPgZN9QIYd2rwD23vzt2lvy
4347
- $2y$10$AEUmg5pH8c2VLZ871//G4eKjwx5cnKH5c2HGTNXdnAPF.3/ZmNap2
@@ -46,4 +50,8 @@ quiz:
4650
jasonwatson:
4751
- $2y$10$AZtPKyQ.6Bzb.jreO/u.2O3C7XfvYAVpjHzLkuhLVdsX74wc4vXwS
4852
- $2y$10$QbKtEXqpeItigRLAHsn8Qe/06ZpXhKEP1bGPJSFXymsoFw9.04NHy
49-
- $2y$10$tJLScW1OZpOLpVllM65EI.W1QjkSIIBtz.KG8z/s.07RNb7ZWC0um
53+
- $2y$10$tJLScW1OZpOLpVllM65EI.W1QjkSIIBtz.KG8z/s.07RNb7ZWC0um
54+
chanelhutt:
55+
- $2y$10$7/GS4n5j/5TXQc5zjDzlc.2xBKwRqrsksWzcl7VKRwa.fDxzdficS
56+
- $2y$10$9mfdal67CXoVG2phPKe1s.BpAT6HQeyQIiDtStfFazkPMW2AaW6Zu
57+
- $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+
}
Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
import {
2+
AnswerChoice,
3+
MultipleChoiceQuizQuestion,
4+
QuizQuestion,
5+
QuizQuestionProvider,
6+
} from 'codedifferently-instructional';
7+
8+
export class EvanPhilakhongQuiz implements QuizQuestionProvider {
9+
getProviderName(): string {
10+
return 'evanphilakhong';
11+
}
12+
13+
makeQuizQuestions(): QuizQuestion[] {
14+
return [
15+
EvanPhilakhongQuiz.makeQuestion0(),
16+
EvanPhilakhongQuiz.makeQuestion1(),
17+
EvanPhilakhongQuiz.makeQuestion2(),
18+
];
19+
}
20+
21+
private static makeQuestion0(): QuizQuestion {
22+
return new MultipleChoiceQuizQuestion(
23+
0,
24+
'What is a CPU?',
25+
new Map<AnswerChoice, string>([
26+
[AnswerChoice.A, 'Computer Power Unit'],
27+
[AnswerChoice.B, 'Complex Processing Unit'],
28+
[AnswerChoice.C, 'Central Processing Unit'],
29+
[AnswerChoice.D, 'Coding Processor Unit'],
30+
]),
31+
AnswerChoice.UNANSWERED, // replace UNANSWERED with correct answer
32+
);
33+
}
34+
35+
private static makeQuestion1(): QuizQuestion {
36+
return new MultipleChoiceQuizQuestion(
37+
1,
38+
'What is a GPU?',
39+
new Map<AnswerChoice, string>([
40+
[AnswerChoice.A, 'Graphics Processing Unit'],
41+
[AnswerChoice.B, 'Gaming Power Unit'],
42+
[AnswerChoice.C, 'Graphical Programming Unit'],
43+
[AnswerChoice.D, 'Gaming Processor Unit'],
44+
]),
45+
AnswerChoice.UNANSWERED, // replace UNANSWERED with correct answer
46+
);
47+
}
48+
49+
private static makeQuestion2(): QuizQuestion {
50+
return new MultipleChoiceQuizQuestion(
51+
2,
52+
'What is a PSU?',
53+
new Map<AnswerChoice, string>([
54+
[AnswerChoice.A, 'Programming Super Unit'],
55+
[AnswerChoice.B, 'Power Supply Unit'],
56+
[AnswerChoice.C, 'Power Supplier Unit'],
57+
[AnswerChoice.D, 'Power Storing Unit'],
58+
]),
59+
AnswerChoice.UNANSWERED, // repleace UNANSWERED with correct answer
60+
);
61+
}
62+
}

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

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
import { Module } from '@nestjs/common';
22
import { AnotherQuiz } from './another_quiz.js';
33
import { AnthonyMaysQuiz } from './anthony_mays_quiz.js';
4-
import { DavidAdenaikeQuiz } from './david_adenaike_quiz.js';
54
import { DylanLaffertyQuiz } from './dylan_lafferty_quiz.js';
5+
import { ChanelHuttQuiz } from './Chanel_Huttquiz.js';
6+
import { DavidAdenaikeQuiz } from './david_adenaike_quiz.js';
7+
import { EvanPhilakhongQuiz } from './evan_philakhong_quiz.js';
68
import { EzraQuiz } from './ezra_quiz.js';
79
import { JasonWatsonQuiz } from './jason_watson_quiz.js';
810
import { Jbeyquiz } from './jbeyquiz.js';
@@ -24,9 +26,11 @@ const QUIZ_PROVIDERS = [
2426
Jbeyquiz,
2527
EzraQuiz,
2628
DavidAdenaikeQuiz,
29+
EvanPhilakhongQuiz,
2730
KhaylaSaundersQuiz,
2831
DylanLaffertyQuiz,
2932
RasheedMillerQuiz,
33+
ChanelHuttQuiz,
3034
JeremiahWingQuiz,
3135
JasonWatsonQuiz,
3236
];

0 commit comments

Comments
 (0)