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
Ajournal bearing has a journal diameter of 3.250 in with a unilateral tolerance of 20.003 in. the bushing bore has a diameter of 3.256 in and a unilateral tolerance of 0.004 in. the bushing is 2.8 in long and supports a 700-lbf load. the journal speed is 900 rev/min. find the minimum oil film thickness and the maximum film pressure for both sae 20 and sae 20w-30 lubricants, for the tightest assembly if the operating film temperature is 160°f. a computer code is appropriate for solving this problem.
Answers: 3
question
Engineering, 04.07.2019 18:10
Which of the following components of a pid controlled accumulates the error over time and responds to system error after the error has been accumulated? a)- proportional b)- derivative c)- integral d)- on/off.
Answers: 2
question
Engineering, 04.07.2019 18:20
Along 8-cm diameter steam pipe whose external surface temperature is 900c connects two buildings. the pipe is exposed to ambient air at 70c with a wind speed of 50 km/hr blowing across the pipe. determine the heat loss from the pipe per unit length. (b) air at 500c enters a section of a rectangular duct (15 cm x 20 cm) at an average velocity of 7 m/s. if the walls of the duct are maintained at 100c. a) the length of the tube for an exit temperature of the air to be 40 0c. b)the rate of heat transfer from the air. c) the fan power needed to overcome the pressure drop in this section of the duct.
Answers: 1
question
Engineering, 04.07.2019 19:10
In general, how do thermosetting plastics compare to thermoplastics in mechanical and physical properties?
Answers: 3
You know the right answer?
Before the loop begins, status is an array list of strings which contains [freshman, sophomore, juni...
Questions
Questions on the website: 13722359