To declare a constant MAX LENGTH inside a methnd .. write, These lines of code a
ID: 3915909 • Letter: T
Question
To declare a constant MAX LENGTH inside a methnd .. write, These lines of code are correct a. TRUE b) FALSE 6. Consider the following lines of code: int a = 50; intb -100; double c-alb: After these lines of code have been executed, the value of c is 0.5 a. TRUE b. FALSE 7. Consider the following lines of code: int x=5; double y x++ double z=-x; /l post-increment / pre-decrement After these lines of code have been executed, y is equal to z. a. TRUE b FALSE 8. If you attempt to add an int, a byte, a long, and a float, the results will be a a. int b. byte long d. float 9. Consider the following lines of code int numCredits 85; String studentLevel; f (numCredits> 90) studentLevel "Senior"Explanation / Answer
?6.
b.False?
c = 0.0 , a and b are both integers , so a/b = 0
7.
b.False?
y = 5, z = 4
8.
d. float
9.
c. Student is not a senior.
10.
b. The variable index is used or referenced ouytside its scope.
11.
b. The result of the boolean expression is FALSE
if(true && false || false && false)
12.
a. True
precision is 2 decimal places
13.
a. Student is ready to graduate.
14.
b. The number of the elements of 2D array anIntArray is 15.
15.
b. False
intArray needs to be initialized with new
16.
c. Result = 2
After sorting 3.3 is at index 2(starting index is 0)
17.
b. False
The array is not initialized for 2 dimensions
18.
d. Allows that a super-class variable refers to sub class object.
19.
c. Allows new classes defined from the existing ones.
20.
b. Hides all the implementation details from the users.
21.
b. The private attribute numGroups of class ExpClass1 is used outside.
Incomplete Questions after 21
Do ask if any doubt. Please upvote.
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.