Page 118 - TP-Play_V-2.0_Book-8
P. 118

Periodic Assessment  4


                                              (Based on chapters 9 & 10)

            A.  Write the full form of the following abbreviations:

                1  NLP: ........................................................................................................................................................................................

                2.  CV: ...........................................................................................................................................................................................

                3.  AI: ............................................................................................................................................................................................

            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 while loop in Python.




























            118       Play (Ver. 2.0)-VIII
   113   114   115   116   117   118   119   120   121   122   123