Skip to content

Commit

Permalink
lesson_02_quiz
Browse files Browse the repository at this point in the history
  • Loading branch information
Nelshulla committed Mar 3, 2024
1 parent f473a1b commit b7acf92
Showing 1 changed file with 11 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ private static QuizQuestion makeQuestion0() {
AnswerChoice.B, "The monitor",
AnswerChoice.C, "The keyboard",
AnswerChoice.D, "The mouse"),
AnswerChoice.UNANSWERED); // Replace `UNANSWERED` with the correct answer.
AnswerChoice.A); // Replace `UNANSWERED` with the correct answer.
}

private static QuizQuestion makeQuestion1() {
Expand All @@ -64,7 +64,7 @@ private static QuizQuestion makeQuestion1() {
AnswerChoice.B, "The keyboard",
AnswerChoice.C, "The CPU",
AnswerChoice.D, "RAM"),
AnswerChoice.UNANSWERED); // Replace `UNANSWERED` with the correct answer
AnswerChoice.C); // Replace `UNANSWERED` with the correct answer
}

private static QuizQuestion makeQuestion2() {
Expand All @@ -76,7 +76,7 @@ private static QuizQuestion makeQuestion2() {
AnswerChoice.B, "The GPU",
AnswerChoice.C, "RAM",
AnswerChoice.D, "The motherboard"),
AnswerChoice.UNANSWERED); // Replace `UNANSWERED` with the correct answer.
AnswerChoice.B); // Replace `UNANSWERED` with the correct answer.
}

private static QuizQuestion makeQuestion3() {
Expand All @@ -88,7 +88,7 @@ private static QuizQuestion makeQuestion3() {
AnswerChoice.B, "The keyboard",
AnswerChoice.C, "RAM",
AnswerChoice.D, "The GPU"),
AnswerChoice.UNANSWERED); // Replace `UNANSWERED` with the correct answer.
AnswerChoice.C); // Replace `UNANSWERED` with the correct answer.
}

private static QuizQuestion makeQuestion4() {
Expand All @@ -100,7 +100,7 @@ private static QuizQuestion makeQuestion4() {
AnswerChoice.B, "Storage devices",
AnswerChoice.C, "RAM",
AnswerChoice.D, "CPU"),
AnswerChoice.UNANSWERED); // Replace `UNANSWERED` with the correct answer.
AnswerChoice.B); // Replace `UNANSWERED` with the correct answer.
}

private static QuizQuestion makeQuestion5() {
Expand All @@ -112,28 +112,28 @@ private static QuizQuestion makeQuestion5() {
AnswerChoice.B, "Storage",
AnswerChoice.C, "RAM",
AnswerChoice.D, "CPU"),
AnswerChoice.UNANSWERED); // Replace `UNANSWERED` with the correct answer.
AnswerChoice.A); // Replace `UNANSWERED` with the correct answer.
}

private static QuizQuestion makeQuestion6() {
return new QuizQuestion(
6,
"What is the decimal number 34 in binary?",
"0b00000000"); // Replace the correct digits in the answer.
"100010"); // Replace the correct digits in the answer.
}

private static QuizQuestion makeQuestion7() {
return new QuizQuestion(
7,
"What is the decimal number 34 in hex?",
"0x00"); // Replace the correct digits in the answer.
"0x22"); // Replace the correct digits in the answer.
}

private static QuizQuestion makeQuestion8() {
return new QuizQuestion(
8,
"What is binary number 0b01100101 in decimal?",
"0"); // Specify the correct number (no leading zeros).
"101"); // Specify the correct number (no leading zeros).
}

private static QuizQuestion makeQuestion9() {
Expand All @@ -145,7 +145,7 @@ private static QuizQuestion makeQuestion9() {
AnswerChoice.B, "git pull <branch-name>",
AnswerChoice.C, "git checkout -b <branch-name>",
AnswerChoice.D, "git push <branch-name>"),
AnswerChoice.UNANSWERED); // Replace `UNANSWERED` with the correct answer.
AnswerChoice.C); // Replace `UNANSWERED` with the correct answer.
}

private static QuizQuestion makeQuestion10() {
Expand All @@ -157,6 +157,6 @@ private static QuizQuestion makeQuestion10() {
AnswerChoice.B, "There is no difference since everything is a branch to git",
AnswerChoice.C, "A fork requires an upstream remote whereas a branch does not",
AnswerChoice.D, "You can only make pull requests using a branch"),
AnswerChoice.UNANSWERED); // Replace `UNANSWERED` with the correct answer.
AnswerChoice.B); // Replace `UNANSWERED` with the correct answer.
}
}

0 comments on commit b7acf92

Please sign in to comment.