Looping Statement

Looping Statement

University

10 Qs

quiz-placeholder

Similar activities

Quiz on Basics of C

Quiz on Basics of C

University

10 Qs

Mid Pemrograman

Mid Pemrograman

University

10 Qs

PUBG

PUBG

3rd Grade - Professional Development

10 Qs

BE4 UPS 3 D2T10

BE4 UPS 3 D2T10

University

12 Qs

Vòng lặp for

Vòng lặp for

7th Grade - University

10 Qs

Quiz Ke 8 alprog if-09

Quiz Ke 8 alprog if-09

University

10 Qs

Applied Math

Applied Math

University

7 Qs

java operators

java operators

University

10 Qs

Looping Statement

Looping Statement

Assessment

Quiz

Computers

University

Hard

Created by

NURHANI (PBU)

Used 2+ times

FREE Resource

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

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?