Page 133 - Plus V4 with Adobe class 6
P. 133

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 statement?

                      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)






                                                                                                     #Python 131
   128   129   130   131   132   133   134   135   136   137   138