Javeria Ismail (20) Loops MCQ
Javeria Ismail (20) Loops MCQ
Loop’s MCQs
Submitted To:
Mr. Amir Jamshaid
Submitted by:
Javeria Ismail
Roll#: 20
Q1: Choose the correct option.
5. For(; ;)
a. Means the test which is done using some expression is always true
b. Not valid c. Will loop forever
8. Which looping process is best used when the number of iterations is known?
a. While c. for
b. Do – while d. All
9. If the variable count exceeds 100, a single statement that prints “Too many” is:
a. if (count<100) cout<<”Too many”;
b. if (count>100) cout>>”Too many”;
c. if (count>100) cout<<”Too many”;
d. none