Skip to content

Commit

Permalink
feat: adds Jada's quiz (#121)
Browse files Browse the repository at this point in the history
* lesson_02_quiz

* IDK

* Fix my issues

* Revert "IDK"

This reverts commit 6135c29.

* Yup

* Quiz created

* quiz completed

* Fixed Violations

* Revert "Fix my issues"

This reverts commit e32b401.

* Revert "lesson_02_quiz"

This reverts commit b7acf92.

* feat: adds Kevin's quiz (#113)

Co-authored-by: Kevin Mason <kevinmason@Codes-MacBook-Air-83.local>

* Feat: add Nataya Quiz (#116)

* changed number  1

* feat: Answered quiz questions

* feat: Remade my branch and created quiz with answers

* Update Lesson2.java

* feat: adds Jordan's quiz  (#118)

* adding my Quiz and answers

* Update: Quiz complete and tests passed

* Quiz created

* Quiz created

* Feat: add Nataya Quiz (#116)

* changed number  1

* feat: Answered quiz questions

* feat: Remade my branch and created quiz with answers

* Update Lesson2.java

* This Should be the last one

* Update JadaWhiteQuiz.java

* Chore: Deletes Submodule

---------

Co-authored-by: kjknows <160962634+kjknows@users.noreply.github.com>
Co-authored-by: Kevin Mason <kevinmason@Codes-MacBook-Air-83.local>
Co-authored-by: NatayaP <160752534+NatayaP@users.noreply.github.com>
Co-authored-by: Jordan C Eldridge <88390606+HeirJordan3@users.noreply.github.com>
  • Loading branch information
5 people authored Mar 5, 2024
1 parent 369177f commit bc5d932
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
package com.codedifferently.lesson3.quizzes;

import com.codedifferently.instructional.quiz.AnswerChoice;
import com.codedifferently.instructional.quiz.MultipleChoiceQuizQuestion;
import com.codedifferently.instructional.quiz.QuizQuestion;
import com.codedifferently.instructional.quiz.QuizQuestionProvider;
import java.util.List;
import java.util.Map;
import org.springframework.stereotype.Service;

@Service
public class JadaWhiteQuiz implements QuizQuestionProvider {

public String getProviderName() {
return "jadawhite";
}

public List<QuizQuestion> makeQuizQuestions() {
return List.of(makeQuestion0(), makeQuestion1());
}

private QuizQuestion makeQuestion0() {
return new MultipleChoiceQuizQuestion(
0,
"What command is used to create a new branch",
Map.of(
AnswerChoice.A, "git commit",
AnswerChoice.B, "git checkout",
AnswerChoice.C, "git branch",
AnswerChoice.D, "git push"),
AnswerChoice.UNANSWERED); // Replace `UNANSWERED` with the correct answer.
}

private QuizQuestion makeQuestion1() {
return new QuizQuestion(1, "What is 3B in decimal?", "59"); // Provide an answer.
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@ quiz:
javyenware:
- $2y$10$BeOZiGHEZhPmVsDZctelR.MoJM.d958.kQNXUbU8wv9YJv6y5LCyi
- $2y$10$7ME1EOl6VP35kEiUc4YFG.ZOgOcfmoOrsvgjsoGY9xoVPdlH3uK8K
jadawhite:
- $2y$10$w1XGxEj5H14aw8rP5hBHO.YnffYQ/7il5NXtFNPcTXSbXWVeP5FBK
- $2y$10$4ctg3vPGw8BJBzGFE59Ode2cS1oPzb7wA5nXT/Ci5QfhoHr2XenG2
jordaneldridge:
- $2y$10$1.1MtWYxD3gDw6VOmRot6OA.TQcPc1FzenesnN.RJn.6EYD.eG0s6
- $2y$10$C39zXtqTtYWE63Xb9av72evDs8U1ErCu30T5a4YGztaCJTbrjL7fC
Expand Down

0 comments on commit bc5d932

Please sign in to comment.