Contents

The set of statements is also called….
a) block of statement
b) block of code
c) statement of block  
d) code of block

a

Which programming statement decides?
a) if                                       
b) break
c) assignment                      
d) print ()

a

Which of the following symbol is used to enclose if statement?
a) {}                                      
b) []
c) ()                                        
d) <>

c

Which of the following is not part of if statement?
a) a condition that evaluates                          
b) a condition that evaluates true or false
c) a true block                     
d) false blocks

a

Which statement executes block of statement when condition is true and execute other statement when condition is false?
a) if statement                     
b) if-else statement
c) switch statement            
d) none of these

b

Which of the following is the correct syntax of if-else statement?
a) if(condition) statement                 
b) else statement
c) if statement                     
d) both a & b

d