Skip to content

Commit 5c0cb38

Browse files
authored
Merge branch 'main' into Work03
2 parents bd6aa4f + a562f3e commit 5c0cb38

File tree

5 files changed

+241
-0
lines changed

5 files changed

+241
-0
lines changed

lesson_03/quiz/quiz.yaml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,10 @@ quiz:
3434
- $2y$10$hRwUbEYSqz761B.cG79T2uYsYPiEtKu.JgD3Aj7.Mofx27TtX5YHa
3535
- $2y$10$qE/gXxpq62FEGJOJd9MDA.vpDYLTNSsZbqZLpD/0368CKkcNBzW1y
3636
- $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
3741
montezbradley:
3842
- $2y$10$W3vj0qJcRoNY9u5GNYLddOMlwMSfHSXrTwfLMVUSDTqgQFeqLLQbG
3943
- $2y$10$Cwm6LN1BoRoAEPiVPl4lLOV3o4GY84GsQEUS3.SwBmyvOHebr2r9e
@@ -50,6 +54,15 @@ quiz:
5054
- $2y$10$s9Dh1bJak9WjT3sziuq1KeloNnDCuhgjsT6HA.m/fxjJSrJMK0lOu
5155
- $2y$10$Q58g8gsWhL1Zhje9WoLHKuqF44I3NK16i..EQ2SYVAa.PEkowhgOK
5256
- $2y$10$U3eJ/7JtxbPlofL.3K08AeKmVTKWLvyhNCcS.cgF6gNn/cmm5Psia
57+
awatanana:
58+
- $2y$10$uFNj.ocmiXzuuNrZUoIL/OPDaNcu/39W9.BsAZ6zuN7QZLjHik8VG
59+
- $2y$10$TSqcVRhLIrH319zzXZJCMO9TY/Oz4IU96ZBEVk36y98DiwDSZun9G
60+
- $2y$10$MbdEN2Vo/.5Mf5Gc7w.MMuqpFNbBfjXAUTf.PnwzWISzDhcq/Z/Sq
61+
- $2y$10$V6g.2vivPqZpqbteSQ9eZea9LIgRmAXcFLHuFMuGZR7rBts8zePVu
62+
oliviajames:
63+
- $2y$10$XNIaT3YK/NmvATnebmrOHuIoSqsGlfqlW82R2NfFxEJn1CWmmzgzm
64+
- $2y$10$mdHWON2e8lS8HUQZkp5W0OoAd5xkdUCouXCeFPnoz3Ilpjv5Vb9uu
65+
- $2y$10$hGQy6LkNRkXfT9Vk67c4meGH.99yLT73.HKfzWqsgTKHLHerzI7ey
5366
evanphilakhong:
5467
- $2y$10$3ERfjtWq6bYipHm0QGOuDe8oeXth3dnmfxT8g5P65sc8m4EivQNY.
5568
- $2y$10$cr3WSpMx9zljgMYCqz4uYOAMT2iOzDaRsnoQi6CfPu/761F.1EpwW
Lines changed: 77 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,77 @@
1+
import {
2+
AnswerChoice,
3+
MultipleChoiceQuizQuestion,
4+
QuizQuestion,
5+
QuizQuestionProvider,
6+
} from 'codedifferently-instructional';
7+
8+
export class AnanatawaQuiz implements QuizQuestionProvider {
9+
getProviderName(): string {
10+
return 'awatanana';
11+
}
12+
13+
makeQuizQuestions(): QuizQuestion[] {
14+
return [
15+
AnanatawaQuiz.makeQuestion0(),
16+
AnanatawaQuiz.makeQuestion1(),
17+
AnanatawaQuiz.makeQuestion2(),
18+
AnanatawaQuiz.makeQuestion3(),
19+
];
20+
}
21+
22+
private static makeQuestion0(): QuizQuestion {
23+
return new MultipleChoiceQuizQuestion(
24+
0,
25+
'What is a pull request?',
26+
new Map<AnswerChoice, string>([
27+
[AnswerChoice.A,'When someone asks to add their changes to the main project.'],
28+
[AnswerChoice.B,'A personal copy of someone elses project that you can make changes to.'],
29+
[AnswerChoice.C,'A toolbox where you can write, commit, and push code.'],
30+
[AnswerChoice.D, 'A request to pull the plug on a project.'],
31+
]),
32+
AnswerChoice.UNANSWERED,
33+
); // Replace `UNANSWERED` with the correct answer.
34+
}
35+
36+
private static makeQuestion1(): QuizQuestion {
37+
return new MultipleChoiceQuizQuestion(
38+
1,
39+
'What does the command git status do?',
40+
new Map<AnswerChoice, string>([
41+
[AnswerChoice.A, 'Make a new git repository'],
42+
[AnswerChoice.B, 'Checks the status of your repository'],
43+
[AnswerChoice.C, 'Stage a file for commit'],
44+
[AnswerChoice.D, 'List all branches in the repository'],
45+
]),
46+
AnswerChoice.UNANSWERED,
47+
); // Replace `UNANSWERED` with the correct answer.
48+
}
49+
50+
private static makeQuestion2(): QuizQuestion {
51+
return new MultipleChoiceQuizQuestion(
52+
2,
53+
'What does the command git pull origin do?',
54+
new Map<AnswerChoice, string>([
55+
[AnswerChoice.A, 'Push the latest changes from the remote repo.'],
56+
[AnswerChoice.B, 'Pull the latest changes from the remote repo.'],
57+
[AnswerChoice.C, 'Display the definition for Git.'],
58+
[AnswerChoice.D, 'Stage a file for commit.'],
59+
]),
60+
AnswerChoice.UNANSWERED,
61+
); // Replace `UNANSWERED` with the correct answer.
62+
}
63+
64+
private static makeQuestion3(): QuizQuestion {
65+
return new MultipleChoiceQuizQuestion(
66+
3,
67+
'What was the first homework assignment that Mr. Mays assigned Cohort 25.1?',
68+
new Map<AnswerChoice, string>([
69+
[AnswerChoice.A, 'Make an account on GitHub.com'],
70+
[AnswerChoice.B, 'Convert a Markdown file into HTML.'],
71+
[AnswerChoice.C, 'Create a personal README and submit via GitHub.'],
72+
[AnswerChoice.D,'Create a personal README and push to Github via VS Code.'],
73+
]),
74+
AnswerChoice.UNANSWERED,
75+
); // Replace `UNANSWERED` with the correct answer.
76+
}
77+
}
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: 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: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,15 @@ import { EvanPhilakhongQuiz } from './evan_philakhong_quiz.js';
1010
import { EzraQuiz } from './ezra_quiz.js';
1111
import { JasonWatsonQuiz } from './jason_watson_quiz.js';
1212
import { Jbeyquiz } from './jbeyquiz.js';
13+
import { KarensQuiz } from './karen_alabi_quiz.js';
1314
import { JeremiahWingQuiz } from './jeremiah_wing_quiz.js';
1415
import { KhaylaSaundersQuiz } from './khayla_quiz.js';
1516
import { MeikoStephensQuiz } from './meiko_stephens_quiz.js';
1617
import { MercedesMathewsQuiz } from './mercedes_mathews_quiz.js';
18+
import { OliviaJamesQuiz } from './olivia_james_quiz.js';
1719
import { MontezBradleyQuiz } from './montez_quiz.js';
1820
import { RasheedMillerQuiz } from './rasheed_miller_quiz.js';
21+
import { AnanatawaQuiz } from './ananatawa_quiz.js';
1922

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

@@ -27,6 +30,7 @@ const QUIZ_PROVIDERS = [
2730
MeikoStephensQuiz,
2831
MercedesMathewsQuiz,
2932
Jbeyquiz,
33+
KarensQuiz,
3034
MontezBradleyQuiz,
3135
Bryanasingletonbarnhart,
3236
EzraQuiz,
@@ -36,6 +40,8 @@ const QUIZ_PROVIDERS = [
3640
DylanLaffertyQuiz,
3741
RasheedMillerQuiz,
3842
DavisDQuiz,
43+
AnanatawaQuiz,
44+
OliviaJamesQuiz,
3945
ChanelHuttQuiz,
4046
JeremiahWingQuiz,
4147
JasonWatsonQuiz,

0 commit comments

Comments
 (0)