Skip to content

Commit 373418d

Browse files
authored
Merge branch 'main' into Lesson03
2 parents f4ff260 + bf279ba commit 373418d

File tree

7 files changed

+348
-0
lines changed

7 files changed

+348
-0
lines changed

lesson_03/quiz/quiz.yaml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ quiz:
66
anotherone:
77
- $2y$10$8eHSzy3aCu4Ry3LzO9nWCeGpofSxsNVbnF.wCfn3ZADwQ6MEtN/KK
88
- $2y$10$dGB0CGv7.XQC5OqfyY6iXOiJsdVyxU3ve5YE0gt4m2I8P8H13lNXa
9+
bryanasingletonbarnhart:
10+
- $2y$10$1mLxFIqlwiKqivImNbEYE.khunzQLkqDL/40Yj39J6vJA0rLfwDuK
11+
- $2y$10$sIjoP0Jqf5apX3Uk2tdy0.yt..CIanJbbDIA7Y98KtUSNd4iq4oRO
12+
- $2y$10$rMn2M8gyKNbFmH4zTvGwrOlJJ4Jp.CtQBr1nYNTKuMYZ4wXK13bOq
913
ezraquiz:
1014
- $2y$10$fisFjMsmMwzlj3.PELyBNeupdruYROU00dwq296pg0VfHo05SSkta
1115
- $2y$10$.Z44VoTaxQSdPEx7RatO6OVCw1ff6ohS0kZnCrHEcFnElIgkfjP0u
@@ -30,6 +34,14 @@ quiz:
3034
- $2y$10$hRwUbEYSqz761B.cG79T2uYsYPiEtKu.JgD3Aj7.Mofx27TtX5YHa
3135
- $2y$10$qE/gXxpq62FEGJOJd9MDA.vpDYLTNSsZbqZLpD/0368CKkcNBzW1y
3236
- $2y$10$yI/2BgOyqQfLdHM3ixPE5uLu89su/sHRJB2c5szDFIAYXDhRakS.C
37+
karenalabi:
38+
- $2y$10$oxPNDhhyNt9BpV3g7RPmgOeQybzmsZIP5SYJkpAga6CnYbHVOqrei
39+
- $2y$10$q4dA/UIgxjzjYKK1p4MRDugTEWajBN5WAOxJflQXXI2M/8gKegXP.
40+
- $2y$10$czzmXmK7hipnM0mrjyqA/.QxgJgryPU/rNX3dof8aw2npU9BQ/4ZC
41+
montezbradley:
42+
- $2y$10$W3vj0qJcRoNY9u5GNYLddOMlwMSfHSXrTwfLMVUSDTqgQFeqLLQbG
43+
- $2y$10$Cwm6LN1BoRoAEPiVPl4lLOV3o4GY84GsQEUS3.SwBmyvOHebr2r9e
44+
- $2y$10$DT/fZKklOTHbpUEuzRg8nuNbDjapMm81po74KxIJ4htF3jR9VhmmC
3345
davidadenaike:
3446
- $2y$10$CCxBimjXsumkjTLWRWqibue0VeGel6Idfb/2q3y.mIuKHbkWVTsx6
3547
- $2y$10$/z0Ri9Fg7pOXUFYsOErj.Ol8Hxcy7zwqWezLTMWVtFv6tzvkCrJti
@@ -43,6 +55,10 @@ quiz:
4355
- $2y$10$TSqcVRhLIrH319zzXZJCMO9TY/Oz4IU96ZBEVk36y98DiwDSZun9G
4456
- $2y$10$MbdEN2Vo/.5Mf5Gc7w.MMuqpFNbBfjXAUTf.PnwzWISzDhcq/Z/Sq
4557
- $2y$10$V6g.2vivPqZpqbteSQ9eZea9LIgRmAXcFLHuFMuGZR7rBts8zePVu
58+
oliviajames:
59+
- $2y$10$XNIaT3YK/NmvATnebmrOHuIoSqsGlfqlW82R2NfFxEJn1CWmmzgzm
60+
- $2y$10$mdHWON2e8lS8HUQZkp5W0OoAd5xkdUCouXCeFPnoz3Ilpjv5Vb9uu
61+
- $2y$10$hGQy6LkNRkXfT9Vk67c4meGH.99yLT73.HKfzWqsgTKHLHerzI7ey
4662
evanphilakhong:
4763
- $2y$10$3ERfjtWq6bYipHm0QGOuDe8oeXth3dnmfxT8g5P65sc8m4EivQNY.
4864
- $2y$10$cr3WSpMx9zljgMYCqz4uYOAMT2iOzDaRsnoQi6CfPu/761F.1EpwW
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 Bryanasingletonbarnhart implements QuizQuestionProvider {
9+
getProviderName(): string {
10+
return 'bryanasingletonbarnhart';
11+
}
12+
13+
makeQuizQuestions(): QuizQuestion[] {
14+
return [
15+
Bryanasingletonbarnhart.makeQuestion0(),
16+
Bryanasingletonbarnhart.makeQuestion1(),
17+
Bryanasingletonbarnhart.makeQuestion2(),
18+
];
19+
}
20+
21+
private static makeQuestion0(): QuizQuestion {
22+
return new MultipleChoiceQuizQuestion(
23+
0,
24+
'Which component is consider the brain?',
25+
new Map<AnswerChoice, string>([
26+
[AnswerChoice.A, 'Case'],
27+
[AnswerChoice.B, 'Power Supply'],
28+
[AnswerChoice.C, 'CPU'],
29+
[AnswerChoice.D, 'Motherboard'],
30+
]),
31+
AnswerChoice.UNANSWERED,
32+
); // Replace `UNANSWERED` with the correct answer.
33+
}
34+
35+
private static makeQuestion1(): QuizQuestion {
36+
return new MultipleChoiceQuizQuestion(
37+
1,
38+
'What does SDD stand for?',
39+
new Map<AnswerChoice, string>([
40+
[AnswerChoice.A, 'Same Day Delivery'],
41+
[AnswerChoice.B, 'Solid State Drive'],
42+
[AnswerChoice.C, 'System Design Document'],
43+
[AnswerChoice.D, 'Software Development Document'],
44+
]),
45+
AnswerChoice.UNANSWERED,
46+
); // Replace `UNANSWERED` with the correct answer.
47+
}
48+
private static makeQuestion2(): QuizQuestion {
49+
return new MultipleChoiceQuizQuestion(
50+
2,
51+
'How many bits is in a byte?',
52+
new Map<AnswerChoice, string>([
53+
[AnswerChoice.A, '2'],
54+
[AnswerChoice.B, '40'],
55+
[AnswerChoice.C, '1000'],
56+
[AnswerChoice.D, '8'],
57+
]),
58+
AnswerChoice.UNANSWERED,
59+
); // Replace `UNANSWERED` with the correct answer.
60+
}
61+
}
Lines changed: 83 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,83 @@
1+
import {
2+
AnswerChoice,
3+
MultipleChoiceQuizQuestion,
4+
QuizQuestion,
5+
QuizQuestionProvider,
6+
} from 'codedifferently-instructional';
7+
8+
export class KarensQuiz implements QuizQuestionProvider {
9+
getProviderName(): string {
10+
return 'karenalabi';
11+
}
12+
13+
makeQuizQuestions(): QuizQuestion[] {
14+
return [
15+
KarensQuiz.makeQuestion0(),
16+
KarensQuiz.makeQuestion1(),
17+
KarensQuiz.makeQuestion2(),
18+
];
19+
}
20+
21+
private static makeQuestion0(): QuizQuestion {
22+
return new MultipleChoiceQuizQuestion(
23+
0,
24+
'What does GPU stand for?',
25+
new Map<AnswerChoice, string>([
26+
[AnswerChoice.A, 'Graphical Processing Unit'],
27+
[AnswerChoice.B, 'Gaming Processing Unit'],
28+
[AnswerChoice.C, 'General Preserving Unit'],
29+
[AnswerChoice.D, 'George P. Underwood'],
30+
]),
31+
AnswerChoice.UNANSWERED,
32+
); // Replace `UNANSWERED` with the correct answer.
33+
}
34+
35+
private static makeQuestion1(): QuizQuestion {
36+
return new MultipleChoiceQuizQuestion(
37+
1,
38+
'Which of the following best describes a computer?',
39+
new Map<AnswerChoice, string>([
40+
[AnswerChoice.A, 'Karen from Spongebob'],
41+
[
42+
AnswerChoice.B,
43+
'A machine that automatically transforms input data into output data using pre-programmed instructions',
44+
],
45+
[
46+
AnswerChoice.C,
47+
'A high-tech calculator that only performs basic arithmetic operations like addition and subtraction, making it useful only for solving math problems',
48+
],
49+
[
50+
AnswerChoice.D,
51+
'A microwave with a keyboard that heats up data instead of food',
52+
],
53+
]),
54+
AnswerChoice.UNANSWERED,
55+
); // Provide the correct answer.
56+
}
57+
58+
private static makeQuestion2(): QuizQuestion {
59+
return new MultipleChoiceQuizQuestion(
60+
2,
61+
'What is the motherboard?',
62+
new Map<AnswerChoice, string>([
63+
[
64+
AnswerChoice.A,
65+
'A big chip that controls how fast your computer runs.',
66+
],
67+
[
68+
AnswerChoice.B,
69+
'The part of the computer that generates electricity to power all the other components.',
70+
],
71+
[
72+
AnswerChoice.C,
73+
'The main circuit board of a computer that houses the CPU, memory, and other essential components.',
74+
],
75+
[
76+
AnswerChoice.D,
77+
'The board that a mother uses to control the computer.',
78+
],
79+
]),
80+
AnswerChoice.UNANSWERED,
81+
);
82+
}
83+
}
Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
import {
2+
AnswerChoice,
3+
MultipleChoiceQuizQuestion,
4+
QuizQuestion,
5+
QuizQuestionProvider,
6+
} from 'codedifferently-instructional';
7+
8+
export class MontezBradleyQuiz implements QuizQuestionProvider {
9+
getProviderName(): string {
10+
return 'montezbradley';
11+
}
12+
13+
makeQuizQuestions(): QuizQuestion[] {
14+
return [
15+
MontezBradleyQuiz.makeQuestion0(),
16+
MontezBradleyQuiz.makeQuestion1(),
17+
MontezBradleyQuiz.makeQuestion2(),
18+
];
19+
}
20+
21+
private static makeQuestion0(): QuizQuestion {
22+
return new MultipleChoiceQuizQuestion(
23+
0,
24+
'What Git command is used to check the current status of a repository?',
25+
new Map<AnswerChoice, string>([
26+
[AnswerChoice.A, 'git status'],
27+
[AnswerChoice.B, 'git info'],
28+
[AnswerChoice.C, 'git check-status'],
29+
[AnswerChoice.D, 'git current'],
30+
]),
31+
AnswerChoice.UNANSWERED,
32+
); // Replace `UNANSWERED` with the correct answer.
33+
}
34+
35+
private static makeQuestion1(): QuizQuestion {
36+
return new MultipleChoiceQuizQuestion(
37+
1,
38+
'What command is used to save all changes and create a commit in Git?',
39+
new Map<AnswerChoice, string>([
40+
[AnswerChoice.A, 'git status'],
41+
[AnswerChoice.B, 'git info'],
42+
[AnswerChoice.C, 'git check-status'],
43+
[AnswerChoice.D, 'git add git commit -m "Your commit message'],
44+
]),
45+
AnswerChoice.UNANSWERED,
46+
); // Replace `UNANSWERED` with the correct answer.
47+
}
48+
49+
private static makeQuestion2(): QuizQuestion {
50+
return new MultipleChoiceQuizQuestion(
51+
2,
52+
'What Git command is used to check the current status of a repository',
53+
new Map<AnswerChoice, string>([
54+
[AnswerChoice.A, 'git status'],
55+
[AnswerChoice.B, 'git verify'],
56+
[AnswerChoice.C, 'git info'],
57+
[AnswerChoice.D, 'git check-status'],
58+
]),
59+
AnswerChoice.UNANSWERED,
60+
);
61+
}
62+
63+
}
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 OliviaJamesQuiz implements QuizQuestionProvider {
9+
getProviderName(): string {
10+
return 'oliviajames';
11+
}
12+
13+
makeQuizQuestions(): QuizQuestion[] {
14+
return [
15+
OliviaJamesQuiz.makeQuestion0(),
16+
OliviaJamesQuiz.makeQuestion1(),
17+
OliviaJamesQuiz.makeQuestion2(),
18+
];
19+
}
20+
21+
private static makeQuestion0(): QuizQuestion {
22+
return new MultipleChoiceQuizQuestion(
23+
0,
24+
'Which CSS property is used to change the font size of an element?',
25+
new Map<AnswerChoice, string>([
26+
[AnswerChoice.A, 'text-size'],
27+
[AnswerChoice.B, 'font-size'],
28+
[AnswerChoice.C, 'size'],
29+
[AnswerChoice.D, 'font-weight'],
30+
]),
31+
AnswerChoice.UNANSWERED,
32+
);
33+
}
34+
35+
private static makeQuestion1(): QuizQuestion {
36+
return new MultipleChoiceQuizQuestion(
37+
1,
38+
'Which of the following is the correct syntax for a CSS comment??',
39+
new Map<AnswerChoice, string>([
40+
[AnswerChoice.A, '// This is a comment'],
41+
[AnswerChoice.B, ' /* This is a comment */'],
42+
[AnswerChoice.C, '# This is a comment'],
43+
[AnswerChoice.D, '<!-- This is a comment -->'],
44+
]),
45+
AnswerChoice.UNANSWERED,
46+
);
47+
}
48+
49+
private static makeQuestion2(): QuizQuestion {
50+
return new MultipleChoiceQuizQuestion(
51+
2,
52+
'Which tag is used to create an unordered list in HTML?',
53+
new Map<AnswerChoice, string>([
54+
[AnswerChoice.A, '<ol>'],
55+
[AnswerChoice.B, '<ul>'],
56+
[AnswerChoice.C, '<li>'],
57+
[AnswerChoice.D, '<list>'],
58+
]),
59+
AnswerChoice.UNANSWERED,
60+
);
61+
}
62+
}

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

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import { Module } from '@nestjs/common';
2+
import { Bryanasingletonbarnhart } from './ bryana_singleton-barnhart_quiz.js';
23
import { AnotherQuiz } from './another_quiz.js';
34
import { AnthonyMaysQuiz } from './anthony_mays_quiz.js';
45
import { DylanLaffertyQuiz } from './dylan_lafferty_quiz.js';
@@ -8,10 +9,13 @@ import { EvanPhilakhongQuiz } from './evan_philakhong_quiz.js';
89
import { EzraQuiz } from './ezra_quiz.js';
910
import { JasonWatsonQuiz } from './jason_watson_quiz.js';
1011
import { Jbeyquiz } from './jbeyquiz.js';
12+
import { KarensQuiz } from './karen_alabi_quiz.js';
1113
import { JeremiahWingQuiz } from './jeremiah_wing_quiz.js';
1214
import { KhaylaSaundersQuiz } from './khayla_quiz.js';
1315
import { MeikoStephensQuiz } from './meiko_stephens_quiz.js';
1416
import { MercedesMathewsQuiz } from './mercedes_mathews_quiz.js';
17+
import { OliviaJamesQuiz } from './olivia_james_quiz.js';
18+
import { MontezBradleyQuiz } from './montez_quiz.js';
1519
import { RasheedMillerQuiz } from './rasheed_miller_quiz.js';
1620
import { AnanatawaQuiz } from './ananatawa_quiz.js';
1721

@@ -25,13 +29,17 @@ const QUIZ_PROVIDERS = [
2529
MeikoStephensQuiz,
2630
MercedesMathewsQuiz,
2731
Jbeyquiz,
32+
KarensQuiz,
33+
MontezBradleyQuiz,
34+
Bryanasingletonbarnhart,
2835
EzraQuiz,
2936
DavidAdenaikeQuiz,
3037
EvanPhilakhongQuiz,
3138
KhaylaSaundersQuiz,
3239
DylanLaffertyQuiz,
3340
RasheedMillerQuiz,
3441
AnanatawaQuiz,
42+
OliviaJamesQuiz,
3543
ChanelHuttQuiz,
3644
JeremiahWingQuiz,
3745
JasonWatsonQuiz,

0 commit comments

Comments
 (0)