Search Header Logo

Looping Statement

Authored by NURHANI (PBU)

Computers

University

Used 2+ times

Looping Statement
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

1.       Identify which is NOT the type of looping control structure.

For

If..else

While

Do...while

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Identify the numbers of ‘do..while’ loop which are guaranted to loop.

3

2

1

0

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Identify the number of repetitions that will occur for the following looping control structure below.

for ( int count=0; count <=20; count ++)

18

19

20

21

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

Choose the control structures that have the same concept with the sample code in Figure 2.

For

Do..While

Nested if

Switch Case

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the statement show the characteristic of the ‘continue’ command.

I. It immediately terminate a loop

II. It is use in ‘switch’ control statement.

III. It skip over a loop.

IV. It is use in looping control.

I & II

II & III

III & IV

II, III & IV

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following looping command is INCORRECT ?

for (int x=0 ; x<3 ; ++x)

{ cout<<”ABC”; }

for (int x=0 ; x<3 ; --x)

{ cout<<”ABC”; }

for (x=0; x<3 ; --x)

{ cout<<”ABC”; }

for (int x=0; x<3 ; --x) ;

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Find the suitable statement for X so that the following looping control statement will loop itself three (3) times.

int X=1;

while ( X )

{ cout<< X;

++X; }

X < 3

X > 3

X < 4

X < = 4

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 Computers