thomas batycki
Mar 25, 2017, 05:36 AM
for ( expr1 ; expr2 ; expr3 ) {
statement;
}
Which two statements are true?
A. This is not the only valid for loop construct; there exits another form of for loop constructor.
B. The expression expr1 is optional. It initializes the loop and is evaluated once, as the loop begin.
C. When expr2 evaluates to false, the loop terminates. It is evaluated only after each iteration through
the loop.
D. The expression expr3 must be present. It is evaluated after each iteration through the loop.
Assuming all spelling is fine:
option B and C is correct or A and C
Is triky question, for me is B and C. True?
Thanks
Thomas
statement;
}
Which two statements are true?
A. This is not the only valid for loop construct; there exits another form of for loop constructor.
B. The expression expr1 is optional. It initializes the loop and is evaluated once, as the loop begin.
C. When expr2 evaluates to false, the loop terminates. It is evaluated only after each iteration through
the loop.
D. The expression expr3 must be present. It is evaluated after each iteration through the loop.
Assuming all spelling is fine:
option B and C is correct or A and C
Is triky question, for me is B and C. True?
Thanks
Thomas