Basic HTML Version

|  | Table of Contents |  | View Full Version

Page 154 - 2620_Birla Open Mind C-6
P. 154

    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
                  D.  Brain Boost.                                                            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)

                      152  Premium Edition-VI

| 149 150 151 152 153 154 155 156 157 158 159 |