Skip to content

Lesson_03 quiz Pablo Limon-paredes #134

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Oct 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion lesson_03/quiz/quiz.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ quiz:
tommytran:
- $2y$10$6Mf9m8JXRHUyCgRNPn4nceimRZVOhtmsZbOGoFnI4ZJp..RluHmwy
- $2y$10$Xr6W53IVq52orDvf6.TQQuXeMGaysQdgAu1cm5DYi1NyCskG2ByPe
- $2y$10$x8BG/EcIbVohTU1s/thyc.TIzlfc8f/aVZaD4/1yMpcks2OWzKKMe
- $2y$10$x8BG/EcIbVohTU1s/thyc.TIzlfc8f/aVZaD4/1yMpcks2OWzKKMe
zionbuchanan:
- $2y$10$ufNCdP1efvioBYIih6K92uye33p5ckN/IrxfCvw4n7agHjN8aNfhe
- $2y$10$Mb7LA1kqlDRWlN9jdBYvF.u1B8cmJqXWkrxQeMr/3ETRVOAzFlflG
Expand All @@ -64,3 +64,7 @@ quiz:
- $2y$10$dkWnar/ZXMr9ndtRDcbTbe/HN3DhuULPoZhTx/xATi.UYQ0DUIx1W
- $2y$10$.Cw9Sjf6Pf9K8EsThegQ5e8BMoJdLl40CCuJ2FKHLar1k8hVfR9fu
- $2y$10$.pmOuTs0Oqjfhn9mMIQCQu7Fbe1ZOZmZIbTGqqul.hnVLqIV6bn/W
pablolimonparedes:
- $2y$10$Oj.VjaxLuCk3H3XGRLH99.y5LnVkVqEAS30eopxFsNfL6FQ0RRdbC
- $2y$10$cs9lhS.nLe6Ym1nkgvr89Oa6Se5DafERs6MJm0t6plQ76zGlTj9JC
- $2y$10$ftCSIQi1kpbWf9CYsrmjCe1H/i/NWzqTX3Jfuqi0TAPcqoCdxrk3O
61 changes: 61 additions & 0 deletions lesson_03/quiz/src/quizzes/pablo_limon_paredes_quiz.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
import {
AnswerChoice,
MultipleChoiceQuizQuestion,
QuizQuestion,
QuizQuestionProvider,
} from 'codedifferently-instructional';

export class PabloLimonParedesQuiz implements QuizQuestionProvider {
getProviderName(): string {
return 'pablolimonparedes';
}

makeQuizQuestions(): QuizQuestion[] {
return [
PabloLimonParedesQuiz.makeQuestion0(),
PabloLimonParedesQuiz.makeQuestion1(),
PabloLimonParedesQuiz.makeQuestion2(),
];
}

private static makeQuestion0(): QuizQuestion {
return new MultipleChoiceQuizQuestion(
0,
'What does git checkout -b branch command do?',
new Map<AnswerChoice, string>([
[AnswerChoice.A, 'Creates a pull request'],
[AnswerChoice.B, 'Creates a new branch and switches you to it'],
[AnswerChoice.C, 'To move to another branch'],
[AnswerChoice.D, 'Delete a branch'],
]),
AnswerChoice.UNANSWERED,
); // Replace `UNANSWERED` with the correct answer.
}

private static makeQuestion1(): QuizQuestion {
return new MultipleChoiceQuizQuestion(
1,
'What does the man git command do?',
new Map<AnswerChoice, string>([
[AnswerChoice.A, 'Create a new directory'],
[AnswerChoice.B, 'Shows history of commands'],
[AnswerChoice.C, 'Get to main branch'],
[AnswerChoice.D, 'Access the manual for git'],
]),
AnswerChoice.UNANSWERED,
); // Replace `UNANSWERED` with the correct answer.
}
private static makeQuestion2(): QuizQuestion {
return new MultipleChoiceQuizQuestion(
2,
'How do you clear up your terminal if your screen is cramped?',
new Map<AnswerChoice, string>([
[AnswerChoice.A, 'command + k'],
[AnswerChoice.B, 'CTRL + space'],
[AnswerChoice.C, 'command + shift + P'],
[AnswerChoice.D, 'command + T'],
]),
AnswerChoice.UNANSWERED,
); // Replace `UNANSWERED` with the correct answer.
}
}
2 changes: 2 additions & 0 deletions lesson_03/quiz/src/quizzes/quizzes.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import { JamesCapparellQuiz } from './james_capparell_quiz.js';
import { JosephCaballeroQuiz } from './joseph_caballero_quiz.js';
import { LjMcwilliamsQuiz } from './lj_mcwilliams_quiz.js';
import { OyeyemiJimohQuiz } from './oyeyemi_jimoh_quiz.js';
import { PabloLimonParedesQuiz } from './pablo_limon_paredes_quiz.js';
import { ShawnDunsmoreQuiz } from './shawn_dunsmore_quiz.js';
import { TommyTranQuiz } from './tommy.tran.quiz.js';
import { XavierCruzQuiz } from './xavier_cruz_quiz.js';
Expand All @@ -36,6 +37,7 @@ const QUIZ_PROVIDERS = [
ZionBuchananQuiz,
ChelseaOgbonniaQuiz,
TommyTranQuiz,
PabloLimonParedesQuiz,
];

@Module({
Expand Down