Skip to content

Recreated My Quiz #126

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 26 commits into from
Oct 2, 2024
Merged
Show file tree
Hide file tree
Changes from 25 commits
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
74bc872
Create chelseaogbonnia's readme
Cogbonnia Sep 24, 2024
5b0500c
Merge branch 'code-differently:main' into patch-1
Cogbonnia Sep 26, 2024
c076b66
Update and rename lesson_00/chelseaogbonnia to lesson_00/chelsea_ogbo…
Cogbonnia Sep 26, 2024
7fa2914
Rename ReadME.md to README.md
Cogbonnia Sep 26, 2024
42367e3
Merge branch 'code-differently:main' into patch-1
Cogbonnia Sep 27, 2024
f462dc4
Merge branch 'code-differently:main' into patch-1
Cogbonnia Sep 29, 2024
0c1b121
Merge pull request #1 from Cogbonnia/patch-1
Cogbonnia Sep 29, 2024
fb73c3d
Create style.css
Cogbonnia Sep 30, 2024
f7fdc12
Created index.html
Cogbonnia Sep 30, 2024
e85d1e7
Commit Message: Testing
Cogbonnia Sep 30, 2024
6bb03b6
Merge branch 'code-differently:main' into main
Cogbonnia Sep 30, 2024
edd4935
Merge pull request #3 from Cogbonnia/patch-1_lesson02
Cogbonnia Sep 30, 2024
db53d2c
Merge branch 'code-differently:main' into patch-1
Cogbonnia Sep 30, 2024
f5387e0
Merge remote-tracking branch 'origin/patch-1'
Cogbonnia Sep 30, 2024
c3af986
Merge branch 'code-differently:main' into main
Cogbonnia Sep 30, 2024
975512f
Merge branch 'code-differently:main' into main
Cogbonnia Sep 30, 2024
05f4fb9
Merge branch 'code-differently:main' into main
Cogbonnia Oct 1, 2024
a571ff7
Merge branch 'code-differently:main' into main
Cogbonnia Oct 1, 2024
0df64a5
Merge branch 'code-differently:main' into main
Cogbonnia Oct 1, 2024
dbd1fbf
chore: remove invalid files
anthonydmays Oct 2, 2024
8d17ea7
Delete lesson_02/lib/typescript/codedifferently-instructional/package…
anthonydmays Oct 2, 2024
6fc8c88
Merge branch 'code-differently:main' into main
Cogbonnia Oct 2, 2024
a496bc2
Merge branch 'code-differently:main' into main
Cogbonnia Oct 2, 2024
1b3c1d5
Merge branch 'code-differently:main' into main
Cogbonnia Oct 2, 2024
2b9355e
Created my quiz and added my answers.
Cogbonnia Oct 2, 2024
76dc70e
Merge branch 'main' into lesson_03
Cogbonnia Oct 2, 2024
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
7 changes: 6 additions & 1 deletion lesson_03/quiz/quiz.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -50,4 +50,9 @@ quiz:
shawndunsmore:
- $2y$10$Kpde4LAfDyEhgWezFoI5texc53Sge6QQs8y5hR8DA7zHfyK8It5LW
- $2y$10$T061IZuccoHb2XGjaICB/Olchf62DqrSDVIE0TE9Q9qidfLAL7sHS
- $2y$10$T061IZuccoHb2XGjaICB/Olchf62DqrSDVIE0TE9Q9qidfLAL7sHS
- $2y$10$T061IZuccoHb2XGjaICB/Olchf62DqrSDVIE0TE9Q9qidfLAL7sHS
chelseaogbonnia:
- $2y$10$zToVGnZqyIwx0GGE.19Cve8sJ9enR1V0hGtssvR/8l42AcsR10aJS
- $2y$10$dkWnar/ZXMr9ndtRDcbTbe/HN3DhuULPoZhTx/xATi.UYQ0DUIx1W
- $2y$10$.Cw9Sjf6Pf9K8EsThegQ5e8BMoJdLl40CCuJ2FKHLar1k8hVfR9fu
- $2y$10$.pmOuTs0Oqjfhn9mMIQCQu7Fbe1ZOZmZIbTGqqul.hnVLqIV6bn/W
76 changes: 76 additions & 0 deletions lesson_03/quiz/src/quizzes/chelsea_ogbonnia_quiz.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
import {
AnswerChoice,
MultipleChoiceQuizQuestion,
QuizQuestion,
QuizQuestionProvider,
} from 'codedifferently-instructional';

export class ChelseaOgbonniaQuiz implements QuizQuestionProvider {
getProviderName(): string {
return 'chelseaogbonnia';
}

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

private static makeQuestion0(): QuizQuestion {
return new MultipleChoiceQuizQuestion(
0,
'Which git command combines the changes from one branch to the current branch?',
new Map<AnswerChoice, string>([
[AnswerChoice.A, 'git branch -d <branchname>'],
[AnswerChoice.B, 'git merge <branchname>'],
[AnswerChoice.C, 'git branch'],
[AnswerChoice.D, 'git add <filename>'],
]),
AnswerChoice.UNANSWERED,
); // Replace `UNANSWERED` with the correct answer.
}

private static makeQuestion1(): QuizQuestion {
return new MultipleChoiceQuizQuestion(
1,
'Which git command is used fetch and download content from a remote repository to update the local repository?',
new Map<AnswerChoice, string>([
[AnswerChoice.A, 'git fetch'],
[AnswerChoice.B, 'git merge'],
[AnswerChoice.C, 'git clone'],
[AnswerChoice.D, 'git pull'],
]),
AnswerChoice.UNANSWERED,
); // Replace `UNANSWERED` with the correct answer.
}
private static makeQuestion2(): QuizQuestion {
return new MultipleChoiceQuizQuestion(
2,
'Which Git command is NOT used to sync repositories?',
new Map<AnswerChoice, string>([
[AnswerChoice.A, 'git push'],
[AnswerChoice.B, 'git sync'],
[AnswerChoice.C, 'git pull'],
[AnswerChoice.D, 'git merge'],
]),
AnswerChoice.UNANSWERED,
); // Replace `UNANSWERED` with the correct answer.
}

private static makeQuestion3(): QuizQuestion {
return new MultipleChoiceQuizQuestion(
3,
'Which git command creates a new Git repository?',
new Map<AnswerChoice, string>([
[AnswerChoice.A, 'git init'],
[AnswerChoice.B, 'git clone'],
[AnswerChoice.C, 'git folder <repositoryname>'],
[AnswerChoice.D, 'git add <repositoryname>'],
]),
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 @@ -3,6 +3,7 @@ import { AmiyahJonesQuiz } from './amiyah_jones_quiz.js';
import { AngelicaCQuiz } from './angelica_c_quiz.js';
import { AnotherQuiz } from './another_quiz.js';
import { AnthonyMaysQuiz } from './anthony_mays_quiz.js';
import { ChelseaOgbonniaQuiz } from './chelsea_ogbonnia_quiz.js';
import { ChigazoGrahamsQuiz } from './chigazo_graham_quiz.js';
import { DasiaEnglishQuiz } from './dasia_english_quiz.js';
import { JamesCapparellQuiz } from './james_capparell_quiz.js';
Expand Down Expand Up @@ -30,6 +31,7 @@ const QUIZ_PROVIDERS = [
AmiyahJonesQuiz,
XavierCruzQuiz,
ZionBuchananQuiz,
ChelseaOgbonniaQuiz,
];

@Module({
Expand Down