Solved

Consider the Following Code Selections

Question 6

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

Unlock this Answer For Free Now!

View this answer and more for free by performing one of the following actions

qr-code

Scan the QR code to install the App and get 2 free unlocks

upload documents

Unlock quizzes for free by uploading documents