subject

What does the following loop do? int[] a = {6, 1, 9, 5, 12, 3}; int len = a. length; int x = 0; for (int i = 1; i < len; i++)if (a[i] > a[x]) x = i; system. out. println(x); 1. finds the position of the largest value in a.2. sums the elements in a.3. finds the position of the smallest value in a.4. counts the elements in a.

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 13:30
In which phase does software coding and testing happen in the spiral model? the spiral model does not have a separate testing phase. both, software coding and testing occurs during the phase.
Answers: 3
question
Computers and Technology, 22.06.2019 18:00
Suppose an astronomer discovers a large, spherical-shaped body orbiting the sun. the body is composed mostly of rock, and there are no other bodies sharing its orbit. what is the best way to categorize this body? a. planet b. moon c. comet d. asteroid
Answers: 1
question
Computers and Technology, 22.06.2019 22:30
Who needs to approve a change before it is initiated? (select two.) -change board -client or end user -ceo -personnel manager -project manager
Answers: 1
question
Computers and Technology, 23.06.2019 06:30
Who can provide you with a new password when you have forgotten your old one? your provide you with a new password in case you forget your old one.
Answers: 3
You know the right answer?
What does the following loop do? int[] a = {6, 1, 9, 5, 12, 3}; int len = a. length; int x = 0; for...
Questions
question
Mathematics, 21.04.2021 01:20
question
Mathematics, 21.04.2021 01:20
question
Mathematics, 21.04.2021 01:20
question
Mathematics, 21.04.2021 01:20
question
Mathematics, 21.04.2021 01:20
question
Spanish, 21.04.2021 01:20
question
Biology, 21.04.2021 01:20