Skip to content

Commit

Permalink
Merge branch 'main' into feature_lesson03
Browse files Browse the repository at this point in the history
  • Loading branch information
dlipscomb244 authored Oct 3, 2024
2 parents 2157c56 + ddcf9f2 commit 336af39
Show file tree
Hide file tree
Showing 4 changed files with 136 additions and 2 deletions.
11 changes: 9 additions & 2 deletions lesson_03/quiz/quiz.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ quiz:
- $2y$10$Y9gmPBd6JGgk06f/uv1MNOGf7sqxqfxYmF5GW48aZ95Homie8FdCC
- $2y$10$vSETgB7wDGzpe5IQwGaZee2N7n1FafP.UelRv3QfpnZ4e.wvUmN8e
- $2y$10$UJGI.LGQ6IwNRUoyl35PmOMoaz3a1pAD8G4Rmn5L9scYDepSz4ypO
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 @@ -68,4 +72,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
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.
}
}
4 changes: 4 additions & 0 deletions lesson_03/quiz/src/quizzes/quizzes.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,10 @@ import { DasiaEnglishQuiz } from './dasia_english_quiz.js';
import { DennisQuiz } from './dennis_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 @@ -38,6 +41,7 @@ const QUIZ_PROVIDERS = [
ChelseaOgbonniaQuiz,
TommyTranQuiz,
DennisQuiz,
PabloLimonParedesQuiz,
];

@Module({
Expand Down

0 comments on commit 336af39

Please sign in to comment.