subject
Engineering, 10.01.2020 02:31 Drreeaa

Before the loop begins, status is an array list of strings which contains [freshman, sophomore, junior, senior, graduate]. what is the result after the following segment of code is executed? int i=status.; while(i> =0){ string temp = status. get(i); status. set(math. abs(i-status. size()+1), status. get(i)); status. set(i, temp); i--; }
a.
this is an example of an infinite loop

b.
status contains [graduate, senior, junior, senior, graduate]

c.
status contains [graduate, senior, junior, sophomore, freshman]

d.
status contains [freshman, sophomore, junior, senior, graduate]

e.
status contains [freshman, sophomore, junior, sophomore, freshman]

ansver
Answers: 2

Another question on Engineering

question
Engineering, 04.07.2019 18:10
Manometers are good examples of measuring instruments, nowadays they are not as common as before. a)-capacitive probe gauges b)-gravitational gauges deformation ) gauges d)-digital gauges
Answers: 1
question
Engineering, 04.07.2019 18:10
Water at the rate of 1 kg/s is forced through a tube with a 2.5 cm inner diameter. the inlet water temperature is 15°c, and the outlet water temperature is 50°c. the tube wall temperature is 14°c higher than the local water temperature all along the length of the tube. what is the length of the tube?
Answers: 3
question
Engineering, 04.07.2019 19:10
Apressure vessel with an r/t 20 cannot be treated as thin walled vessel. a)-trune b)- false
Answers: 3
question
Engineering, 04.07.2019 19:10
The air in an automobile tire with a volume of 0.015 m3 is at 32°c and 140 kpa gage. determine the amount of air that must be added to raise the pressure to the recommended value of 206 kpa gage. assume the atmospheric pressure to be 128 kpa and the temperature and the volume to remain constant.[r-0.287 kj/kgk]
Answers: 3
You know the right answer?
Before the loop begins, status is an array list of strings which contains [freshman, sophomore, juni...
Questions
question
Biology, 08.10.2019 12:30
question
Health, 08.10.2019 12:30
question
Mathematics, 08.10.2019 12:30
Questions on the website: 13722363