Basic HTML Version

|  | Table of Contents |  | View Full Version

Page 89 - 2606_PlugGPT_C6_Flipbook
P. 89

    1.  Tick ( ) the correct option.
                        a.  Python can be used for _____________.

                            (i)  Web Development                        (ii)  Data Analysis
                           (iii)  GUI Application Development           (iv)  All of these
                        b.  Which operator is used to perform floor division in Python?

                            (i)  /                                      (ii)  //
                           (iii)  %                                     (iv)  **
                        c.  Which of the following allows to save the programs for later use?

                            (i)  Python Shell                           (ii)  Python's Editor window
                           (iii)  Command Prompt                        (iv)  All of these

                        d.  Which option is used to execute a program?
                            (i)  Check Module                           (ii)  Python Shell
                           (iii)  Run Module                            (iv)  Both (i) and (ii)

                        e.  What does IDLE stand for?
                            (i)  Interactive Development Learning Environment

                           (ii)  Integrated Development Learning Environment
                           (iii)  Integrated Debugging Learning Environment
                          (iv)  None of these

                     2.  Fill in the blanks using the words from the help box.

                                     Interactive Mode, data type, Guido van Rossum, input( ), string

                        a.  __________ defines the type of value, a variable can contains.
                        b.  A __________ value is a collection of one or more characters put in single or double-quotes.

                        c.  The __________ function allows to take the user's input while a program is being executed.
                        d.  Python was developed by __________.

                        e.  __________ gives immediate result for each command after pressing the Enter key.
                     3.  Think and answer.

                        a.  What is Python and tell one reason why is it popular among programmers?
                         ___________________________________________________________________

                        b.  What are the two basic programming modes in Python, and how do they differ from each other?
                         ___________________________________________________________________

                        c.  What are variables in Python? Mention the rules to follow while naming variables.
                         ___________________________________________________________________

                                                                                                 Introduction to Python  87

| 84 85 86 87 88 89 90 91 92 93 94 |