Page 16 - tp_Modula_v2.0
P. 16

Exercise


                  A.   Tick ( ) the correct option.

                      1.    Which of the following can be developed by using Python?

                           a.   Games                                    b.   Websites
                           c.   Graphical user interface programs        d.   All of these
                      2.   Which of the following does the menu bar of the Python IDLE window contain?

                           a.   File                                     b.   Edit

                           c.   Shell                                    d.   All of these
                      3.    Which of the following mode saves the commands entered by the user in the form of a program?

                           a.   Interactive mode                         b.   Script mode
                           c.   Both a and b                             d.   All of these

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

                           c.   print( )                                 d.   None of these
                  B.  Write 'T' for true and 'F' for false.
                      1.   Python is a free and open-source programming language.                         ……………………

                      2.   The byte code makes it difficult to execute or run the code in future.         ……………………

                      3.   Python is a fixed typed language.                                              ……………………
                      4.   IDLE stands for Integrated Development and Learning Environment.               ……………………


                  C.  Fill in the blanks using the words given below:


                                             Guido van Rossum, Variables, print(), line by line, Prompt


                      1.   Blinking cursor after the symbol (>>>) in the window is …………………… .

                      2.   Python was developed by …………………… .
                      3.   …………………… are memory reference points to store values.
                      4.   The …………………… function prints or sends the output to the standard output device.

                      5.   The code written in Python is executed …………………… .
                  D.   Short answer type questions.

                      1.   Write any three features of Python.
                      2.   Define the term byte code.
                      3.   Write the syntax to declare and initialise a variable.







                   14     Touchpad MODULAR (Version 2.0)
   11   12   13   14   15   16   17   18   19   20   21