Page 163 - TrackpadV2.1_Class8
P. 163

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  Pro (V5.1)-VII                                                                          Periodic Assessment 4  161
   158   159   160   161   162   163   164   165   166   167   168