Multiple Choice
If an array named num is dimensioned to hold 10 values, what happens if you write num[100] = 50;?
A) A compilation error will be generated
B) A runtime error will be generated
C) 50 will be stored at the 100th indexed location
D) 50 will be stored at the last legal location
Correct Answer:

Verified
Correct Answer:
Verified
Related Questions
Q58: Which of the following is a valid
Q59: int [ ] anArray = new int[24];
Q60: Arrays can be sent to methods as
Q61: When an array is sent to a
Q62: If you try to access the array
Q64: _ creates a copy of the array
Q65: The _ loop structure can be used
Q66: One of the special properties in the
Q67: Arrays can be used as fields or
Q68: To declare and instantiate memory for 4