Solved

Consider the Following Code Selections

Question 10

Multiple Choice

Consider the following code selections. Assume count is initialized to 7 and num is initialized to 0.
I. ii)
Do
{ while ( count < 6 )
Num = count; num = count;
} while ( count < 6 )
What will the value of num be for i) and ii) respectively after the loops have been executed


A) 0, 0
B) 0, 7
C) 7, 0
D) 7, 7

Correct Answer:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions