Theory final-part4.docx - Question 16 1/1 poin t Which...

This preview shows page 1 - 3 out of 3 pages.

Question 16Which statements about the enhancedforloop are true forarrays of primitive data?I. It is suitable for all array algorithms.II. It does not allow the contents of the array to be modified.III. It does not require the use of an index variable.1 / 1pointA)I, II onlyB)I, III onlyC)II, III onlyD)I, II, III
Question 17Assume the variablenumbershas been declared to be anarray that has at least one element. Which is the followingrepresents the last element innumbers1 / 1point?
Question 181 / 1poin
tConsider the following line of code:int[] somearray = new int[30];Which one of the following options is a valid line of code for
End of preview. Want to read all 3 pages?

Upload your study docs or become a

Course Hero member to access this document

Term
Fall
Professor
Hamdy
Tags
Array, Following, Imperative programming, Primitive data type, new ArrayList

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture