Topic 3: Program Control Structure

Topic 3: Program Control Structure

University

10 Qs

quiz-placeholder

Similar activities

CHAPTER 3: ACCOUNTING CYCLE

CHAPTER 3: ACCOUNTING CYCLE

University

10 Qs

quantitative aptitude (SI AND CI)

quantitative aptitude (SI AND CI)

10th Grade - University

12 Qs

Plagiarism - Review

Plagiarism - Review

University

12 Qs

UMC034 QUIZ

UMC034 QUIZ

University

10 Qs

Forecasting

Forecasting

University

14 Qs

Do's and Dont's Resume

Do's and Dont's Resume

University

10 Qs

Electricity Quiz

Electricity Quiz

University

10 Qs

Resume Quiz

Resume Quiz

University

7 Qs

Topic 3: Program Control Structure

Topic 3: Program Control Structure

Assessment

Quiz

Education

University

Medium

Used 3+ times

FREE Resource

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

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?

Discover more resources for Education