Page 1046 - SUBSEC October 2017_Neat
P. 1046

-  8  -




             52.    Based on the following algorithm, what     54.    The representation of the pseudocode
                    would be displayed for k?                         statement “Read number” in a flowchart
                                                                      symbol is
                           j = 5
                           k = j
                           j = j + k
                           k = i + 3
                           display k

                    (A)    10
                    (B)    11
                    (C)    13
                    (D)    14



             53.    Which of the following algorithms does
                    NOT display four consecutive numbers?

                    (A)    for v = 2 to 5
                           display v
                                                               55.    The term used to describe a memory location
                    (B)    h = 1                                      whose  value  changes  during  program
                                                                      execution is
                           while h < 5
                           display h
                           h = h + 1                                  (A)    variable
                           end while                                  (B)    volatile
                                                                      (C)    constant
                                                                      (D)    dynamic
                    (C)    for k = 7 down to 4 step −1
                           display k

                    (D)    f = 6                               56.
                           while f < 3                                Which  of  the  following  are  high-level
                           display f                                  languages?
                           f = f – 1
                                                                      I.     Pascal
                                                                      II.    COBOL
                                                                      III.    ASSEMBLY


                                                                      (A)    I and II only
                                                                      (B)    I and III only
                                                                      (C)    II and III only
                                                                      (D)    I, II and III













                                                                           GO  ON  TO  THE  NEXT  PAGE
             01229010/CSEC/SPEC 2017
   1041   1042   1043   1044   1045   1046   1047   1048   1049   1050   1051