Page 71 - KEC Khaitan C7 Flipbook
P. 71

e.  In order to save and reuse programs, where should the code be written?
                        (i)  Python Shell                           (ii)  Python Editor’s window

                       (iii)  Command Prompt                       (iv)  None of the above


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

                                           Interpreted, Quotes, Operands, High-level


                    a.  Python is a __________ object-oriented programming language.

                    b.  To write a multi-line comment in Python, we use the triple __________.
                    c.  Python is also an __________ language that executes code line by line.

                    d.  The values that the operators use to get the output are called __________.

                 3.  Answer in one or two words.

                    a.  Who is the creator of Python?                    _____________________________________

                    b.   What type of language is Python in terms of
                       memory allocation?                                _____________________________________

                    c.  What is the file extension for Python files?     _____________________________________

                    d.   What is the name of the interactive Python code
                       writing environment?                              _____________________________________
                 4.  Think and answer.

                    a.  Vyom wrote a few programs in Python and was using a Windows PC at the time.

                       He then sent the programs to his friends who use Linux and Macintosh. Will they be
                       able to execute his programs? If yes then which feature of Python would make this
                       possible?
                     _______________________________________________________________________________

                     _______________________________________________________________________________

                    b.   A school library wants to create a simple system where students can enter their name, class, and
                       the name of the book they want to borrow. Write a Python program that takes these details as input
                       from the user and then prints a confirmation message.

                     _______________________________________________________________________________

                     _______________________________________________________________________________

                    c.   Renuka found the programming language user-friendly but then wondered why it is called a high-lev-
                       el language. How would you explain the characteristics that make a language high-level?

                     _______________________________________________________________________________
                     _______________________________________________________________________________




                                                                                             Introduction to Python  69
   66   67   68   69   70   71   72   73   74   75   76