Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

correct answers #91

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.
"0b00100010"); // 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.
}
}