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

The ratio of vinegar to water is 1 to 16. How many fluid ounces of vinegar should be mixed with 80 fluid ounces of water? Please explain... Thanks :)
Which of the following phyla have representatives that exhibit radial symmetry throughout their entire lives? a. Cnidarians b. Mollusks c. Arthropods d. Annelid
what does Mg stand for in chemistry
Why did the speaker in “The Wanderer” leave his home? A. He was a coward in battle. B. He wanted to go to sea. C. His wife died. D. His lord died.
Why was Great Britain the first nation to fully industrialize?
bill took a job through an employment agency. the job pays $710 per week bill must pay a fee to the employment agency. the fee is 15% of his first four weeks pa
How many United states senators do we have
Similarity in 85, 17, 19, 4, 2
after reading a book for english class,100 students were asked whether or not they enjoyed it.nine twenty-fifths of the class did not like the book.how many stu
In the Raven By Edgar Allen poe lines 37-38 What examples of onomatopoeia can you find?