Page 43 - tp_Modula_v2.0
P. 43

Periodic Assessment-1

                                                     (Based on chapters 1 to 3)



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

                      x = 2

                      y = 3

                      print('Sum of',x,'and',y,'is',x+y)
























                 B.     Write a program to print the even numbers between 1 and 25 by using the conditional
                      statement.





























                 C.    Write the use of the following operators:

                      1. AND ……………………………………………………………………………………………………...........................…

                      2. Not equal (!=) ………………………………………………………………………………………………………..........



                                                                                         Periodic Assessment-1    41
   38   39   40   41   42   43   44   45   46   47   48