0 of 16 questions completed
Questions:
You have already completed the quiz before. Hence you can not start it again.
Quiz is loading…
You must sign in or sign up to start the quiz.
You must first complete the following:
0 of 16
Time has elapsed
0 of 0 point(s), (0)
0 of 0, (0)
Essay(s) Pending: 0 (Possible Point(s): 0)
Why is == being used to check for equality when working with int or double?
!= is used to check for something not equal
What is the result of the following code snippet?
int a = 10;
int b = 20;
System.out.println(a >= 10 && b >=20);
What will be the result of the following Java snippet?
int number = 66; String numberAsString = "" + number;
What is the result of the following code snippet?
String fruit = "apples"; int fruitCount = 17; System.out.println("There are " + fruitCount + " " + fruit + " in the basket.");
What is the result of the following expression?
33 / 11 == 3 && 33 - 22 != 11
What is the result of the following expression?
12 == 6 * 2 && 12 == 4 * 3
What is the result of the following expression?
4 > 5 || 1 + 1 == 2 || 10 < 9
How would the following English statement be written in Java?
Send the email ONLY if there is text in the subject and body.
What is the result of the following Java snippet?
int childrenInClassroom = 17; int regularGroupSize = 5; int numberOfNormalSizeGroups = childrenInClassroom / regularGroupSize; int finalSmallerGroupSize = childrenInClassroom % regularGroupSize;
What is the result of the following code?
String barrelsPerHour = 5; String hours = 4; String barrelsToday = barrelsPerHour * hours; System.out.println(barrelsToday);
What is the result of the following code?
int puppiesInPark = 1; puppiesInPark++; puppiesInPark++; puppiesInPark--; puppiesInPark++; puppiesInPark--; puppiesInPark--; puppiesInPark--; System.out.println(puppiesInPark);
What is the result of the following expression?
int result = 2 + 14 * 2 - 16 / 8;
Which of the following Java expressions produces the output below?
32
What is the output of the following code?
int heightRequirement = 48; int childHeight = 44; boolean allowedToRide = childHeight >= heightRequirement; System.out.println(allowedToRide);
What is the result of the following expression?
"chicken" + "_egg" == "chicken_" + "egg"