Skip to content

Commit e173de0

Browse files
committed
Lesson03 Homework
1 parent 5226501 commit e173de0

File tree

3 files changed

+85
-0
lines changed

3 files changed

+85
-0
lines changed

lesson_03/quiz/quiz.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,9 @@ quiz:
1414
- $2y$10$hRwUbEYSqz761B.cG79T2uYsYPiEtKu.JgD3Aj7.Mofx27TtX5YHa
1515
- $2y$10$qE/gXxpq62FEGJOJd9MDA.vpDYLTNSsZbqZLpD/0368CKkcNBzW1y
1616
- $2y$10$yI/2BgOyqQfLdHM3ixPE5uLu89su/sHRJB2c5szDFIAYXDhRakS.C
17+
awatanana:
18+
- $2y$10$uFNj.ocmiXzuuNrZUoIL/OPDaNcu/39W9.BsAZ6zuN7QZLjHik8VG
19+
- $2y$10$TSqcVRhLIrH319zzXZJCMO9TY/Oz4IU96ZBEVk36y98DiwDSZun9G
20+
- $2y$10$MbdEN2Vo/.5Mf5Gc7w.MMuqpFNbBfjXAUTf.PnwzWISzDhcq/Z/Sq
21+
- $2y$10$V6g.2vivPqZpqbteSQ9eZea9LIgRmAXcFLHuFMuGZR7rBts8zePVu
22+
Lines changed: 77 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,77 @@
1+
import {
2+
AnswerChoice,
3+
MultipleChoiceQuizQuestion,
4+
QuizQuestion,
5+
QuizQuestionProvider,
6+
} from 'codedifferently-instructional';
7+
8+
export class AnanatawaQuiz implements QuizQuestionProvider {
9+
getProviderName(): string {
10+
return 'ananatawa';
11+
}
12+
13+
makeQuizQuestions(): QuizQuestion[] {
14+
return [
15+
AnanatawaQuiz.makeQuestion0(),
16+
AnanatawaQuiz.makeQuestion1(),
17+
AnanatawaQuiz.makeQuestion2(),
18+
AnanatawaQuiz.makeQuestion3(),
19+
];
20+
}
21+
22+
private static makeQuestion0(): QuizQuestion {
23+
return new MultipleChoiceQuizQuestion(
24+
0,
25+
'What is a pull request?',
26+
new Map<AnswerChoice, string>([
27+
[AnswerChoice.A,'When someone asks to add their changes to the main project.'],
28+
[AnswerChoice.B,'A personal copy of someone elses project that you can make changes to.'],
29+
[AnswerChoice.C,'A toolbox where you can write, commit, and push code.'],
30+
[AnswerChoice.D, 'A request to pull the plug on a project.'],
31+
]),
32+
AnswerChoice.UNANSWERED,
33+
); // Replace `UNANSWERED` with the correct answer.
34+
}
35+
36+
private static makeQuestion1(): QuizQuestion {
37+
return new MultipleChoiceQuizQuestion(
38+
1,
39+
'What does the command git status do?',
40+
new Map<AnswerChoice, string>([
41+
[AnswerChoice.A, 'Make a new git repository'],
42+
[AnswerChoice.B, 'Checks the status of your repository'],
43+
[AnswerChoice.C, 'Stage a file for commit'],
44+
[AnswerChoice.D, 'List all branches in the repository'],
45+
]),
46+
AnswerChoice.UNANSWERED,
47+
); // Replace `UNANSWERED` with the correct answer.
48+
}
49+
50+
private static makeQuestion2(): QuizQuestion {
51+
return new MultipleChoiceQuizQuestion(
52+
2,
53+
'What does the command git pull origin do?',
54+
new Map<AnswerChoice, string>([
55+
[AnswerChoice.A, 'Push the latest changes from the remote repo.'],
56+
[AnswerChoice.B, 'Pull the latest changes from the remote repo.'],
57+
[AnswerChoice.C, 'Display the definition for Git.'],
58+
[AnswerChoice.D, 'Stage a file for commit.'],
59+
]),
60+
AnswerChoice.UNANSWERED,
61+
); // Replace `UNANSWERED` with the correct answer.
62+
}
63+
64+
private static makeQuestion3(): QuizQuestion {
65+
return new MultipleChoiceQuizQuestion(
66+
3,
67+
'What was the first homework assignment that Mr. Mays assigned Cohort 25.1?',
68+
new Map<AnswerChoice, string>([
69+
[AnswerChoice.A, 'Make an account on GitHub.com'],
70+
[AnswerChoice.B, 'Convert a Markdown file into HTML.'],
71+
[AnswerChoice.C, 'Create a personal README and submit via GitHub.'],
72+
[AnswerChoice.D,'Create a personal README and push to Github via VS Code.'],
73+
]),
74+
AnswerChoice.UNANSWERED,
75+
); // Replace `UNANSWERED` with the correct answer.
76+
}
77+
}

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import { AnotherQuiz } from './another_quiz.js';
33
import { AnthonyMaysQuiz } from './anthony_mays_quiz.js';
44
import { Jbeyquiz } from './jbeyquiz.js';
55
import { MercedesMathewsQuiz } from './mercedes_mathews_quiz.js';
6+
import { AnanatawaQuiz } from './ananatawa_quiz.js';}
67

78
export const Quizzes = Symbol.for('Quizzes');
89

@@ -12,6 +13,7 @@ const QUIZ_PROVIDERS = [
1213
AnotherQuiz,
1314
MercedesMathewsQuiz,
1415
Jbeyquiz,
16+
Awatanana,
1517
];
1618

1719
@Module({

0 commit comments

Comments
 (0)