Page 88 - Touchcode_C8_Flipbook
P. 88

TEST SHEET 2


                                                         Based on chapters 3 to 5



                  A.  Tick ( ) the correct option.

                      1.  Which of the following repeats the certain lines of code in sequence?

                          a.  Event                                     b.  Function
                          c.  Redundancy                                d.  Parameter

                      2.  Which of the following are the variables accepted by a function to perform the set of tasks
                          defined in its body.

                          a.  Function parameters                       b.  Argument
                          c.  Parameter                                 d.  Function

                      3.  Which method is used to add an element to an array?
                          a.  append()                                  b.  add()

                          c.  delete()                                  d.  remove()

                      4.  Which method is used to arrange elements in either ascending or descending order?
                          a.  sort()                                    b.  pop()

                          c.  delete()                                  d.  remove()

                      5.  Which of the following is an ordered set of instructions or tasks?
                          a.  Sequence                                  b.  Selection

                          c.  Iteration                                 d.  Looping
                      6.  Which of the following is a step by step process of solving a problem?

                          a.  Algorithm                                 b.  Sequencing
                          c.  Loops                                     d.  Selection


                  B.  State whether the following statements are true (T) or false (F).

                      1.  Pattern is a series of things that are not repeated in sequence.


                      2.  Function parameters are variables global to function.

                      3.  Arrays are dynamic.


                      4.  Bubble Sort is the simplest sorting algorithm.

                      5.  A sequence is an unordered set of instructions.


                      6.  A bug is an expected problem in your program.



                   86     Touchcode-VIII
   83   84   85   86   87   88   89   90   91   92   93