Skip to content

Commit d8e2adc

Browse files
authored
Merge branch 'main' into feature/lesson3
2 parents 3717795 + ddcf9f2 commit d8e2adc

File tree

4 files changed

+136
-1
lines changed

4 files changed

+136
-1
lines changed

lesson_03/quiz/quiz.yaml

Lines changed: 9 additions & 1 deletion
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+
kimberleehaldane:
10+
- $2y$10$7u0/PUZE4NFsRmjPtsaNOuQpXsQcuZh22wqYK5vli5LUO8wxIDR7q
11+
- $2y$10$zBW5IVw5BDBaa2PuxuyoO.kjixYznWpMXJ0a8hwO1zIYG8o5LJXAq
12+
- $2y$10$BjDUqT33QmjaSNeYJ99GCeyrjx99NSfCThB4l/KIh9PfbP4cJo03a
913
jamescapparell:
1014
- $2y$10$iLvL/AaFPzcGZrcna7umMuHqkZe1f9at/ix77NUI6uakDGNuVKQCy
1115
- $2y$10$FLxmGXJLm5EziyhA5D33ju0kUjXhiDbuUdImciLQz8lBRu5ou0hee
@@ -50,7 +54,7 @@ quiz:
5054
tommytran:
5155
- $2y$10$6Mf9m8JXRHUyCgRNPn4nceimRZVOhtmsZbOGoFnI4ZJp..RluHmwy
5256
- $2y$10$Xr6W53IVq52orDvf6.TQQuXeMGaysQdgAu1cm5DYi1NyCskG2ByPe
53-
- $2y$10$x8BG/EcIbVohTU1s/thyc.TIzlfc8f/aVZaD4/1yMpcks2OWzKKMe
57+
- $2y$10$x8BG/EcIbVohTU1s/thyc.TIzlfc8f/aVZaD4/1yMpcks2OWzKKMe
5458
zionbuchanan:
5559
- $2y$10$ufNCdP1efvioBYIih6K92uye33p5ckN/IrxfCvw4n7agHjN8aNfhe
5660
- $2y$10$Mb7LA1kqlDRWlN9jdBYvF.u1B8cmJqXWkrxQeMr/3ETRVOAzFlflG
@@ -68,3 +72,7 @@ quiz:
6872
- $2y$10$r.JmLYmaAWLZPwv6LLFWB.W823BWj7CsDaPdi5hxv4ExQyCjDq.l.
6973
- $2y$10$DcSjwFSOP.120fEp1zJgEe9J3qZiWPa0i/ofYQS6p3sG93jwCi3ci
7074
- $2y$10$O0Xy3FSVwWM3Tqeh3dP.tuv6E3OHN10siHbgJ4.iPIaZLJ1kVheC6
75+
pablolimonparedes:
76+
- $2y$10$Oj.VjaxLuCk3H3XGRLH99.y5LnVkVqEAS30eopxFsNfL6FQ0RRdbC
77+
- $2y$10$cs9lhS.nLe6Ym1nkgvr89Oa6Se5DafERs6MJm0t6plQ76zGlTj9JC
78+
- $2y$10$ftCSIQi1kpbWf9CYsrmjCe1H/i/NWzqTX3Jfuqi0TAPcqoCdxrk3O
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 KimberleeHaldaneQuiz implements QuizQuestionProvider {
9+
getProviderName(): string {
10+
return 'kimberleehaldane';
11+
}
12+
13+
makeQuizQuestions(): QuizQuestion[] {
14+
return [
15+
KimberleeHaldaneQuiz.makeQuestion0(),
16+
KimberleeHaldaneQuiz.makeQuestion1(),
17+
KimberleeHaldaneQuiz.makeQuestion2(),
18+
];
19+
}
20+
21+
private static makeQuestion0(): QuizQuestion {
22+
return new MultipleChoiceQuizQuestion(
23+
0,
24+
'Which command tells you where you are in the terminal?',
25+
new Map<AnswerChoice, string>([
26+
[AnswerChoice.A, 'pwd'],
27+
[AnswerChoice.B, 'ls'],
28+
[AnswerChoice.C, 'cd'],
29+
[AnswerChoice.D, 'mkdir'],
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+
'Why do we use IDEs?',
39+
new Map<AnswerChoice, string>([
40+
[AnswerChoice.A, 'hunting insects'],
41+
[AnswerChoice.B, 'testing powerlines'],
42+
[AnswerChoice.C, 'editing and refactoring code'],
43+
[AnswerChoice.D, 'all of the above'],
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+
'In the vscode terminal, what command is used to verify that you created a branch?',
53+
new Map<AnswerChoice, string>([
54+
[AnswerChoice.A, 'git branch -a'],
55+
[AnswerChoice.B, 'git merge main'],
56+
[AnswerChoice.C, 'git checkout -b new_feature'],
57+
[AnswerChoice.D, 'git remote -v'],
58+
]),
59+
AnswerChoice.UNANSWERED,
60+
); // Replace `UNANSWERED` with the correct answer.
61+
}
62+
}
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 PabloLimonParedesQuiz implements QuizQuestionProvider {
9+
getProviderName(): string {
10+
return 'pablolimonparedes';
11+
}
12+
13+
makeQuizQuestions(): QuizQuestion[] {
14+
return [
15+
PabloLimonParedesQuiz.makeQuestion0(),
16+
PabloLimonParedesQuiz.makeQuestion1(),
17+
PabloLimonParedesQuiz.makeQuestion2(),
18+
];
19+
}
20+
21+
private static makeQuestion0(): QuizQuestion {
22+
return new MultipleChoiceQuizQuestion(
23+
0,
24+
'What does git checkout -b branch command do?',
25+
new Map<AnswerChoice, string>([
26+
[AnswerChoice.A, 'Creates a pull request'],
27+
[AnswerChoice.B, 'Creates a new branch and switches you to it'],
28+
[AnswerChoice.C, 'To move to another branch'],
29+
[AnswerChoice.D, 'Delete a branch'],
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 the man git command do?',
39+
new Map<AnswerChoice, string>([
40+
[AnswerChoice.A, 'Create a new directory'],
41+
[AnswerChoice.B, 'Shows history of commands'],
42+
[AnswerChoice.C, 'Get to main branch'],
43+
[AnswerChoice.D, 'Access the manual for git'],
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 do you clear up your terminal if your screen is cramped?',
52+
new Map<AnswerChoice, string>([
53+
[AnswerChoice.A, 'command + k'],
54+
[AnswerChoice.B, 'CTRL + space'],
55+
[AnswerChoice.C, 'command + shift + P'],
56+
[AnswerChoice.D, 'command + T'],
57+
]),
58+
AnswerChoice.UNANSWERED,
59+
); // Replace `UNANSWERED` with the correct answer.
60+
}
61+
}

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,10 @@ import { ChigazoGrahamsQuiz } from './chigazo_graham_quiz.js';
88
import { DasiaEnglishQuiz } from './dasia_english_quiz.js';
99
import { JamesCapparellQuiz } from './james_capparell_quiz.js';
1010
import { JosephCaballeroQuiz } from './joseph_caballero_quiz.js';
11+
import { KimberleeHaldaneQuiz } from './kimberlee_haldane_quiz.js';
1112
import { LjMcwilliamsQuiz } from './lj_mcwilliams_quiz.js';
1213
import { OyeyemiJimohQuiz } from './oyeyemi_jimoh_quiz.js';
14+
import { PabloLimonParedesQuiz } from './pablo_limon_paredes_quiz.js';
1315
import { ShawnDunsmoreQuiz } from './shawn_dunsmore_quiz.js';
1416
import { TommyTranQuiz } from './tommy.tran.quiz.js';
1517
import { XavierCruzQuiz } from './xavier_cruz_quiz.js';
@@ -28,6 +30,7 @@ const QUIZ_PROVIDERS = [
2830
JosephCaballeroQuiz,
2931
AngelicaCQuiz,
3032
OyeyemiJimohQuiz,
33+
KimberleeHaldaneQuiz,
3134
ShawnDunsmoreQuiz,
3235
DasiaEnglishQuiz,
3336
ChigazoGrahamsQuiz,
@@ -38,6 +41,7 @@ const QUIZ_PROVIDERS = [
3841
ChelseaOgbonniaQuiz,
3942
TommyTranQuiz,
4043
HummadTanweerQuiz
44+
PabloLimonParedesQuiz,
4145
];
4246

4347
@Module({

0 commit comments

Comments
 (0)