Question
QUESTION 13 With the while loop, the body of the loop is ____. always performed at least one time performed as long as the conditional
QUESTION 13
With the while loop, the body of the loop is ____.
always performed at least one time | ||||||||||||||||||||||||||||||||
performed as long as the conditional expression evaluates to true | ||||||||||||||||||||||||||||||||
must produce a boolean result | ||||||||||||||||||||||||||||||||
must be enclosed in curly braces | ||||||||||||||||||||||||||||||||
none of the above QUESTION 14 Reviewing the code snippet below, the loop can best be categorized as a: 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; }
QUESTION 15 Reviewing the code snippet below, the value stored in variable z at the end of the execution of the loop could best be described as: 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; }
|
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