Skip to content

Commit c1439cb

Browse files
committed
feat: changes incorrect lesson_03 files
1 parent 4d3e396 commit c1439cb

File tree

3 files changed

+71
-0
lines changed

3 files changed

+71
-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$FMRsdjEhIG0anbZOIcVvSOy4e4eFTZGIYYyATChwc.QRMpWuomR5C
4444
- $2y$10$0AQW/94c4pPxp8xIhJUIs.qoLnUuQg/Hwe1vd4975K96EKGEPz.H6
4545
- $2y$10$ibNpd6ZjWh/yRXafaN8R5.vxbBw7KVZ7r4IsFv4Uy3naXqagr2B5W
46+
evanderblue:
47+
- $2y$10$jrzJya6WaaYok/vLLHxkSuZR/DxlaKZwFfbLZ0ecoVLL2Xh6yjyDq
48+
- $2y$10$Z1ZuoK050bRTVDb3X/xkcuw1pGQvKGkhoLVqmVABTTOwcJPjsIOG6
49+
- $2y$10$t3aHn3NxL/fP0n8w2yHm4OnLNF2ZYEztm.Avwgo2vleOkfRWKdRSa
4650
lindaquinoa:
4751
- $2y$10$c.9r1fNSkCuBu6TBI53vfet82OkufPL4mkFZsocIFpz3dQQoYkL9K
4852
- $2y$10$5.x9AKn2gEhew5ek1Y7GguN/bvae2EktevTDpCBvuEjqqOy/MeuHK
Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
import {
2+
AnswerChoice,
3+
MultipleChoiceQuizQuestion,
4+
QuizQuestion,
5+
QuizQuestionProvider,
6+
} from 'codedifferently-instructional';
7+
8+
export class EvanderBlueQuiz implements QuizQuestionProvider {
9+
getProviderName(): string {
10+
return 'evanderblue';
11+
}
12+
13+
makeQuizQuestions(): QuizQuestion[] {
14+
return [
15+
EvanderBlueQuiz.makeQuestion0(),
16+
EvanderBlueQuiz.makeQuestion1(),
17+
EvanderBlueQuiz.makeQuestion2(),
18+
];
19+
}
20+
21+
private static makeQuestion0(): QuizQuestion {
22+
return new MultipleChoiceQuizQuestion(
23+
0,
24+
'What is does the command git push do?',
25+
new Map<AnswerChoice, string>([
26+
[AnswerChoice.A, 'Uploads your local commits to a remote repository'],
27+
[
28+
AnswerChoice.B,
29+
'Downloads commits from a remote repository to your local machine',
30+
],
31+
[AnswerChoice.C, 'Creates a new branch in your local repository'],
32+
[
33+
AnswerChoice.D,
34+
'Saves your changes to the staging area without committing',
35+
],
36+
]),
37+
AnswerChoice.UNANSWERED,
38+
); // Replace `UNANSWERED` with the correct answer.
39+
}
40+
41+
private static makeQuestion1(): QuizQuestion {
42+
return new QuizQuestion(
43+
1,
44+
'What does RAM stand for?',
45+
'Random Access Memory',
46+
); // Provide an answer.
47+
}
48+
49+
private static makeQuestion2(): QuizQuestion {
50+
return new MultipleChoiceQuizQuestion(
51+
2,
52+
'What does a CPU do?',
53+
new Map<AnswerChoice, string>([
54+
[AnswerChoice.A, 'Stores long-term data like documents and photos'],
55+
[AnswerChoice.B, 'Controls the display output to the monitor'],
56+
[
57+
AnswerChoice.C,
58+
'Executes instructions and performs calculations for the computer',
59+
],
60+
[AnswerChoice.D, "Provides power to the computer's components"],
61+
]),
62+
AnswerChoice.UNANSWERED,
63+
); // Replace `UNANSWERED` with the correct answer.
64+
}
65+
}

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ import { TyranRicesQuiz } from './tyran_rices_quiz.js';
1313
import { MarthaOQuiz } from './martha_o_quiz.js';
1414
import { LindaQuinoaQuiz } from './linda_quinoa_quiz.js';
1515
import { DeanWalstonQuiz } from './dean_walston_quiz.js';
16+
import { EvanderBlueQuiz } from './evander_blue_quiz.js';
1617
export const Quizzes = Symbol.for('Quizzes');
1718

1819
// Add your quiz provider here.
@@ -31,6 +32,7 @@ const QUIZ_PROVIDERS = [
3132
DeanWalstonQuiz,
3233
KerryFergusonQuiz,
3334
MarthaOQuiz,
35+
EvanderBlueQuiz
3436
];
3537

3638
@Module({

0 commit comments

Comments
 (0)