
Loops in C++
Authored by Anna Niewodniczanska
Computers
12th Grade
Used 80+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
5 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
How many times the following code will be executed:
for(int i=0; i<=10; i++) cout<<i<<endl;
1
10
11
9
2.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Which line does contain the error in the following code:
1: int i, j = 5;
2: for(i = 1, i <=5, i++)
3: cout<< i << endl;
Line 1
Line 2
Line 3
Line 1 and 3
3.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
If you want to create counter from 1 to N, what's the best command to use ?
for
while
do while
switch
4.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Which one is not a loop?
for
have
do
while
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What loops will always execute at least once?
for
do
while
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?