Skip to content

Commit a1b2ba5

Browse files
authored
Merge branch 'main' into Work03
2 parents 007d779 + 4bb35ec commit a1b2ba5

File tree

5 files changed

+213
-4
lines changed

5 files changed

+213
-4
lines changed

lesson_03/quiz/quiz.yaml

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,10 @@ quiz:
2222
- $2y$10$7TUXmYaJlWnRZTzYR..CsefgVcOZJMGt7ctxyAf.G3obBBFEAB342
2323
- $2y$10$0ghuTDegle177q8VjCgQ2OhManKjotYXrcDT3SLyUF8KvI152Wd0.
2424
- $2y$10$JXoeInFy4UzHhi2Lskxzeu7CQ9RprnJgBw9pjAlV.t6zQyJTyy8OK
25+
dylanlafferty:
26+
- $2y$10$acRuI5XyFjj4PLpl3d1xd.ZEG2MsPUpw0aFoP/CmEx14fEhdmxP1i
27+
- $2y$10$E9m5ekFKcrlyQkURGQNaaOPbu8sBn5fDRWEqUbGvuB8oLIhYLufn2
28+
- $2y$10$ppMDrfmIXbKcj/D6tuLL0uSAzyevGD8bm2PnqriSdKh81iBiRfUlS
2529
mercedesmathews:
2630
- $2y$10$hRwUbEYSqz761B.cG79T2uYsYPiEtKu.JgD3Aj7.Mofx27TtX5YHa
2731
- $2y$10$qE/gXxpq62FEGJOJd9MDA.vpDYLTNSsZbqZLpD/0368CKkcNBzW1y
@@ -38,6 +42,10 @@ quiz:
3842
- $2y$10$s9Dh1bJak9WjT3sziuq1KeloNnDCuhgjsT6HA.m/fxjJSrJMK0lOu
3943
- $2y$10$Q58g8gsWhL1Zhje9WoLHKuqF44I3NK16i..EQ2SYVAa.PEkowhgOK
4044
- $2y$10$U3eJ/7JtxbPlofL.3K08AeKmVTKWLvyhNCcS.cgF6gNn/cmm5Psia
45+
evanphilakhong:
46+
- $2y$10$3ERfjtWq6bYipHm0QGOuDe8oeXth3dnmfxT8g5P65sc8m4EivQNY.
47+
- $2y$10$cr3WSpMx9zljgMYCqz4uYOAMT2iOzDaRsnoQi6CfPu/761F.1EpwW
48+
- $2y$10$us8POdRzHVBFr1wNcuC7iuDg/YsQvr0GXe5JpFg8EIWzc6IMnIEUG
4149
jeremiahwing:
4250
- $2y$10$YLN9gvb8/fBf3ByHNIdb9.UZ8ilcuCdPgZN9QIYd2rwD23vzt2lvy
4351
- $2y$10$AEUmg5pH8c2VLZ871//G4eKjwx5cnKH5c2HGTNXdnAPF.3/ZmNap2
@@ -46,4 +54,8 @@ quiz:
4654
jasonwatson:
4755
- $2y$10$AZtPKyQ.6Bzb.jreO/u.2O3C7XfvYAVpjHzLkuhLVdsX74wc4vXwS
4856
- $2y$10$QbKtEXqpeItigRLAHsn8Qe/06ZpXhKEP1bGPJSFXymsoFw9.04NHy
49-
- $2y$10$tJLScW1OZpOLpVllM65EI.W1QjkSIIBtz.KG8z/s.07RNb7ZWC0um
57+
- $2y$10$tJLScW1OZpOLpVllM65EI.W1QjkSIIBtz.KG8z/s.07RNb7ZWC0um
58+
chanelhutt:
59+
- $2y$10$7/GS4n5j/5TXQc5zjDzlc.2xBKwRqrsksWzcl7VKRwa.fDxzdficS
60+
- $2y$10$9mfdal67CXoVG2phPKe1s.BpAT6HQeyQIiDtStfFazkPMW2AaW6Zu
61+
- $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: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
import {
2+
AnswerChoice,
3+
MultipleChoiceQuizQuestion,
4+
QuizQuestion,
5+
QuizQuestionProvider,
6+
} from 'codedifferently-instructional';
7+
8+
export class DylanLaffertyQuiz implements QuizQuestionProvider {
9+
getProviderName(): string {
10+
return 'dylanlafferty';
11+
}
12+
13+
makeQuizQuestions(): QuizQuestion[] {
14+
return [
15+
DylanLaffertyQuiz.makeQuestion0(),
16+
DylanLaffertyQuiz.makeQuestion1(),
17+
DylanLaffertyQuiz.makeQuestion2(),
18+
];
19+
}
20+
21+
private static makeQuestion0(): QuizQuestion {
22+
return new MultipleChoiceQuizQuestion(
23+
0,
24+
'What is the Power supply unit most compared to when comparing it to a human body?',
25+
new Map<AnswerChoice, string>([
26+
[AnswerChoice.A, 'Heart'],
27+
[AnswerChoice.B, 'Arm'],
28+
[AnswerChoice.C, 'Leg'],
29+
[AnswerChoice.D, 'Brain'],
30+
]),
31+
AnswerChoice.UNANSWERED,
32+
);
33+
}
34+
private static makeQuestion1(): QuizQuestion {
35+
return new MultipleChoiceQuizQuestion(
36+
1,
37+
'What is the full name of CPU?',
38+
new Map<AnswerChoice, string>([
39+
[AnswerChoice.A, 'Central Place Unit'],
40+
[AnswerChoice.B, 'Certified Processing Unit'],
41+
[AnswerChoice.C, 'Central Processing Unit'],
42+
[AnswerChoice.D, 'Configured Procerdale Unicode'],
43+
]),
44+
AnswerChoice.UNANSWERED,
45+
);
46+
}
47+
48+
private static makeQuestion2(): QuizQuestion {
49+
return new MultipleChoiceQuizQuestion(
50+
2,
51+
'What is used to keep Short term memory in a computer?',
52+
new Map<AnswerChoice, string>([
53+
[AnswerChoice.A, 'Hard Drive'],
54+
[AnswerChoice.B, 'SSD'],
55+
[AnswerChoice.C, 'GPU'],
56+
[AnswerChoice.D, 'RAM'],
57+
]),
58+
AnswerChoice.UNANSWERED,
59+
);
60+
}
61+
}
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: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,19 @@
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 { DylanLaffertyQuiz } from './dylan_lafferty_quiz.js';
5+
import { ChanelHuttQuiz } from './Chanel_Huttquiz.js';
66
import { DavidAdenaikeQuiz } from './david_adenaike_quiz.js';
77
import { DavisDQuiz } from './davisd_quiz.js';
8+
import { EvanPhilakhongQuiz } from './evan_philakhong_quiz.js';
89
import { EzraQuiz } from './ezra_quiz.js';
10+
import { JasonWatsonQuiz } from './jason_watson_quiz.js';
911
import { Jbeyquiz } from './jbeyquiz.js';
12+
import { JeremiahWingQuiz } from './jeremiah_wing_quiz.js';
1013
import { KhaylaSaundersQuiz } from './khayla_quiz.js';
14+
import { MeikoStephensQuiz } from './meiko_stephens_quiz.js';
1115
import { MercedesMathewsQuiz } from './mercedes_mathews_quiz.js';
1216
import { RasheedMillerQuiz } from './rasheed_miller_quiz.js';
13-
import { JeremiahWingQuiz } from './jeremiah_wing_quiz.js';
1417

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

@@ -24,9 +27,12 @@ const QUIZ_PROVIDERS = [
2427
Jbeyquiz,
2528
EzraQuiz,
2629
DavidAdenaikeQuiz,
30+
EvanPhilakhongQuiz,
2731
KhaylaSaundersQuiz,
32+
DylanLaffertyQuiz,
2833
RasheedMillerQuiz,
2934
DavisDQuiz,
35+
ChanelHuttQuiz,
3036
JeremiahWingQuiz,
3137
JasonWatsonQuiz,
3238
];

0 commit comments

Comments
 (0)