Skip to content

Commit e443fbd

Browse files
authored
Merge branch 'main' into nialesson3
2 parents 95f2cae + ebda4d0 commit e443fbd

File tree

5 files changed

+224
-2
lines changed

5 files changed

+224
-2
lines changed

lesson_03/quiz/quiz.yaml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,18 @@ quiz:
66
anotherone:
77
- $2y$10$8eHSzy3aCu4Ry3LzO9nWCeGpofSxsNVbnF.wCfn3ZADwQ6MEtN/KK
88
- $2y$10$dGB0CGv7.XQC5OqfyY6iXOiJsdVyxU3ve5YE0gt4m2I8P8H13lNXa
9+
ezraquiz:
10+
- $2y$10$fisFjMsmMwzlj3.PELyBNeupdruYROU00dwq296pg0VfHo05SSkta
11+
- $2y$10$.Z44VoTaxQSdPEx7RatO6OVCw1ff6ohS0kZnCrHEcFnElIgkfjP0u
12+
- $2y$10$nCm/E52FKO7DRo4XbpR2vu.HTyAzsDNNZr2dDfYJyblY1oLuGpnPO
913
meikostephens:
1014
- $2y$10$AD1YHmrZZivus7DoM91UMuErNnpi63ueluFs7DcSQSrZbXwDycAOi
1115
- $2y$10$KvnxAYKh3A151RyOOFtOv.wfImRzZMgbBgKy3gyLd1uUSSjHaN.4u
1216
- $2y$10$qJDpo1X1kFXRD1M6Kpi8WeKg.a8dgzd8RawXX/3RuMqM82biBc6iK
17+
khaylasaunders:
18+
- $2y$10$GLR8QrgP55Rjj5Ljf/JgQuyemzq2HzMysMbk6W.m0OkBSJbVHBdxC
19+
- $2y$10$PnjXjW6fUxWSQyFZzy8gDunAxwzHjSHbILe3QW5TRimFeXIqs6tym
20+
- $2y$10$JbCDPrCLcwYFlOzPdXsQS.l4DYQgjaW3AeGqs4PDYRUbMDszhK.Gq
1321
computerparts:
1422
- $2y$10$7TUXmYaJlWnRZTzYR..CsefgVcOZJMGt7ctxyAf.G3obBBFEAB342
1523
- $2y$10$0ghuTDegle177q8VjCgQ2OhManKjotYXrcDT3SLyUF8KvI152Wd0.
@@ -26,8 +34,13 @@ quiz:
2634
- $2y$10$FquR69q7W4E68TX/SNCB7u8Ri0DOFRDqsUPdGfuyIBjZJRVFkNI.6
2735
- $2y$10$FSWRA7hulVpyVxd8s67Nxuq/1cdmviW24qqoUbqihBf79cR.w9yly
2836
- $2y$10$Qy1IsNsfuJvA384ypL/72uWubUuNbMRp4LD6j/LM0RIH66D/HIjF6
37+
2938
niapack:
3039
- $2y$10$AHKmPPaTlafHO3T5q..kAuAhAy4n8Kn.wcY7ZAeYgokCjitwyjqE2
3140
- $2y$10$Z0g.9UO7qwkwoeNe8byn3.MVNIiIKBxa6ztLVHzDz.m5Ao5ozGqh6
3241
- $2y$10$QjpqUnI.C5UPmDuMPU.Eyu7k.T/qF0oAZDl0.osqlaJW.NC7Lvfya
3342

