Skip to content

Commit 6cfc5d6

Browse files
marleomac3Dasiameangie-3anthonydmaysXavierCruz5106
authored
feat: adds quiz for LJ (#117)
* recommitting files due to branch conflict. All PR changes reflected * feat: adds Dasia's quiz questions (#114) * feat: Dasia quizz questions * fix: duplicate declaration * Fix: capitalization * Forgot to delete a line * duplicate name * feat: create test questions for Angie (#109) * answers to test * fix: rename class and file * chore: eelete lesson_03/quiz/src/quizzes/angelica_castillo_quiz.ts * changes made and saved --------- Co-authored-by: Anthony D. Mays <[email protected]> * feat: added Xavier's quiz questions (#99) * feat: added some quiz questions * Update quizzes.module.ts * Update quizzes.module.ts * feat: adds html README for Chelsea (#118) * Create chelseaogbonnia's readme * Update and rename lesson_00/chelseaogbonnia to lesson_00/chelsea_ogbonnia/ReadME.md * Rename ReadME.md to README.md * Create style.css The CSS file to make my HTML look like a Github markdown. * Created index.html This is the markdown-to-html file with semantic html practice. * Commit Message: Testing * chore: remove invalid files Signed-off-by: Anthony D. Mays <[email protected]> * Delete lesson_02/lib/typescript/codedifferently-instructional/package-lock.json --------- Signed-off-by: Anthony D. Mays <[email protected]> Co-authored-by: Anthony D. Mays <[email protected]> Co-authored-by: Anthony D. Mays <[email protected]> * feat: adds Dasia's quiz questions (#114) * feat: Dasia quizz questions * fix: duplicate declaration * Fix: capitalization * Forgot to delete a line * duplicate name * feat: create test questions for Angie (#109) * answers to test * fix: rename class and file * chore: eelete lesson_03/quiz/src/quizzes/angelica_castillo_quiz.ts * changes made and saved --------- Co-authored-by: Anthony D. Mays <[email protected]> * recommitting files due to branch conflict. All PR changes reflected * feat: adds Dasia's quiz questions (#114) * feat: Dasia quizz questions * fix: duplicate declaration * Fix: capitalization * Forgot to delete a line * duplicate name * feat: create test questions for Angie (#109) * answers to test * fix: rename class and file * chore: eelete lesson_03/quiz/src/quizzes/angelica_castillo_quiz.ts * changes made and saved --------- Co-authored-by: Anthony D. Mays <[email protected]> * feat: added Xavier's quiz questions (#99) * feat: added some quiz questions * Update quizzes.module.ts * Update quizzes.module.ts * attempting to fix merge conflicts * removed duplicate variable instances * recommitting files due to branch conflict. All PR changes reflected * removed duplicate hashes from yaml file * feat: create test questions for Angie (#109) * answers to test * fix: rename class and file * chore: eelete lesson_03/quiz/src/quizzes/angelica_castillo_quiz.ts * changes made and saved --------- Co-authored-by: Anthony D. Mays <[email protected]> * feat: added Xavier's quiz questions (#99) * feat: added some quiz questions * Update quizzes.module.ts * Update quizzes.module.ts * feat: create test questions for Angie (#109) * answers to test * fix: rename class and file * chore: eelete lesson_03/quiz/src/quizzes/angelica_castillo_quiz.ts * changes made and saved --------- Co-authored-by: Anthony D. Mays <[email protected]> * recommitting files due to branch conflict. All PR changes reflected * merge conflicts WIP * feat: added Xavier's quiz questions (#99) * feat: added some quiz questions * Update quizzes.module.ts * Update quizzes.module.ts * trying to fix yaml merge conflict --------- Signed-off-by: Anthony D. Mays <[email protected]> Co-authored-by: Dasia <[email protected]> Co-authored-by: Angelica Castillo <[email protected]> Co-authored-by: Anthony D. Mays <[email protected]> Co-authored-by: Xavier Cruz <[email protected]> Co-authored-by: Cogbonnia <[email protected]> Co-authored-by: Anthony D. Mays <[email protected]>
1 parent 03e8542 commit 6cfc5d6

File tree

3 files changed

+68
-0
lines changed

3 files changed

+68
-0
lines changed

lesson_03/quiz/quiz.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,10 @@ quiz:
4343
- $2y$10$QsN9VkjWORsKgZRiBT46VOUgc5HVnswKAT4uDbs7JYbTF7DdKbsw.
4444
- $2y$10$sqXEOL0L8o0kRyiAb.2s4u0RlBC2.LmOGDbGWXHj5IfBNwinkv2yq
4545
- $2y$10$HaWueXgrIzd7z8yf39HfVeTjjyr.Kgx0GFBqwCRSzW3zRSreN19yi
46+
ljmcwilliams:
47+
- $2y$10$krHODbBQL0Z.4Me1fsRc0.XODWzJQPjrEL1xzXwDa98TPONF8OeiK
48+
- $2y$10$S5HH5Vv834yLEUO2B3hHQO9gnR.8eBMA3zDORpXFrSYzXCuDsWHN6
49+
- $2y$10$nAd2FkTtyrmhHfTlhuxPcu1tWPimr7cX9mpDSGeIweUPLafpSTeiW
4650
tommytran:
4751
- $2y$10$6Mf9m8JXRHUyCgRNPn4nceimRZVOhtmsZbOGoFnI4ZJp..RluHmwy
4852
- $2y$10$Xr6W53IVq52orDvf6.TQQuXeMGaysQdgAu1cm5DYi1NyCskG2ByPe
Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
import {
2+
AnswerChoice,
3+
MultipleChoiceQuizQuestion,
4+
QuizQuestion,
5+
QuizQuestionProvider,
6+
} from 'codedifferently-instructional';
7+
8+
export class LjMcwilliamsQuiz implements QuizQuestionProvider {
9+
getProviderName(): string {
10+
return 'ljmcwilliams';
11+
}
12+
13+
makeQuizQuestions(): QuizQuestion[] {
14+
return [
15+
LjMcwilliamsQuiz.makeQuestion0(),
16+
LjMcwilliamsQuiz.makeQuestion1(),
17+
LjMcwilliamsQuiz.makeQuestion2(),
18+
];
19+
}
20+
21+
private static makeQuestion0(): QuizQuestion {
22+
return new MultipleChoiceQuizQuestion(
23+
0,
24+
'Which component of a computer is responsible for short-term memory?',
25+
new Map<AnswerChoice, string>([
26+
[AnswerChoice.A, 'Motherboard'],
27+
[AnswerChoice.B, 'CPU (Central Processing Unit)'],
28+
[AnswerChoice.C, 'RAM (Random Access Memory)'],
29+
[AnswerChoice.D, 'Power Supply'],
30+
]),
31+
AnswerChoice.UNANSWERED,
32+
); // Replace `UNANSWERED` with the correct answer.
33+
}
34+
35+
private static makeQuestion1(): QuizQuestion {
36+
return new MultipleChoiceQuizQuestion(
37+
1,
38+
'Which terminal command allows a user to copy a file or directory?',
39+
new Map<AnswerChoice, string>([
40+
[AnswerChoice.A, 'cp file-name'],
41+
[AnswerChoice.B, 'cpy file-name'],
42+
[AnswerChoice.C, 'dupe file-name'],
43+
[AnswerChoice.D, 'make file-name'],
44+
]),
45+
AnswerChoice.UNANSWERED,
46+
); // Replace `UNANSWERED` with the correct answer.
47+
}
48+
49+
private static makeQuestion2(): QuizQuestion {
50+
return new MultipleChoiceQuizQuestion(
51+
2,
52+
'Which Git command allows a user to delete a feature branch LOCALLY?',
53+
new Map<AnswerChoice, string>([
54+
[AnswerChoice.A, 'git remove branch-name'],
55+
[AnswerChoice.B, 'git push origin --delete branch-name'],
56+
[AnswerChoice.C, 'git checkout master'],
57+
[AnswerChoice.D, 'git branch -d branch-name'],
58+
]),
59+
AnswerChoice.UNANSWERED,
60+
); // Replace `UNANSWERED` with the correct answer.
61+
}
62+
}

lesson_03/quiz/src/quizzes/quizzes.module.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import { ChigazoGrahamsQuiz } from './chigazo_graham_quiz.js';
77
import { DasiaEnglishQuiz } from './dasia_english_quiz.js';
88
import { JamesCapparellQuiz } from './james_capparell_quiz.js';
99
import { JosephCaballeroQuiz } from './joseph_caballero_quiz.js';
10+
import { LjMcwilliamsQuiz } from './lj_mcwilliams_quiz.js';
1011
import { OyeyemiJimohQuiz } from './oyeyemi_jimoh_quiz.js';
1112
import { ShawnDunsmoreQuiz } from './shawn_dunsmore_quiz.js';
1213
import { TommyTranQuiz } from './tommy.tran.quiz.js';
@@ -30,6 +31,7 @@ const QUIZ_PROVIDERS = [
3031
ChigazoGrahamsQuiz,
3132
AmiyahJonesQuiz,
3233
XavierCruzQuiz,
34+
LjMcwilliamsQuiz,
3335
ZionBuchananQuiz,
3436
TommyTranQuiz,
3537
];

0 commit comments

Comments
 (0)