Page 56 - Information_Practice_Fliipbook_Class11
P. 56

6.  Why is a Python program more prone to runtime errors?
           7.  Expand the acronym: IDLE.
        E.  Lab Exercise Questions:
           1.  Download and install Python on your device. What is the version of Python that is installed on your system?
           2.  Write a command in Python Shell to print your name and execute it. Write a script having the same command, save it, and
              execute it.
           3.  Open the Python Shell and display the result of computing the following expressions:
              (i)  13/6+5*4
              (ii)  22/7*5*5
           4.  Execute the following commands in the Python Shell and evaluate the output.
              >>> print("I am learning Python")
              >>> print("I am a class 11 student")
              >>> print("I will now play with numbers")
              >>> print(10+20+30+40+50)
              >>> print(2*22/7*4)

                Assertion and Reasoning Based Questions


               The following questions are assertion(A) and reasoning(R) based. Mark the correct choice as
              a.  Both A and R are true and R is the correct explanation of A
              b.  Both A and R are true and R is not the correct explanation of A
              c.  A is true but R is false
              d.  A is false but R is true
           1.  Assertion(A): Python is platform-independent.
              Reasoning(R): Python can be downloaded and installed free of cost from www.python.org
           2.  Assertion(A): In interactive mode, the Python interpreter provides feedback to the user interactively.
              Reasoning(R): In the Python shell, the interpreter executes a single command and displays the result.


                Case-based Questions



           1.  Ritwika wants to display her name, class, and section using interactive mode as well as  using script mode so that she is able
              to understand the difference between the two modes. Help her to complete the task by writing the steps to display data in
              both modes.
           2.  Krishnan has programmed in several languages other than Python but now he wants to explore Python. His teacher has
              asked him to create a presentation explaining all features of Python. Help him complete the task.




                                                       Answers
          Multiple Choice Questions
          1. (c)      2. (b)     3. (d)     4. (a)      5. (b)     6. (b)     7. (a)      8. (b)
          True or False
          1. (T)      2. (F)     3. (F)     4. (F)      5. (T)     6. (T)
          Fill in the blanks
          1. source             2. binary            3. Guido Van Rossum   4. garbage, garbage collection
          5. Interactive, Script   6. print()        7. Alt + P


          42   Touchpad Informatics Practices-XI
   51   52   53   54   55   56   57   58   59   60   61