Page 64 - tp_Modula_v2.0
P. 64

Test Sheet-1


                      (Based on chapters 1 to 5)

                                                             Section A


                  A.  Tick ( ) the correct option.

                      1.  Which of the following does the menu bar of the Python IDLE window contain?
                           a.   File                                     b.   Edit

                           c.   Shell                                    d.   All of these

                      2.  Which of the following function takes the user’s input while a program executes?
                           a.   input( )                                 b.   output( )

                           c.   print( )                                 d.   None of these

                      3.  Which one of the following has the highest precedence in a logical expression?
                           a.   Addition                                 b.   Multiplication


                           c.   Exponential                              d.   Parentheses
                      4.  Which of the following symbol(s) is/are used for comments in Python?

                           a.   //                                       b.   ‘’

                           c.   /**/                                     d.   #
                      5.  Which of the following is not the conditional statement in Python?

                           a.   if Statement                             b.    if…else Statement

                           c.    if...elif...else Statement              d.   None of these
                      6.  Which of the following conditional statements is used to test multiple conditions?

                           a.   if                                       b.   if…else

                           c.   if…elif…else                             d.   All of these

                      7.  Which of the following is a looping statement in Python?

                           a.   for statement                            b.   while statement

                           c.   if statement                             d.   break statement
                      8.  Which of the following statements terminates the execution of the loop?

                           a.   if                                       b.   for

                           c.   break                                    d.   continue








                   62     Touchpad MODULAR (Version 2.0)
   59   60   61   62   63   64   65   66   67   68   69