Skip to content

Commit b680200

Browse files
dlipscomb244“dlipscomb244”anthonydmays
authored
feat: adds quiz for Dennis
* feat: lesson_03_dennisquiz * feat: lesson_03_dennisquiz * feat: lesson_03_dennisquiz * "feat: "lesson_03_dennisquiz2" * feat: lesson_03_dennisquiz3 --------- Co-authored-by: “dlipscomb244” <“[email protected]”> Co-authored-by: Anthony D. Mays <[email protected]>
1 parent 314cbaa commit b680200

File tree

3 files changed

+69
-1
lines changed

3 files changed

+69
-1
lines changed

lesson_03/quiz/quiz.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ quiz:
66
anotherone:
77
- $2y$10$8eHSzy3aCu4Ry3LzO9nWCeGpofSxsNVbnF.wCfn3ZADwQ6MEtN/KK
88
- $2y$10$dGB0CGv7.XQC5OqfyY6iXOiJsdVyxU3ve5YE0gt4m2I8P8H13lNXa
9+
dennislipscomb:
10+
- $2y$10$Y9gmPBd6JGgk06f/uv1MNOGf7sqxqfxYmF5GW48aZ95Homie8FdCC
11+
- $2y$10$vSETgB7wDGzpe5IQwGaZee2N7n1FafP.UelRv3QfpnZ4e.wvUmN8e
12+
- $2y$10$UJGI.LGQ6IwNRUoyl35PmOMoaz3a1pAD8G4Rmn5L9scYDepSz4ypO
913
kimberleehaldane:
1014
- $2y$10$7u0/PUZE4NFsRmjPtsaNOuQpXsQcuZh22wqYK5vli5LUO8wxIDR7q
1115
- $2y$10$zBW5IVw5BDBaa2PuxuyoO.kjixYznWpMXJ0a8hwO1zIYG8o5LJXAq
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 DennisQuiz implements QuizQuestionProvider {
9+
getProviderName(): string {
10+
return 'dennislipscomb';
11+
}
12+
13+
makeQuizQuestions(): QuizQuestion[] {
14+
return [
15+
DennisQuiz.makeQuestion0(),
16+
DennisQuiz.makeQuestion1(),
17+
DennisQuiz.makeQuestion2(),
18+
];
19+
}
20+
21+
private static makeQuestion0(): QuizQuestion {
22+
return new MultipleChoiceQuizQuestion(
23+
0,
24+
'What is RAM?',
25+
new Map<AnswerChoice, string>([
26+
[AnswerChoice.A, 'Random Access Motherboard'],
27+
[AnswerChoice.B, 'Run Access Memory'],
28+
[AnswerChoice.C, 'Random Access Memory'],
29+
[AnswerChoice.D, 'Random Audit Memory'],
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+
'what does "git branch -m" do?',
39+
new Map<AnswerChoice, string>([
40+
[AnswerChoice.A, 'change name of branch'],
41+
[AnswerChoice.B, 'push fork'],
42+
[AnswerChoice.C, 'delete branch'],
43+
[AnswerChoice.D, 'save branch'],
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 is not an IDE?',
53+
new Map<AnswerChoice, string>([
54+
[AnswerChoice.A, 'VS Code'],
55+
[AnswerChoice.B, 'Ah Git Push It'],
56+
[AnswerChoice.C, 'JetBrains'],
57+
[AnswerChoice.D, 'Netbeans'],
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 & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import { AnthonyMaysQuiz } from './anthony_mays_quiz.js';
66
import { ChelseaOgbonniaQuiz } from './chelsea_ogbonnia_quiz.js';
77
import { ChigazoGrahamsQuiz } from './chigazo_graham_quiz.js';
88
import { DasiaEnglishQuiz } from './dasia_english_quiz.js';
9+
import { DennisQuiz } from './dennis_quiz.js';
910
import { HummadTanweerQuiz } from './hummad_tanweer_quiz.js';
1011
import { JamesCapparellQuiz } from './james_capparell_quiz.js';
1112
import { JosephCaballeroQuiz } from './joseph_caballero_quiz.js';
@@ -21,7 +22,7 @@ import { ZionBuchananQuiz } from './zion_buchanan_quiz.js';
2122

2223
export const Quizzes = Symbol.for('Quizzes');
2324

24-
// Add your quiz provider here.
25+
// Add your quiz provider here.;
2526
const QUIZ_PROVIDERS = [
2627
AnthonyMaysQuiz,
2728
YafiahAbdullahQuiz,
@@ -40,6 +41,7 @@ const QUIZ_PROVIDERS = [
4041
ZionBuchananQuiz,
4142
ChelseaOgbonniaQuiz,
4243
TommyTranQuiz,
44+
DennisQuiz,
4345
HummadTanweerQuiz,
4446
PabloLimonParedesQuiz,
4547
];

0 commit comments

Comments
 (0)