Page 116 - TP_Modular_V2.1_Class8
P. 116

Worksheet  4

                                                     (Based on chapters 8 & 9)


                  A.  Guess! Who am I?
                      1.  I am an app store developed by Google.                                          ...........................
                      2.  I am a mobile operating system developed by Apple Inc.                          ...........................

                      3.  I am an app created by combining the features of native app and web app.        ...........................
                      4.  I am a category of apps which shared more than 24% area of the app store.       ...........................

                      5.   I am a category of apps that provides a platform for children to learn from
                          anywhere and anytime.                                                           ...........................
                      6.  I am a category of apps which allows people to connect with friends and
                          family members.                                                                 ...........................

                  B.  Find the error in the given codes and rewrite the correct codes.

                      1.  i = 0

                          While i < 5:

                          print(i)
                          i += 1
                          if i = 3

                          break
                          else:

                          print(0)
                      2.  i = 0
                          while i < 3
                          print (i)
                          i += 1
                          else
                          print (0
                  C.  Write a program to print first 20 odd numbers in decreasing order using for loop in Python.




















                  114       Modular (Ver. 2.1)-VIII
   111   112   113   114   115   116   117   118   119   120   121