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

What is the difference between a nursing home and a hospice? 1. A hospice provides care for the aging, disabled, and chronically ill while a nursing home pro
Square, one side length 2& 11 mile:
?a(n_______ is a layer of intermediaries that performs some work in bringing the product and its ownership closer to find the final buyer. a. supply chain b.
Can I get some help? I REALLY need it!
why is shakespeare still so widely read after hundreds of years
PLZZZ HELP  A student solved this problem by making a table. Jules bought a scarf and a patch for each of the 8 summer campers in his group. The scarves cost
Excessive sweating, dryness of the mouth, weakness, and an increased pulse rate are results of not consuming enough:
write the number 110 as a sum of hundreds and tens
In addition to local courts, the District of Columbia also has _____. a.a district courtB.a military commissionC.a tax courtD.a civilian tribunal
Write forty-eight out as a hundred as a hundred as a fraction in simplest form.