Page 139 - Computer Science V2.0 Class 11
P. 139
3. When the Python shell opens, which of the following is not displayed?
a. Interpreter version
b. Processor and platform information
c. Python prompt
d. User Name
4. Which of the following is one of the shortcomings of Python?
a. Slow Speed b. Vast library of functions c. Platform independent d. Automatic garbage collection
5. A variable in Python may refer to different types of data in the same program. This feature of Python is known as
______________.
a. Multiple typing b. Dynamic Typing c. Variable typing d. Interpreted Typing
B. State whether the following statements are True or False:
1. Python is platform-independent. ________
2. The default Python prompt is <<<. ________
3. Python only allows numbers to be displayed using print(). ________
4. A program in machine language is known as source code. ________
5. The interactive Python interpreter is also known as the Python Shell. ________
C. Fill in the blanks.
1. Python is a ________________ independent language.
2. A Python programs is also known as __________________.
3. The default extension of a Python program file is ___________.
4. The shortcut key to run a Python script is ______________.
5. The command to display the output on the screen is __________.
D. Answer the following questions:
1. Why is Python called an open-source language?
2. What is the use of Python libraries?
3. Why is it easier to debug Python code?
4. Give a method for running a saved Python program?
5. Why is Python considered a dynamically typed language?
6. Why is a Python program more prone to runtime errors?
7. Expand the acronym: IDLE.
E. Application Based 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:
a. 13/6+5*4
b. 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)
Getng Started with Python Programming 125

