Page 103 - 2502_Pakistan-kifayat_C-7
P. 103

PERIODIC ASSESSMENT 3                                           (Based on chapters 6 & 7)







                 A.  Write the output of the following programs:
                    1.  Repeat 2 times

                      {
                         Enter num1                                              num1      4      7     87    45    22
                                                                                 num2      7      5     34    32    90
                         Enter num2
                                                                                 Print
                         If num1 > num2 Then
                             Print "num1 is greater"
                         Else
                             Print "num2 is greater"

                      }
                    2.  Repeat 5 times

                           {
                                                                                 Marks     45    40     55    49    85
                             Read Marks
                                                                                 Result
                             If Marks > 50 Then

                                 Print "Pass"
                             Else
                                 Print "Fail"
                          }
                    3.  Write the algorithm to paint the boxes to make letter(X).

                                               Start












                                                                                      End


                 B.   Match the following:
                    1. (26)                  a. (1111)
                          10
                                                    2
                    2. (64)                  b. (101101)
                          10
                                                       2
                    3. (45)                  c. (11010) 2
                          10
                    4. (15)                  d. (1000100)
                                                        2
                          10
                    5. (68)                  e. (1000000) 2
                          10



                                                                                            Periodic Assessment 3 101
   98   99   100   101   102   103   104   105   106   107   108