Skip to content

Montez l3 #121

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 22 commits into from
Mar 13, 2025
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
4 changes: 4 additions & 0 deletions lesson_03/quiz/quiz.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,10 @@ quiz:
- $2y$10$hRwUbEYSqz761B.cG79T2uYsYPiEtKu.JgD3Aj7.Mofx27TtX5YHa
- $2y$10$qE/gXxpq62FEGJOJd9MDA.vpDYLTNSsZbqZLpD/0368CKkcNBzW1y
- $2y$10$yI/2BgOyqQfLdHM3ixPE5uLu89su/sHRJB2c5szDFIAYXDhRakS.C
montezbradley:
- $2y$10$W3vj0qJcRoNY9u5GNYLddOMlwMSfHSXrTwfLMVUSDTqgQFeqLLQbG
- $2y$10$Cwm6LN1BoRoAEPiVPl4lLOV3o4GY84GsQEUS3.SwBmyvOHebr2r9e
- $2y$10$DT/fZKklOTHbpUEuzRg8nuNbDjapMm81po74KxIJ4htF3jR9VhmmC
davidadenaike:
- $2y$10$CCxBimjXsumkjTLWRWqibue0VeGel6Idfb/2q3y.mIuKHbkWVTsx6
- $2y$10$/z0Ri9Fg7pOXUFYsOErj.Ol8Hxcy7zwqWezLTMWVtFv6tzvkCrJti
Expand Down
63 changes: 63 additions & 0 deletions lesson_03/quiz/src/quizzes/montez_quiz.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
import {
AnswerChoice,
MultipleChoiceQuizQuestion,
QuizQuestion,
QuizQuestionProvider,
} from 'codedifferently-instructional';

export class MontezBradleyQuiz implements QuizQuestionProvider {
getProviderName(): string {
return 'montezbradley';
}

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

private static makeQuestion0(): QuizQuestion {
return new MultipleChoiceQuizQuestion(
0,
'What Git command is used to check the current status of a repository?',
new Map<AnswerChoice, string>([
[AnswerChoice.A, 'git status'],
[AnswerChoice.B, 'git info'],
[AnswerChoice.C, 'git check-status'],
[AnswerChoice.D, 'git current'],
]),
AnswerChoice.UNANSWERED,
); // Replace `UNANSWERED` with the correct answer.
}

private static makeQuestion1(): QuizQuestion {
return new MultipleChoiceQuizQuestion(
1,
'What command is used to save all changes and create a commit in Git?',
new Map<AnswerChoice, string>([
[AnswerChoice.A, 'git status'],
[AnswerChoice.B, 'git info'],
[AnswerChoice.C, 'git check-status'],
[AnswerChoice.D, 'git add git commit -m "Your commit message'],
]),
AnswerChoice.UNANSWERED,
); // Replace `UNANSWERED` with the correct answer.
}

private static makeQuestion2(): QuizQuestion {
return new MultipleChoiceQuizQuestion(
2,
'What Git command is used to check the current status of a repository',
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Your last question should be unique. Otherwise, you're almost there.

new Map<AnswerChoice, string>([
[AnswerChoice.A, 'git status'],
[AnswerChoice.B, 'git verify'],
[AnswerChoice.C, 'git info'],
[AnswerChoice.D, 'git check-status'],
]),
AnswerChoice.UNANSWERED,
);
}

}
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 @@ -13,6 +13,7 @@ import { JeremiahWingQuiz } from './jeremiah_wing_quiz.js';
import { KhaylaSaundersQuiz } from './khayla_quiz.js';
import { MeikoStephensQuiz } from './meiko_stephens_quiz.js';
import { MercedesMathewsQuiz } from './mercedes_mathews_quiz.js';
import { MontezBradleyQuiz } from './montez_quiz.js';
import { RasheedMillerQuiz } from './rasheed_miller_quiz.js';

export const Quizzes = Symbol.for('Quizzes');
Expand All @@ -25,6 +26,7 @@ const QUIZ_PROVIDERS = [
MeikoStephensQuiz,
MercedesMathewsQuiz,
Jbeyquiz,
MontezBradleyQuiz,
Bryanasingletonbarnhart,
EzraQuiz,
DavidAdenaikeQuiz,
Expand Down