CLASS 7 INTRODUCTION TO PYTHON (CHAP8)
CLASS 7
Introduction
to python
1.What is the extension of a Python
program file?
ANS- B .py
2.Whe was Python created?
Ans a 1991
3.Which of the following is not a
feature of Python?
Ans c. Costly
4.In which window can you select Run-
Run Module to run a Python program?
Ans b. Editor
5.Which of the following is used to
exit Python?
Ans b quit ()
B. Fill in
the blanks
1. Python is
free and open source
2. The
>>> prompt is called the Command prompt
3. IDLE is a
Graphical user interface (GUI)
4. The Python
shell window is used for the script mode.
5. % is a/an
Modulus operator in Python.
SHORT ANSWER
QUESTIONS-
1.What is the full form of IDLE?
ans1. Integrated development and learning environment.
2.Define bytecode
ans- The intermediate form of the python source code that is translated
into the native language of the specific system.
3.Name the two modes available in
Python?
Ans- 1. Script mode
2. Interactive mode
4. What is
the difference between IDLE and the command line window?
Ans4. The
command line, also called the windows command line, is a user interface that’s
navigated commands at prompts , instead of using a mouse.
The IDLE
window is different from command line as IDLE is a GUI. It is cross platform
that is it can run on windows, Unix and macOs.
5.
Differentiate between variables and keywords.
Ans5.
Variables are user defined names to identify a value. Variables are the
reserved memory locations used to store values within a Python program.
Keywords
used the reserved word that have a predefined meaning in a programming
language.
Comments
Post a Comment