Search Header Logo

Topic 3: Program Control Structure

Education

University

Used 9+ times

Topic 3: Program Control Structure
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

Choose the suitable description of the uses for break statement.

i.      forcing termination

ii.     immediately terminated

iii.     resumes to any code in between

iv.    resumes to the next statement


i and ii

ii and iii

i, ii and iii

i, ii and iv

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

The continue statement

resumes the program if it is hanged

resumes the program if break was applied

skips the rest of the loop in current iteration

all of the choice

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

Determine the value of y after the following program fragment is executed.  

15

14

1

0

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which looping process checks the test condition at the beginning of the loop?  

for

if...else

do...while

while

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How many times is a do…while loop guaranteed to loop?

0

1

2

Infinitely

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which is the CORRECT syntax of for statement?

for (initialization , incrementation , expression) {  

    statement block; 

}


for (initialization ; incrementation ; expression) {     

 statement block;

 }


for (initialization ; expression ; incrementation)  {      

statement block;

 }


for (initialization) , (expression) , ( incrementation); {    

 statement block;

 }


7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Looping in a program means

Repeat the specified lines of code

Jumping to the specified branch of program

Both of above

None of above

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 Education