Consider an integer array, nums, which has been declared and initialized with one or more integer values. Which of the following code segments updates nums so that each element contains the square of its original value?
A. II only
B. I and II only
C. II and III only
D. I, II, and III
Answer:D
Consider an integer array, nums, which has been declared and initialized with one or more integer values. Which of the following code segments updates nums so that each element contains the square of its original value?
A. II only B. I and II only C. II and III only D. I, II, and III