67 245
Assignments Done
99,2%
Successfully Done
In November 2018

Answer to Question #51030 in Other Programming & Computer Science for ayansola promise

Question #51030
A=10. WHILE (A<10){ PRINT "HI"; }. How many times will "HI" be printed by the program?

a. 10
b. 11
c. 1
d. 0
Expert's answer
“While”statement relates to the cycle statements with a precondition. If the precondition
is true the code in the brackets { } will be executed, otherwise – the code
will be missed.
A= 10;
while(A<10)                       à  10 < 10 -- false, so the loop wouldn’t be executed
{
PRINT"HI";
}
 
Right answer is: D – 0 times.

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be first!

Leave a comment

Ask Your question

Submit
Privacy policy Terms and Conditions