Page 164 - TP_Play_V2.2_Class8
P. 164

TEST SHEET  2                          (Based on chapters 6 to 11)







              A.  Choose the correct option.

                 1.   The result of the computer’s decision for a                 will always be either true or false.
                          a.  loop                                          b.  condition

                          c.  Both a. and b.                                d.  None of these

                 2.  A loop is used to execute instructions or a block of code                 times.
                          a.  two                                           b.  three

                          c.  multiple                                      d.  infinite

                 3.  Which of the following is a conditional statement in Python?
                           a.  for statement                                 b.  while statement

                           c.  if statement                                  d.  break statement

                 4.  Which of the following statements allow/allows to repeat a task for a fixed number of times?
                           a.  for statement                                  b.  if statement

                           c.  continue statement                            d.  Both a. and b.

                 5.  Which type of function is append( )?
                          a.  Built-in                                      b.  User-defined

                          c.  Not a valid function                          d.  None of these

                 6.  What is the input given to the functions referred to as?
                          a.  Return Value                                  b.  Name

                          c.  Arguments                                     d.  None of these

                 7.  Which of the following does negative indexing mean?
                           a.  Index of 0 refers to the last elements of the list

                           b.  Index of -1 refers to the last elements of the list

                           c.  Index of -2 refers to the last elements of the list

                           d.  Index of -3 refers to the last elements of the list
                 8.  Which of the following methods is used to add one element to the end of the list?

                           a.  append( )                                     b.  extend( )

                           c.  pop()                                         d.  remove( )









                  162  Plus (Ver. 4.0)-VIII
   159   160   161   162   163   164   165   166   167   168   169