Question
QUESTION 10 What would be the output produced from the following statements? int i = 0; while (i < 0) { Write({0}t, i); i++; }
QUESTION 10
What would be the output produced from the following statements? int i = 0; while (i < 0) { Write("{0}\t", i); i++; } Write("{0}\t", i);
0 | ||
an infinite loop | ||
an error | ||
0 0 | ||
none of the above |
QUESTION 11
The third programming construct repetition is also called ____________.
QUESTION 12
How many times is the loop body of the while statement executed? int i = 0, g = 0, s = 0, t = 0, z = 0; string sValue; while (i < 5) { inValue = ReadLine( ); t = Convert.ToInt32(inValue); s = s + t; if (t > ?1) g = g + 1; else z = z + 1; i = i + 1; }
once | ||
never | ||
four times | ||
five times | ||
until a number 5 or larger is entered |
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started