Services
Discover
Homeschooling
Ask a Question
Log in
Sign up
Filters
Done
Question type:
Essay
Multiple Choice
Short Answer
True False
Matching
Topic
Computing
Study Set
Java Programming
Quiz 4: Control Structures I: Selection
Path 4
Access For Free
Share
All types
Filters
Study Flashcards
Practice Exam
Learn
Question 41
Multiple Choice
Based on the code above, what is the value of y if x = 5?
Question 42
Multiple Choice
Suppose that you have the following code: int sum = 0; int num = 8; if (num < 0) sum = sum + num; else if (num > 5) sum = num + 15; After this code executes, what is the value of sum?
Question 43
Multiple Choice
If str1 is "Hello" and str2 is "Hi", which of the following could not be a result of str1.compareTo(str2) ;?
Question 44
Multiple Choice
Based on the code above, what is the value of y if x = 9?
Question 45
Multiple Choice
Based on the code above, what is the value of y if x = 1?
Question 46
Multiple Choice
Based on the code above, what is the value of x?
Question 47
Multiple Choice
Based on the code above, what is the output if lastInitial = 'E'?
Question 48
Multiple Choice
Based on the code above, what is the output if lastInitial = 'C'?
Question 49
Multiple Choice
What is the output of the following Java code? int x = 57; int y = 3; switch (x % 9) {case 0: case 1: y++; case 2: y = y - 2; break; case 3: y = y + 2; case 4: break; case 5: case 6: y = y + 3;} System.out.println(y) ;