Multiple Choice
If x is a char and values is an int array, then values[x]
A) causes a syntax error
B) causes an Exception to be thrown
C) casts x as an int based on x's position in the alphabet (that is, if x is an 'a' it uses 0 and if x is a 'z' it uses 25)
D) casts x as an int based on x's ASCII value (that is, if x is an 'a' it uses 97 and if x is a 'z' it uses 122)
E) casts x as an int based on the digit that is stored in x (that is, if x is a '3' it uses 3) but throws an Exception if x does not store a digit
Correct Answer:

Verified
Correct Answer:
Verified
Q35: A polyline object in Java is<br>A) an
Q36: So long as one is only accessing
Q37: Just as arrays can only have a
Q38: Write a method that takes an array
Q39: Code Example Ch 08-1<br>Assume an int array,
Q40: Assume Movie is a class whose objects
Q41: Code Example Ch 08-1<br>Assume an int array,
Q42: Which of the following would initialize a
Q43: In a two-dimensional array, both dimensions must
Q45: Write a method to compute and return