Exam (elaborations)
CPSC 1110 Final| 221 Questions| WITH COMPLETE SOLUTIONS
- Course
- Institution
Declare an array of integers containing the first five prime numbers correct answer: int[] primes = { 2, 3, 5, 7, 11 }; Assume the array primes is {2, 3, 5, 6, 11} What does it contain after executing the following loop? for (int i = 0; i < 2; i++) { primes[4 - i] = primes[i]; } correc...
[Show more]