Page 115 - ThinkGPT_V2.1_C6_Flipbook
P. 115

TeCh Ready



                 A.  Tick ( ) the correct option.

                     1.  Which of the following can be developed by using Python?
                         (i)  Games                                  (ii)  Websites

                        (iii)  Graphical user interface programs     (iv)  All of these

                     2.  Which of the following is a valid variable name?
                         (i)  _var                                   (ii)  1_var

                        (iii)  var name                              (iv)  @var

                     3.   Which of the following is a mode of programing in Python IDLE?
                         (i)  Interactive mode                       (ii)  Script mode

                        (iii)  Both (i) and (ii)                     (iv)  None of these
                     4.   Which of the following function is used to take input from the user during the execution of
                        a program?

                         (i)  input( )                               (ii)  output( )
                        (iii)  print( )                              (iv)  All of these

                 B.  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                .
                 C.  State whether these statements are true or false.

                     1.  Python is a free and open-source programming language.
                     2.  The int() function converts a string value into integer.

                     3.  Python is a fixed typed language.
                     4.  IDLE stands for Integrated Development and Learning Environment.
                 D.   Answer the following questions:

                     1.  Write any three features of Python.



                     2.   What is a prompt in Python IDLE?







                                                                                      Introduction to Python  113
   110   111   112   113   114   115   116   117   118   119   120