Page 171 - 2620_Birla Open Mind C-7
P. 171

PERIODIC ASSESSMENT 4                                         (Based on chapters 9 to 11)








                 A.  Write the output of the following Python program:

                    student_marks = 90
                    passing_marks = 50

                    if(student_marks >= passing_marks):

                             print("Congratulations!!!")
                             print("You have passed the exam")

                    else:

                          print("Failed")
                 B.  Write the syntax for if…elif…else statement.















                 C.  Color the boxes as per the program.

                      If (box has )                                
                      then
                                                                        
                      colour it red
                      else                                                   
                      colour it yellow


                 D.  Write the names of the following smart devices:













                      1.                                  2.                                3.







                                                                                               Periodic Assessment 4 169
   166   167   168   169   170   171   172   173   174   175   176