Search Header Logo

C++ quiz 6

Authored by cybernaut c++team

Professional Development

Professional Development

Used 2+ times

C++ quiz 6
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How many Types of loops are there?

1

4

3

2

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

odd one out

while

dowhile

for

Switch

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Choose the correct Syntax .

for(initialization,condition,increment/decrement)

for(initialization,condition,increment/decrement);

for(initialization;condition;increment/decrement)

for(initialization;condition;increment/decrement);

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

for(int i=0;i<5;i++)

{

cout<<"hello";

}

how many times does the loop runs.

4

5

6

0

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

for(int i=1;i<5;i++)

{

if(i==3)

{

break;

}

cout<<i<<" ";

}

what is the output of the program?

1 2

1 2 3

1 2 3 4

1 2 3 4 5

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

what is syntax of continue statement?

continue

continue;

cont;

cont

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the operation for break statement?

It skips the specific condition.

It terminates the loop when the specific condition is reached

It terminate the whole loop

No output

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?

Discover more resources for Professional Development