Page 160 - Plus V4 with Adobe class 8
P. 160

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 a true or a 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 allows to repeat a task for a fixed number of times?

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

           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 list?
                     a.  append( )                                     b.  extend( )

                     c.  insert(x, a)                                  d.  remove( )









            158  Plus (Ver. 4.0)-VIII
   155   156   157   158   159   160   161   162   163   164   165