Page 138 - TP_Plus_v4_Class6
P. 138

3.   What does IDLE stand for?



                     4.   Write the output of the following statement:

                        print("Hello!", "How", "are you?")


                     5.    What will be the output of the following Python statements?

                         a.  print(12 // 2 + 7 - 8)

                         b.  34*98*2*5 – 1076/2


                     6.  Distinguish between the following with the help of examples:

                         a.  AND operator and OR operator





                         b.  Modulus operator and Division operator




                         c.  Single line comment and Multiple line comment





                                                                                             21 st   #Technology Literacy
                     Scratch Your Brain.                                                  Century   #Productivity & Accountability
                                                                                            Skills
                      1.  What will be the output of the following programs?

                         a.  a = 4.5
                           b = 2

                           print (a//b)
                         b.  y = 10

                           y += 2
                          print(y)
                         c.  p, q, r = 10, 20 ,30

                           print(p, q, r)


                         d.  var1 = 1

                           var2 = 2
                           var3 = 3
                           print(var1 + var2 + var3)






                  136  Plus (Ver. 4.0)-VI
   133   134   135   136   137   138   139   140   141   142   143