Topic 3: Program Control Structure

Topic 3: Program Control Structure

University

10 Qs

quiz-placeholder

Similar activities

MSD QUIZ-04

MSD QUIZ-04

University

15 Qs

Casting

Casting

University

10 Qs

Chapter 14: Preparing to Move Forward

Chapter 14: Preparing to Move Forward

University

11 Qs

CHAPTER 3: ACCOUNTING CYCLE

CHAPTER 3: ACCOUNTING CYCLE

University

10 Qs

Houseowner/Householder Insurance

Houseowner/Householder Insurance

University

6 Qs

8085 INSTRUCTION - DATA TRANSFER AND ARITHMETIC

8085 INSTRUCTION - DATA TRANSFER AND ARITHMETIC

University

15 Qs

Warriors Elite Club - Feb'23

Warriors Elite Club - Feb'23

University

10 Qs

quantitative aptitude (SI AND CI)

quantitative aptitude (SI AND CI)

10th Grade - University

12 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?