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 value of the expression –9 – 7 + 5? A. 11 B. 3 C. –11 D. –7
During the Renaissance, dramatists began writing about A. science. B. religion. C. everyday people. D. history.
What does Wiesel say about "memory" in his speech?
Which is the most accurate description of the federalist papers?
caroline has 10 marbles. One half of them are blue. How many of Caroline marbles are blue?
The equation below shows hydrogen reacting with oxygen to produce water. 2H2 + O2 -----> 2H2O If 16 mol of oxygen were reacted with excess hydrogen ga
Measurements that are close to the correct value are strategic? precise? accurate? consistent?
Element M has two isotopes,^104M and ^106M. The relative atomic mass of M is 104.4.What is the relative abundance of ^106M? A:10% B:20% C:30% D:40%
A compound mystery. why is a can of peas an carrots a mixture? what other mixtures can u list
what happends if john smith was not wffect jamestownould it