subject
Engineering, 04.06.2021 07:30 Alex9089435028

What are the contents of list after the following block of code? * int [] list = new int [5] ;
for (int j = 0; j < list. length; j++)
list [j ] = 1; for (int j = 1; j < list . length; j++)
list [j ] = list [j - 1] * 2;

A) {2, 4, 8, 16, 32}
B) {0, 0, 0, 0, 0}
C) {1, 1, 1, 1, 1}
D) {1, 2, 4, 8, 16}

ansver
Answers: 3

Another question on Engineering

question
Engineering, 04.07.2019 18:10
What difference(s) did you notice using a pneumatic circuit over hydraulic circuit.explain why the pneumatic piston stumbles when it hits an obstacle.
Answers: 2
question
Engineering, 04.07.2019 18:10
Afour cylinder four-stroke in-line engine has a stroke of 160mm, connecting rod length of 150mm, a reciprocating mass of 3kg and its firing order is 1-3-4-2. the spacing between cylinders is 100mm. i. show that the engine is in balance with regard to the primary inertia forces and primary 3. a and secondary inertia couples. li determine the out of balance secondary inertia force ii. propose ways of balancing this out of balance force and discuss the challenges that will arise
Answers: 3
question
Engineering, 04.07.2019 18:10
The thermal expansion or contraction of a given metal is a function of the f a)-density b)-initial temperature c)- temperature difference d)- linear coefficient of thermal expansion e)- final temperature f)- original length
Answers: 2
question
Engineering, 04.07.2019 18:20
Inspection for bearing condition will include: (clo4) a)-color b)-smell c)-size d)-none of the above
Answers: 1
You know the right answer?
What are the contents of list after the following block of code? * int [] list = new int [5] ;
Questions
question
Mathematics, 05.03.2021 14:00
question
History, 05.03.2021 14:00
question
Mathematics, 05.03.2021 14:00
question
Mathematics, 05.03.2021 14:00
question
Mathematics, 05.03.2021 14:00
question
Spanish, 05.03.2021 14:00
question
History, 05.03.2021 14:00
question
Biology, 05.03.2021 14:00
question
Mathematics, 05.03.2021 14:00
Questions on the website: 13722363