Basic HTML Version

|  | Table of Contents |  | View Full Version

Page 132 - 2609_Logicode
P. 132

    Periodic Assessment                          3

                                                         (Based on chapters 6 & 7)

                      1.  Write the output of the following:

                      2. Complete the following code to print numbers divisible by 3 from 0 to 100.

                      3. What will be the output of the following Python codes:

                         a.   i = 0

                             while (i == 0):
                               print("Hello Workspace")
                         b.  def info(name, age):
                                '''This will prints a passed
                                 information into the function'''
                                 print("Name: ", name)
                                 print("Age: ", age)

                                 return
                            #Now info() function is called
                            info("Taarush", 21)

                      130   Premium Edition-VIII

| 127 128 129 130 131 132 133 134 135 136 137 |