Skip to content

Lesson03quiz #120

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 21 commits into from
Mar 12, 2025
Merged
Show file tree
Hide file tree
Changes from 19 commits
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
41df708
Updated Less01 KS
kksaunders251 Mar 8, 2025
6076493
Restored deleted styles and finalized assignment
kksaunders251 Mar 8, 2025
fbef715
Merge branch 'code-differently:main' into main
kksaunders251 Mar 8, 2025
abf8d17
Merge branch 'code-differently:main' into main
kksaunders251 Mar 10, 2025
83ce68f
Merge branch 'code-differently:main' into main
kksaunders251 Mar 10, 2025
ca2f674
Merge branch 'code-differently:main' into main
kksaunders251 Mar 10, 2025
da70841
Merge branch 'code-differently:main' into main
kksaunders251 Mar 10, 2025
21fd92e
Merge branch 'code-differently:main' into main
kksaunders251 Mar 10, 2025
8bbd2a9
Merge branch 'code-differently:main' into main
kksaunders251 Mar 10, 2025
0330050
lesson03quiz
kksaunders251 Mar 10, 2025
c060f34
Khayla Saunders fixed classname
kksaunders251 Mar 10, 2025
9a852a1
feat: add a new quiz question to KhaylaSaundersQuiz
kksaunders251 Mar 10, 2025
69a3afa
fix: rename KhaylaSaundersQuiz to khaylasaunders in quiz.yaml
kksaunders251 Mar 10, 2025
b25e10c
fix: update answer choices to UNANSWERED in KhaylaSaundersQuiz
kksaunders251 Mar 10, 2025
d56da5d
Corrected quiz yaml
kksaunders251 Mar 11, 2025
d116ede
Merge branch 'lesson03quiz' of https://github.com/kksaunders251/code-…
kksaunders251 Mar 11, 2025
b7078da
feat: removed lesson 01
kksaunders251 Mar 11, 2025
cee9e40
Merge branch 'main' of https://github.com/kksaunders251/code-differen…
kksaunders251 Mar 11, 2025
30e6670
chore: removed extra line break.
anthonydmays Mar 12, 2025
cb8864b
chore: fixed merge conflicts
kksaunders251 Mar 12, 2025
e327eb3
chore: restore mistakenly deleted files
kksaunders251 Mar 12, 2025
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 @@ -6,6 +6,10 @@ quiz:
anotherone:
- $2y$10$8eHSzy3aCu4Ry3LzO9nWCeGpofSxsNVbnF.wCfn3ZADwQ6MEtN/KK
- $2y$10$dGB0CGv7.XQC5OqfyY6iXOiJsdVyxU3ve5YE0gt4m2I8P8H13lNXa
khaylasaunders:
- $2y$10$GLR8QrgP55Rjj5Ljf/JgQuyemzq2HzMysMbk6W.m0OkBSJbVHBdxC
- $2y$10$PnjXjW6fUxWSQyFZzy8gDunAxwzHjSHbILe3QW5TRimFeXIqs6tym
- $2y$10$JbCDPrCLcwYFlOzPdXsQS.l4DYQgjaW3AeGqs4PDYRUbMDszhK.Gq
computerparts:
- $2y$10$7TUXmYaJlWnRZTzYR..CsefgVcOZJMGt7ctxyAf.G3obBBFEAB342
- $2y$10$0ghuTDegle177q8VjCgQ2OhManKjotYXrcDT3SLyUF8KvI152Wd0.
Expand Down
73 changes: 73 additions & 0 deletions lesson_03/quiz/src/quizzes/khayla_quiz.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
import {
AnswerChoice,
MultipleChoiceQuizQuestion,
QuizQuestion,
QuizQuestionProvider,
} from 'codedifferently-instructional';

export class KhaylaSaundersQuiz implements QuizQuestionProvider {
getProviderName(): string {
return 'khaylasaunders';
}

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

private static makeQuestion0(): QuizQuestion {
return new MultipleChoiceQuizQuestion(
0,
'Your team is working on a shared Git repository. Which of the following is not the best practice to follow for smooth collaboration?',
new Map<AnswerChoice, string>([
[AnswerChoice.A, 'Always pull before pushing to avoid conflicts.'],
[
AnswerChoice.B,
'Work directly on the main branch to keep the workflow simple.',
],
[AnswerChoice.C, 'Use branches for separate work streams.'],
[
AnswerChoice.D,
'Use Git stash to temporarily save uncommitted changes. ',
],
]),
AnswerChoice.UNANSWERED,
); // Replace `UNANSWERED` with the correct answer.
}

private static makeQuestion1(): QuizQuestion {
return new MultipleChoiceQuizQuestion(
1,
'When should you use git rebase --skip while resolving conflicts in Git?',
new Map<AnswerChoice, string>([
[
AnswerChoice.A,
' When you want to discard the conflicted commit during a rebase.',
],
[AnswerChoice.B, 'When resolving conflicts during a merge.'],
[
AnswerChoice.C,
'When you want to keep the changes from the conflicted commit.',
],
[AnswerChoice.D, 'When you need to undo the last commit '],
]),
AnswerChoice.UNANSWERED,
); // Replace `UNANSWERED` with the correct answer.
}
private static makeQuestion2(): QuizQuestion {
return new MultipleChoiceQuizQuestion(
2,
'What languge is best to communiate with computers ',
new Map<AnswerChoice, string>([
[AnswerChoice.A, '0s & 1s '],
[AnswerChoice.B, 'JavaScript'],
[AnswerChoice.C, 'Supersets'],
[AnswerChoice.D, 'Git'],
]),
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 @@ -2,6 +2,7 @@ import { Module } from '@nestjs/common';
import { AnotherQuiz } from './another_quiz.js';
import { AnthonyMaysQuiz } from './anthony_mays_quiz.js';
import { Jbeyquiz } from './jbeyquiz.js';
import { KhaylaSaundersQuiz } from './khayla_quiz.js';
import { MercedesMathewsQuiz } from './mercedes_mathews_quiz.js';
import { RasheedMillerQuiz } from './rasheed_miller_quiz.js';

Expand All @@ -13,6 +14,7 @@ const QUIZ_PROVIDERS = [
AnotherQuiz,
MercedesMathewsQuiz,
Jbeyquiz,
KhaylaSaundersQuiz,
RasheedMillerQuiz,
];

Expand Down