Page 153 - Trackpad_V1_Book 7_Flipbook
P. 153

Periodic Assessment                          4

                                                    (Based on chapters 10 & 11)

                 1.  If a = 10, b = 5 and c = 20, then what will be the output of the following statements:

                     a.   print(a > b and b < c)     __________________________
                     b.   print(a ** b + c)                    __________________________

                     c.   print(a, b, c)                      __________________________
                     d.   print(a > b or b > c)     __________________________

                     e.   print(a // b – 2 + c)                __________________________
                 2.  Look at the given pictures and write their names.
                     a.





                                                     ______________________________________________

                     b.





                                                     ______________________________________________

                     c.





                                                     ______________________________________________

                     d.





                                                     ______________________________________________


                 3.  Answer the following questions:

                     a.  Write the difference between logical error and syntax error.
                          _________________________________________________________________

                          _________________________________________________________________

                     b.  What is the use of intelligent security?
                          _________________________________________________________________

                          _________________________________________________________________





 PB  Trackpad (Version 1.0)-VII                                                              Periodic Assessment 4  151
   148   149   150   151   152   153   154   155   156   157   158