Page 144 - TechPluse_C7_Flipbook
P. 144

Periodic Assessment 4



                                                      (Based on chapters 9 to 11)

                  A.  What will be the output of the following program of BASIC-256:

                      A$ = "S"
                      IF A$ = "Z" THEN
                      PRINT "Yippie, you have entered Z key!!!"

                      ELSE
                      PRINT "Oh, you have entered something else."
                      END IF

                  B.  Write a Python program to calculate the area of a square.








































                  C.  What will be the output of the following program:
                      y = 10

                      x = y + 2
                      print(x)












               142      Plus (Ver. 3.1)-VII
   139   140   141   142   143   144   145   146   147   148   149