Skip to content

Commit c656770

Browse files
committed
Lesson_03 quiz p
1 parent 5c071e3 commit c656770

File tree

3 files changed

+68
-1
lines changed

3 files changed

+68
-1
lines changed

lesson_03/quiz/quiz.yaml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ quiz:
5050
tommytran:
5151
- $2y$10$6Mf9m8JXRHUyCgRNPn4nceimRZVOhtmsZbOGoFnI4ZJp..RluHmwy
5252
- $2y$10$Xr6W53IVq52orDvf6.TQQuXeMGaysQdgAu1cm5DYi1NyCskG2ByPe
53-
- $2y$10$x8BG/EcIbVohTU1s/thyc.TIzlfc8f/aVZaD4/1yMpcks2OWzKKMe
53+
- $2y$10$x8BG/EcIbVohTU1s/thyc.TIzlfc8f/aVZaD4/1yMpcks2OWzKKMe
5454
zionbuchanan:
5555
- $2y$10$ufNCdP1efvioBYIih6K92uye33p5ckN/IrxfCvw4n7agHjN8aNfhe
5656
- $2y$10$Mb7LA1kqlDRWlN9jdBYvF.u1B8cmJqXWkrxQeMr/3ETRVOAzFlflG
@@ -64,3 +64,7 @@ quiz:
6464
- $2y$10$dkWnar/ZXMr9ndtRDcbTbe/HN3DhuULPoZhTx/xATi.UYQ0DUIx1W
6565
- $2y$10$.Cw9Sjf6Pf9K8EsThegQ5e8BMoJdLl40CCuJ2FKHLar1k8hVfR9fu
6666
- $2y$10$.pmOuTs0Oqjfhn9mMIQCQu7Fbe1ZOZmZIbTGqqul.hnVLqIV6bn/W
67+
pablolimonparedes:
68+
- $2y$10$Oj.VjaxLuCk3H3XGRLH99.y5LnVkVqEAS30eopxFsNfL6FQ0RRdbC
69+
- $2y$10$cs9lhS.nLe6Ym1nkgvr89Oa6Se5DafERs6MJm0t6plQ76zGlTj9JC
70+
- $2y$10$ftCSIQi1kpbWf9CYsrmjCe1H/i/NWzqTX3Jfuqi0TAPcqoCdxrk3O
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: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ import { JamesCapparellQuiz } from './james_capparell_quiz.js';
1010
import { JosephCaballeroQuiz } from './joseph_caballero_quiz.js';
1111
import { LjMcwilliamsQuiz } from './lj_mcwilliams_quiz.js';
1212
import { OyeyemiJimohQuiz } from './oyeyemi_jimoh_quiz.js';
13+
import { PabloLimonParedesQuiz } from './pablo_limon_paredes_quiz.js';
1314
import { ShawnDunsmoreQuiz } from './shawn_dunsmore_quiz.js';
1415
import { TommyTranQuiz } from './tommy.tran.quiz.js';
1516
import { XavierCruzQuiz } from './xavier_cruz_quiz.js';
@@ -36,6 +37,7 @@ const QUIZ_PROVIDERS = [
3637
ZionBuchananQuiz,
3738
ChelseaOgbonniaQuiz,
3839
TommyTranQuiz,
40+
PabloLimonParedesQuiz,
3941
];
4042

4143
@Module({

0 commit comments

Comments
 (0)