43+
jasonwatson:
44+
- $2y$10$AZtPKyQ.6Bzb.jreO/u.2O3C7XfvYAVpjHzLkuhLVdsX74wc4vXwS
45+
- $2y$10$QbKtEXqpeItigRLAHsn8Qe/06ZpXhKEP1bGPJSFXymsoFw9.04NHy
46+
- $2y$10$tJLScW1OZpOLpVllM65EI.W1QjkSIIBtz.KG8z/s.07RNb7ZWC0um
Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
import {
2+
AnswerChoice,
3+
MultipleChoiceQuizQuestion,
4+
} from 'codedifferently-instructional';
5+
6+
export class EzraQuiz {
7+
getProviderName() {
8+
return 'ezraquiz';
9+
}
10+
11+
makeQuizQuestions() {
12+
return [
13+
EzraQuiz.makeQuestion0(),
14+
EzraQuiz.makeQuestion1(),
15+
EzraQuiz.makeQuestion2(),
16+
];
17+
}
18+
19+
static makeQuestion0() {
20+
return new MultipleChoiceQuizQuestion(
21+
0,
22+
'What is the most played video game in the world?',
23+
new Map([
24+
[AnswerChoice.A, 'GTA V'],
25+
[AnswerChoice.B, 'Call of Duty'],
26+
[AnswerChoice.C, 'World of Warcraft'],
27+
[AnswerChoice.D, 'MineCraft'],
28+
]),
29+
AnswerChoice.UNANSWERED,
30+
); // Replace `UNANSWERED` with the correct answer.
31+
}
32+
33+
static makeQuestion1() {
34+
return new MultipleChoiceQuizQuestion(
35+
1,
36+
'What is the top tourist destination in the world?',
37+
new Map([
38+
[AnswerChoice.A, 'China'],
39+
[AnswerChoice.B, 'France'],
40+
[AnswerChoice.C, 'Italy'],
41+
[AnswerChoice.D, 'Brazil'],
42+
]),
43+
AnswerChoice.UNANSWERED,
44+
); // Replace `UNANSWERED` with the correct answer.
45+
}
46+
47+
static makeQuestion2() {
48+
return new MultipleChoiceQuizQuestion(
49+
2,
50+
'What country has the largest number of ocean borders?',
51+
new Map([
52+
[AnswerChoice.A, 'Canada'],
53+
[AnswerChoice.B, 'India'],
54+
[AnswerChoice.C, 'Australia'],
55+
[AnswerChoice.D, 'United Kingdom'],
56+
]),
57+
AnswerChoice.UNANSWERED,
58+
); // Replace `UNANSWERED` with the correct answer.
59+
}
60+
}
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 JasonWatsonQuiz implements QuizQuestionProvider {
9+
getProviderName(): string {
10+
return 'jasonwatson';
11+
}
12+
13+
makeQuizQuestions(): QuizQuestion[] {
14+
return [
15+
JasonWatsonQuiz.makeQuestion0(),
16+
JasonWatsonQuiz.makeQuestion1(),
17+
JasonWatsonQuiz.makeQuestion2(),
18+
];
19+
}
20+
21+
private static makeQuestion0(): QuizQuestion {
22+
return new MultipleChoiceQuizQuestion(
23+
0,
24+
'How much MB of memory is equal to 1GB of RAM',
25+
new Map<AnswerChoice, string>([
26+
[AnswerChoice.A, '500MB'],
27+
[AnswerChoice.B, '1024MB'],
28+
[AnswerChoice.C, '2048MB'],
29+
[AnswerChoice.D, '1000MB'],
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 is Visual Studio Code primarily used for',
39+
new Map<AnswerChoice, string>([
40+
[AnswerChoice.A, 'Graphic Design'],
41+
[AnswerChoice.B, 'Word Processing'],
42+
[AnswerChoice.C, 'Code Editing'],
43+
[AnswerChoice.D, 'Video Prodection'],
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 file is commonly used to provide instructions or documenttation in a GitHub repository',
53+
new Map<AnswerChoice, string>([
54+
[AnswerChoice.A, 'README.md'],
55+
[AnswerChoice.B, 'INSTRUCTIONS.txt'],
56+
[AnswerChoice.C, 'GUIDE.pdf'],
57+
[AnswerChoice.D, 'DOCS.docx'],
58+
]),
59+
AnswerChoice.UNANSWERED,
60+
); // Replace `UNANSWERED` with the correct answer.
61+
}
62+
}
Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
1+
import {
2+
AnswerChoice,
3+
MultipleChoiceQuizQuestion,
4+
QuizQuestion,
5+
QuizQuestionProvider,
6+
} from 'codedifferently-instructional';
7+
8+
export class KhaylaSaundersQuiz implements QuizQuestionProvider {
9+
getProviderName(): string {
10+
return 'khaylasaunders';
11+
}
12+
13+
makeQuizQuestions(): QuizQuestion[] {
14+
return [
15+
KhaylaSaundersQuiz.makeQuestion0(),
16+
KhaylaSaundersQuiz.makeQuestion1(),
17+
KhaylaSaundersQuiz.makeQuestion2(),
18+
];
19+
}
20+
21+
private static makeQuestion0(): QuizQuestion {
22+
return new MultipleChoiceQuizQuestion(
23+
0,
24+
'Your team is working on a shared Git repository. Which of the following is not the best practice to follow for smooth collaboration?',
25+
new Map<AnswerChoice, string>([
26+
[AnswerChoice.A, 'Always pull before pushing to avoid conflicts.'],
27+
[
28+
AnswerChoice.B,
29+
'Work directly on the main branch to keep the workflow simple.',
30+
],
31+
[AnswerChoice.C, 'Use branches for separate work streams.'],
32+
[
33+
AnswerChoice.D,
34+
'Use Git stash to temporarily save uncommitted changes. ',
35+
],
36+
]),
37+
AnswerChoice.UNANSWERED,
38+
); // Replace `UNANSWERED` with the correct answer.
39+
}
40+
41+
private static makeQuestion1(): QuizQuestion {
42+
return new MultipleChoiceQuizQuestion(
43+
1,
44+
'When should you use git rebase --skip while resolving conflicts in Git?',
45+
new Map<AnswerChoice, string>([
46+
[
47+
AnswerChoice.A,
48+
' When you want to discard the conflicted commit during a rebase.',
49+
],
50+
[AnswerChoice.B, 'When resolving conflicts during a merge.'],
51+
[
52+
AnswerChoice.C,
53+
'When you want to keep the changes from the conflicted commit.',
54+
],
55+
[AnswerChoice.D, 'When you need to undo the last commit '],
56+
]),
57+
AnswerChoice.UNANSWERED,
58+
); // Replace `UNANSWERED` with the correct answer.
59+
}
60+
private static makeQuestion2(): QuizQuestion {
61+
return new MultipleChoiceQuizQuestion(
62+
2,
63+
'What languge is best to communiate with computers ',
64+
new Map<AnswerChoice, string>([
65+
[AnswerChoice.A, '0s & 1s '],
66+
[AnswerChoice.B, 'JavaScript'],
67+
[AnswerChoice.C, 'Supersets'],
68+
[AnswerChoice.D, 'Git'],
69+
]),
70+
AnswerChoice.UNANSWERED,
71+
); // Replace `UNANSWERED` with the correct answer.
72+
}
73+
}

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

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,39 @@
11
import { Module } from '@nestjs/common';
22
import { AnotherQuiz } from './another_quiz.js';
33
import { AnthonyMaysQuiz } from './anthony_mays_quiz.js';
4+
5+
6+
7+
8+
9+
import { NiaPackquiz } from './nia_quiz.js';
10+
11+
import { JasonWatsonQuiz } from './jason_watson_quiz.js';
12+
import { MeikoStephensQuiz } from './meiko_stephens_quiz.js';
413
import { DavidAdenaikeQuiz } from './david_adenaike_quiz.js';
14+
import { EzraQuiz } from './ezra_quiz.js';
515
import { Jbeyquiz } from './jbeyquiz.js';
6-
import { MeikoStephensQuiz } from './meiko_stephens_quiz.js';
16+
import { KhaylaSaundersQuiz } from './khayla_quiz.js';
717
import { MercedesMathewsQuiz } from './mercedes_mathews_quiz.js';
8-
import { NiaPackquiz } from './nia_quiz.js';
18+
919
import { RasheedMillerQuiz } from './rasheed_miller_quiz.js';
1020

1121
export const Quizzes = Symbol.for('Quizzes');
1222

1323
// Add your quiz provider here.
24+
1425
const QUIZ_PROVIDERS = [
1526
AnthonyMaysQuiz,
1627
AnotherQuiz,
1728
MeikoStephensQuiz,
1829
MercedesMathewsQuiz,
1930
Jbeyquiz,
31+
EzraQuiz,
2032
DavidAdenaikeQuiz,
33+
KhaylaSaundersQuiz,
2134
RasheedMillerQuiz,
2235
NiaPackquiz,
36+
JasonWatsonQuiz,
2337
];
2438

2539
@Module({

0 commit comments

Comments
 (0)