Skip to content

Commit

Permalink
feat: adds quiz for Hummad (code-differently#129)
Browse files Browse the repository at this point in the history
* Created new branch

* Hummad lesson 3  questions

* changed my answers to "unanswered"

* adding missing comma

* Created new branch

* Hummad lesson 3  questions

* changed my answers to "unanswered"

* delete duplicates

* deleted duplicate name in yaml

* deleted duplicate

* fix: syntax error

---------

Co-authored-by: htanweer244 <[email protected]>
  • Loading branch information
anthonydmays and htanweer244 authored Oct 3, 2024
1 parent ddcf9f2 commit 314cbaa
Show file tree
Hide file tree
Showing 3 changed files with 69 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lesson_03/quiz/quiz.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,11 @@ quiz:
- $2y$10$dkWnar/ZXMr9ndtRDcbTbe/HN3DhuULPoZhTx/xATi.UYQ0DUIx1W
- $2y$10$.Cw9Sjf6Pf9K8EsThegQ5e8BMoJdLl40CCuJ2FKHLar1k8hVfR9fu
- $2y$10$.pmOuTs0Oqjfhn9mMIQCQu7Fbe1ZOZmZIbTGqqul.hnVLqIV6bn/W
hummadtanweer:
- $2y$10$r.JmLYmaAWLZPwv6LLFWB.W823BWj7CsDaPdi5hxv4ExQyCjDq.l.
- $2y$10$DcSjwFSOP.120fEp1zJgEe9J3qZiWPa0i/ofYQS6p3sG93jwCi3ci
- $2y$10$O0Xy3FSVwWM3Tqeh3dP.tuv6E3OHN10siHbgJ4.iPIaZLJ1kVheC6
pablolimonparedes:
- $2y$10$Oj.VjaxLuCk3H3XGRLH99.y5LnVkVqEAS30eopxFsNfL6FQ0RRdbC
- $2y$10$cs9lhS.nLe6Ym1nkgvr89Oa6Se5DafERs6MJm0t6plQ76zGlTj9JC
- $2y$10$ftCSIQi1kpbWf9CYsrmjCe1H/i/NWzqTX3Jfuqi0TAPcqoCdxrk3O
- $2y$10$ftCSIQi1kpbWf9CYsrmjCe1H/i/NWzqTX3Jfuqi0TAPcqoCdxrk3O
62 changes: 62 additions & 0 deletions lesson_03/quiz/src/quizzes/hummad_tanweer_quiz.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
import {
AnswerChoice,
MultipleChoiceQuizQuestion,
QuizQuestion,
QuizQuestionProvider,
} from 'codedifferently-instructional';

export class HummadTanweerQuiz implements QuizQuestionProvider {
getProviderName(): string {
return 'hummadtanweer';
}

makeQuizQuestions(): QuizQuestion[] {
return [
HummadTanweerQuiz.makeQuestion0(),
HummadTanweerQuiz.makeQuestion1(),
HummadTanweerQuiz.makeQuestion2(),
];
}

private static makeQuestion0(): QuizQuestion {
return new MultipleChoiceQuizQuestion(
0,
'Who is attributed with inventing GIT?',
new Map<AnswerChoice, string>([
[AnswerChoice.A, 'Linus Torvalds'],
[AnswerChoice.B, 'James Gosling'],
[AnswerChoice.C, 'Koska Kawaguchi'],
[AnswerChoice.D, 'Junio C. Hamano'],
]),
AnswerChoice.UNANSWERED,
); // Replace `UNANSWERED` with the correct answer.
}

private static makeQuestion1(): QuizQuestion {
return new MultipleChoiceQuizQuestion(
1,
'What is the opposite of a GIT clone?',
new Map<AnswerChoice, string>([
[AnswerChoice.A, 'GIT add'],
[AnswerChoice.B, 'GIT push'],
[AnswerChoice.C, 'GIT upload'],
[AnswerChoice.D, 'GIT status'],
]),
AnswerChoice.UNANSWERED,
); // Replace `UNANSWERED` with the correct answer.
}

private static makeQuestion2(): QuizQuestion {
return new MultipleChoiceQuizQuestion(
2,
'How do you check the state of your local git repository since your last commit?',
new Map<AnswerChoice, string>([
[AnswerChoice.A, 'GIT diff'],
[AnswerChoice.B, 'GIT commit'],
[AnswerChoice.C, 'GIT status'],
[AnswerChoice.D, 'GIT check'],
]),
AnswerChoice.UNANSWERED,
); // Replace `UNANSWERED` with the correct answer.
}
}
2 changes: 2 additions & 0 deletions lesson_03/quiz/src/quizzes/quizzes.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import { AnthonyMaysQuiz } from './anthony_mays_quiz.js';
import { ChelseaOgbonniaQuiz } from './chelsea_ogbonnia_quiz.js';
import { ChigazoGrahamsQuiz } from './chigazo_graham_quiz.js';
import { DasiaEnglishQuiz } from './dasia_english_quiz.js';
import { HummadTanweerQuiz } from './hummad_tanweer_quiz.js';
import { JamesCapparellQuiz } from './james_capparell_quiz.js';
import { JosephCaballeroQuiz } from './joseph_caballero_quiz.js';
import { KimberleeHaldaneQuiz } from './kimberlee_haldane_quiz.js';
Expand Down Expand Up @@ -39,6 +40,7 @@ const QUIZ_PROVIDERS = [
ZionBuchananQuiz,
ChelseaOgbonniaQuiz,
TommyTranQuiz,
HummadTanweerQuiz,
PabloLimonParedesQuiz,
];

Expand Down

0 comments on commit 314cbaa

Please sign in to comment.