Page 85 - 2502_Pakistan-kifayat_C-8
P. 85

PERIODIC ASSESSMENT 2                                         (Based on chapters 4 & 5)








                 A.  Define the following terms:

                    1.  Nesting







                    2.  Sequence







                    3.  Variable







                 B.  What will be the output of the following pseudocode?
                    Hint: A = 38


                   Start

                   Input number A

                   If A mod 2 = 0 then

                       Print "Even"

                   Else

                       Print "Odd"

                   End
                 C.  Write an algorithm to find the sum of the first N natural numbers.






















                                                                                               Periodic Assessment 2  83
   80   81   82   83   84   85   86   87   88   89   90