Skip to content

Commit

Permalink
Merge branch 'main' into nilejack-lesson_03
Browse files Browse the repository at this point in the history
  • Loading branch information
nilejack authored Oct 3, 2024
2 parents c3861c7 + ddcf9f2 commit 8f70d36
Show file tree
Hide file tree
Showing 4 changed files with 140 additions and 1 deletion.
11 changes: 10 additions & 1 deletion lesson_03/quiz/quiz.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ quiz:
anotherone:
- $2y$10$8eHSzy3aCu4Ry3LzO9nWCeGpofSxsNVbnF.wCfn3ZADwQ6MEtN/KK
- $2y$10$dGB0CGv7.XQC5OqfyY6iXOiJsdVyxU3ve5YE0gt4m2I8P8H13lNXa
kimberleehaldane:
- $2y$10$7u0/PUZE4NFsRmjPtsaNOuQpXsQcuZh22wqYK5vli5LUO8wxIDR7q
- $2y$10$zBW5IVw5BDBaa2PuxuyoO.kjixYznWpMXJ0a8hwO1zIYG8o5LJXAq
- $2y$10$BjDUqT33QmjaSNeYJ99GCeyrjx99NSfCThB4l/KIh9PfbP4cJo03a
jamescapparell:
- $2y$10$iLvL/AaFPzcGZrcna7umMuHqkZe1f9at/ix77NUI6uakDGNuVKQCy
- $2y$10$FLxmGXJLm5EziyhA5D33ju0kUjXhiDbuUdImciLQz8lBRu5ou0hee
Expand Down Expand Up @@ -54,7 +58,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 @@ -69,3 +73,8 @@ quiz:
- $2y$10$.Cw9Sjf6Pf9K8EsThegQ5e8BMoJdLl40CCuJ2FKHLar1k8hVfR9fu
- $2y$10$.pmOuTs0Oqjfhn9mMIQCQu7Fbe1ZOZmZIbTGqqul.hnVLqIV6bn/W

pablolimonparedes:
- $2y$10$Oj.VjaxLuCk3H3XGRLH99.y5LnVkVqEAS30eopxFsNfL6FQ0RRdbC
- $2y$10$cs9lhS.nLe6Ym1nkgvr89Oa6Se5DafERs6MJm0t6plQ76zGlTj9JC
- $2y$10$ftCSIQi1kpbWf9CYsrmjCe1H/i/NWzqTX3Jfuqi0TAPcqoCdxrk3O

62 changes: 62 additions & 0 deletions lesson_03/quiz/src/quizzes/kimberlee_haldane_quiz.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
import {
AnswerChoice,
MultipleChoiceQuizQuestion,
QuizQuestion,
QuizQuestionProvider,
} from 'codedifferently-instructional';

export class KimberleeHaldaneQuiz implements QuizQuestionProvider {
getProviderName(): string {
return 'kimberleehaldane';
}

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

private static makeQuestion0(): QuizQuestion {
return new MultipleChoiceQuizQuestion(
0,
'Which command tells you where you are in the terminal?',
new Map<AnswerChoice, string>([
[AnswerChoice.A, 'pwd'],
[AnswerChoice.B, 'ls'],
[AnswerChoice.C, 'cd'],
[AnswerChoice.D, 'mkdir'],
]),
AnswerChoice.UNANSWERED,
); // Replace `UNANSWERED` with the correct answer.
}

private static makeQuestion1(): QuizQuestion {
return new MultipleChoiceQuizQuestion(
1,
'Why do we use IDEs?',
new Map<AnswerChoice, string>([
[AnswerChoice.A, 'hunting insects'],
[AnswerChoice.B, 'testing powerlines'],
[AnswerChoice.C, 'editing and refactoring code'],
[AnswerChoice.D, 'all of the above'],
]),
AnswerChoice.UNANSWERED,
); // Replace `UNANSWERED` with the correct answer.
}

private static makeQuestion2(): QuizQuestion {
return new MultipleChoiceQuizQuestion(
2,
'In the vscode terminal, what command is used to verify that you created a branch?',
new Map<AnswerChoice, string>([
[AnswerChoice.A, 'git branch -a'],
[AnswerChoice.B, 'git merge main'],
[AnswerChoice.C, 'git checkout -b new_feature'],
[AnswerChoice.D, 'git remote -v'],
]),
AnswerChoice.UNANSWERED,
); // Replace `UNANSWERED` with the correct answer.
}
}
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.
}
}
7 changes: 7 additions & 0 deletions lesson_03/quiz/src/quizzes/quizzes.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,10 @@ import { ChigazoGrahamsQuiz } from './chigazo_graham_quiz.js';
import { DasiaEnglishQuiz } from './dasia_english_quiz.js';
import { JamesCapparellQuiz } from './james_capparell_quiz.js';
import { JosephCaballeroQuiz } from './joseph_caballero_quiz.js';
import { KimberleeHaldaneQuiz } from './kimberlee_haldane_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 @@ -28,6 +30,7 @@ const QUIZ_PROVIDERS = [
JosephCaballeroQuiz,
AngelicaCQuiz,
OyeyemiJimohQuiz,
KimberleeHaldaneQuiz,
ShawnDunsmoreQuiz,
DasiaEnglishQuiz,
ChigazoGrahamsQuiz,
Expand All @@ -37,7 +40,11 @@ const QUIZ_PROVIDERS = [
ZionBuchananQuiz,
ChelseaOgbonniaQuiz,
TommyTranQuiz,

NileJacksonQuiz,
=======
PabloLimonParedesQuiz,

];

@Module({
Expand Down

0 comments on commit 8f70d36

Please sign in to comment.