marcbeaubrun marcbeaubrun
  • 10-05-2017
  • Computers and Technology
contestada

How many times does the following code execute?
int x=0;
int y=3;
While x<=y
x=x+1;
endWhile

A. 0B. 3C. infiniteD. 4 Program design and development

Respuesta :

rsmith6559
rsmith6559 rsmith6559
  • 11-05-2017
The first time the while statement is evaluated, x = 0 so the answer is D. 4
Answer Link
iCryptic
iCryptic iCryptic
  • 12-05-2017
Infinite because it is a infinite loop that is true and the first two lines were just declaring variables
Answer Link

Otras preguntas

who was Jimmy Carter. who was Jimmy Carter
A poem's rhyme scheme is part of its A. theme. B. diction. C. sound. D. structure.
Solve this problem using estimation. Melissa bought 18 cupcakes and 2 gallons of fruit punch for her Valentine party. If the cupcakes cost $.33 each and the pun
The purpose of the judicial branch is to interpret laws. revise laws. enforce laws. create laws.
Which law made it harder for some Europeans to immigrate to the United States and easier for others? (people are saying different answers??)
which sequence of letters put these events in chronological A. Crusades B. Fall of the Roman Empire C. Golden Age of Greece D ...
What is the value of y in the equation 3(3y − 12) = 0? 4 5 6 9
The verb is underlined in the sentence. What principal part is the verb? Bill laid the blocks in several rows. A. past B. present participle C. past participle
Silva set up a dog-walking buisness. He earned $60 in June. He is projected to earn 110% more in July. How much is Silvia projected to make in July?
The sum of 1026 and 389