Page 61 - Modular v1.1 Pyhton
P. 61

9.   Which of the following is a block of code to perform a particular task?

                         a.    Function                                 b.   Operator

                         c.    Parameter                                d.   Argument

                     10.  Which of the following is an example of built-In functions?
                         a.    print( )                                 b.   input( )

                         c.    Both a and b                             d.   None of the above

                 B.  Write ‘T’ for true and ‘F’ for false.
                     1.  Python is a fixed typed language.                                              ……………………
                     2.  Comments are the most helpful part of any program.                             ……………………

                     3.   The if...elif...else statement allows you to test multiple conditions.        ……………………
                     4.  A sequence is a succession of values bound together by a single name.          ……………………

                     5.  A function can or cannot have any parameters.                                  ……………………
                 C.  Fill in the blanks.
                     1.  …………………… are memory reference points to store values.

                     2.  …………………… of operators determines the order in which the operators are executed.
                     3.  Decision statements may give the results true or …………………… .

                     4.  The …………………… loop never ends.
                     5.  …………………… keyword begin the function definition.


                                                            Section B
                 A.   Short answer type questions.

                     1.  Write any three features of Python.
                     2.   What is the use of variables in Python?

                     3.  What is decision making statement?
                     4.   What is the use of Jump statement?
                     5.  What are functions?

                 B.   Long answer type questions.
                     1.   State any four variable naming conventions.

                     2.    What is the use of comments in programming? How many types of comments are there in
                         Python?
                     3.   Draw the flowchart for nested if statement.
                     4.  Draw the flowchart of the for loop.

                     5.  How can we call a function in Python? Explain using an example.








                                                                                                  Test Sheet-1    59
   56   57   58   59   60   61   62   63   64   65   66