Skip to content

Commit

Permalink
commit
Browse files Browse the repository at this point in the history
  • Loading branch information
Mohamed committed Mar 4, 2024
1 parent 9094017 commit b1884bc
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
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 MohamedIbrahimQuiz implements QuizQuestionProvider {

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

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

private QuizQuestion makeQuestion0() {
return new MultipleChoiceQuizQuestion(
0,
"What are essential parts to building a computer? (without the inclution of a case)",
Map.of(
AnswerChoice.A, "CPU, RAM, MOTHERBOARD, GPU, CPU COOLER",
AnswerChoice.B, "RAM, MOTHERBOARD, HARD DRIVE, GPU, CPU COOLER",
AnswerChoice.C, "RAM, CPU, HARD DRIVE, MOTHERBOARD, CPU COOLER",
AnswerChoice.D, "RAM, HARD DRIVE, GPU"),
AnswerChoice.UNANSWERED); // Replace `UNANSWERED` with the correct answer.
}

private QuizQuestion makeQuestion1() {
return new QuizQuestion(
1, "What is the base 10 equivalant of 547 in base 8?", "0000"); // Provide an answer.
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,7 @@ quiz:
anthonymays:
- $2y$10$8eHSzy3aCu4Ry3LzO9nWCeGpofSxsNVbnF.wCfn3ZADwQ6MEtN/KK
- $2y$10$55EXRjF26JIgebtoH800ZOJecfefvMgHicuxf/rwTENuxiUaFQcNe

moibrahi7:
- $2y$10$qMRtpEAfuW9e5WyZv5qzxuTj3JDO4xuOrNwm1FZuQ9uGcm3NHZMC.
- $2y$10$VOND8Wn7DA7DHPhJWmyMqurfRkjWZv3m3VnG29TfTOTRusxTNKa6q

0 comments on commit b1884bc

Please sign in to comment.