Answered step by step
Verified Expert Solution
Question
1 Approved Answer
1. Which of these expressions does not evaluate to 4.5? (1 pint) I. 9 / (double)2 II.9/2.0 III. (double)(9/2) OI only O II only O
1. Which of these expressions does not evaluate to 4.5? (1 pint) I. 9 / (double)2 II.9/2.0 III. (double)(9/2) OI only O II only O III only II and III only OI, II, and III Multiple Choice 2. Which statement is not true? (1 point) O Abstract classes can contain abstract methods O Abstract classes do not have to contain an abstract method Interfaces imply an inheritance relationship Abstract classes imply an inheritance relationship O A class may implement many interfaces, but extend only one class Multiplc Choice 3. Which of the following boolean expressions correctly determines that String s2 is greater than (2 points) String s1 in logical order? O s10 Os1.compareTo(s2)> 0 Multiple Choice 4. Suppose the following array is declared: int[] numbers - (4, 5, 6, 7;; and the following integer (2 points) is declared: int index-: 1 + 6 % 2 * 2 What is the value of numbers[index]? OAn ArrayIndexOutOfBoundsException occurs 07
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started