Contents

Which of the following is used to control the flow of execution in program?
a) control structure
b) data structure
c) data control                     
d) program control

a

How many types of selection structures are used in programming?
a) one    
b) two    
c) three 
d) four

c

Explanation: if, if…else, switch


Another term for computer making decision is……
a) sequential                        
b) selection
c) repetition                          
d) iteration

b

Which of the following is simplest form of selection structure?
a) if statement    
b) if-else statement
c) nested if                           
d) switch statement

a

When did statements after if statement is executed?
a) condition is true            
b) condition is false
c) both a & b                       
d) none of these

a

Which of the following is syntax of if statement?
a) if{condition} statement
b) if(condition) statement
c) if” condition” statement                               
d) all of these

b