Skip to content

Commit 8d7c458

Browse files
committed
feat: redo lesson 03 assignment with updated changes to override current pull request
1 parent 955f13e commit 8d7c458

File tree

3 files changed

+69
-6
lines changed

3 files changed

+69
-6
lines changed

lesson_03/quiz/quiz.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,3 +27,7 @@ quiz:
2727
- $2y$10$FMRsdjEhIG0anbZOIcVvSOy4e4eFTZGIYYyATChwc.QRMpWuomR5C
2828
- $2y$10$0AQW/94c4pPxp8xIhJUIs.qoLnUuQg/Hwe1vd4975K96EKGEPz.H6
2929
- $2y$10$ibNpd6ZjWh/yRXafaN8R5.vxbBw7KVZ7r4IsFv4Uy3naXqagr2B5W
30+
lindaquinoa:
31+
- $2y$10$c.9r1fNSkCuBu6TBI53vfet82OkufPL4mkFZsocIFpz3dQQoYkL9K
32+
- $2y$10$5.x9AKn2gEhew5ek1Y7GguN/bvae2EktevTDpCBvuEjqqOy/MeuHK
33+
- $2y$10$sW6nyRbtgsBgwypTO4s/6.q4YxcHmTSOW62AzXxr5OWd0M6luF2C.
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 LindaQuinoaQuiz implements QuizQuestionProvider {
9+
getProviderName(): string {
10+
return 'lindaquinoa';
11+
}
12+
13+
makeQuizQuestions(): QuizQuestion[] {
14+
return [
15+
LindaQuinoaQuiz.makeQuestion0(),
16+
LindaQuinoaQuiz.makeQuestion1(),
17+
LindaQuinoaQuiz.makeQuestion2(),
18+
];
19+
}
20+
21+
private static makeQuestion0(): QuizQuestion {
22+
return new MultipleChoiceQuizQuestion(
23+
0,
24+
'Which HTML element is best suited for defining the mainheading of a page for both search engines and screen readers?',
25+
new Map<AnswerChoice, string>([
26+
[AnswerChoice.A, '<title>'],
27+
[AnswerChoice.B, '<header'],
28+
[AnswerChoice.C, '<h1>'],
29+
[AnswerChoice.D, '<head>'],
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+
'When two CSS rules target the same element, which factor has the highest priority in determining which style is applied?',
39+
new Map<AnswerChoice, string>([
40+
[AnswerChoice.A, 'The order the CSS files are linked in the HTML'],
41+
[AnswerChoice.B, 'Specificity of the selectors'],
42+
[AnswerChoice.C, 'The font-family value'],
43+
[AnswerChoice.D, 'The number of lines of CSS code in the stylesheet'],
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+
'What is the main purpose of creating a new branch in Git before starting a feature?',
53+
new Map<AnswerChoice, string>([
54+
[AnswerChoice.A, 'To automatically merge changes into the main branch'],
55+
[AnswerChoice.B, 'To experiment without affecting the main codebase'],
56+
[AnswerChoice.C, 'To delete the main branch safely'],
57+
[AnswerChoice.D, 'To reduce the size of the repository'],
58+
]),
59+
AnswerChoice.UNANSWERED,
60+
); // Replace `UNANSWERED` with the correct answer.
61+
}
62+
}

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

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,24 +6,21 @@ import { BenjaminScottQuiz } from './benjamin_scott_quiz.js';
66
import { TrinitieJacksonQuiz } from './trinitie_jackson_quiz.js';
77
import { TyranRicesQuiz } from './tyran_rices_quiz.js';
88
import { BrooklynHardenQuiz } from './brooklyn_harden_quiz.js';
9+
import { LindaQuinoaQuiz } from './linda_quinoa_quiz.js';
910
export const Quizzes = Symbol.for('Quizzes');
1011

1112
// Add your quiz provider here.
12-
13-
14-
15-
1613
const QUIZ_PROVIDERS = [
1714
AnthonyMaysQuiz,
1815
TrinitieJacksonQuiz,
1916
BrooklynHardenQuiz,
2017
TyranRicesQuiz,
2118
AnotherQuiz,
2219
BenjaminScottQuiz,
23-
DanielsonAdjocyQuiz
20+
DanielsonAdjocyQuiz,
21+
LindaQuinoaQuiz,
2422
];
2523

26-
2724
@Module({
2825
providers: [
2926
...QUIZ_PROVIDERS,

0 commit comments

Comments
 (0)