Page 55 - Information_Practice_Fliipbook_Class11
P. 55
(iii) Once the Python is downloaded, double-click on the executable file to run the setup. Follow the instructions to install
the software.
2. Arunima installed Python on her laptop. She read about IDLE and the two working modes of the Python application but
could not understand them completely. Explain to her about IDLE and the two modes of using Python.
Ans. Integrated Development Learning Environment (IDLE) is a simple, integrated learning environment that allows us to create,
edit, run, and debug a Python program interactively.
IDLE has two main window types—the Shell window and the Editor window—giving us two modes to work – Interactive
Mode and Script Mode. The interactive Python interpreter is also known as the Python Shell. It executes the Python
instructions one by one as they are entered.
To be able to save multiple instructions for future use in the form of a file (typically with a .py extension), we use the
Python Editor. To use the IDLE editor, click on the File menu: File -> New.
Assessment
A. Multiple choice questions
1. Which of the following languages is understood by the computer?
a. English b. Hindi
c. Binary d. High-level programming language
2. Which of the following modes of Python allows you to save the instructions in the form of a file?
a. Interactive mode b. Script mode c. File mode d. Shell mode
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?
Getng Started with Python Programming 41

