0% found this document useful (0 votes)
37 views2 pages

Python Notes Class 8

Chapter 4 discusses key features of Python, including its simplicity, interpreted nature, case sensitivity, and user-friendly datatypes. It explains variables, their naming rules, and the two working modes of Python: interactive and script mode. Additionally, it covers the print() function and its usage, along with multiple-choice questions related to Python programming.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
37 views2 pages

Python Notes Class 8

Chapter 4 discusses key features of Python, including its simplicity, interpreted nature, case sensitivity, and user-friendly datatypes. It explains variables, their naming rules, and the two working modes of Python: interactive and script mode. Additionally, it covers the print() function and its usage, along with multiple-choice questions related to Python programming.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

Chapter 4 – More about Python

Answer the following questions:


1. Write any four features of Python Language.
Ans: The four features of Python language are:
i) Python is Simple to Learn and Use
ii) Python Programing is an Interpreted Language
iii) Python is a case- sensitive
iv) It has User-friendly built-in datatypes.
2. What is a Variable? Discuss the rules for naming a variable?
Ans: When we are working with the values in Python, we require some storage to hold
values for later use. Such storage locations are known as Variables. A variable can
store only one value at a time. When a new value is stored in a variable, its previous
value gets overwritten.
The rules to write the variable names are:
1)The variable name must start wits an alphabet (Capital or small) or an underscore (-)
2) A variable name can consist of alphabets, digits and underscore. No other character
is allowed
3) A python keyword cannot be used as a variable name
4)A variable name can be of any length.
5) Variable names are case sensitive.
3. Explain the different working modes of Python.
Ans: we can work in Python in two ways:
1)Interactive mode:
In the interactive mode of Python, the instructions are executed, line by line, giving the
output. In this mode commands are typed next to these Python Command (>>>).
2) Script Mode:
For writing lengthy programs in Python, Script mode is used. Using this mode, we can create
and edit Python programs. In this mode, we can save our file so that it can be used later. The
complete script is written in an editor, Such as a notepad in windows
4.What is the use of Print ( ) function? Discuss all the separators used with Print ( ) function.
Ans: The print ( ) function is used to display the output of any command on the screen. It
can also be used to print the specified messages.
For example:
>>> print ("Hello world!") will display Hello world!
we can also pass more than one argument to the print( ) function. In such a case, the
arguments are separated by commas.
Multiple choice questions:

1.Which symbol is used for inserting comments in Python coding?


a.// b. # c. – d. /* */
2. Who developed Python Programming Language?
a) Wick van Rossum b) Rasmus Lerdorf
c) Guido van Rossum d) Niene Stom
3. Which of the following is the correct extension of the Python file?
a) .python b) .pl c) .py d) .p
4. In Python, the command used to print output is the ____ function.
a. printff( ) b. Output() c. Print( ) d. none of these
5. Python can be used for…
a) Making games b) Creating apps
c) Data analysis d) All of these
6. In which year was Python first released?
a) 1991 b) 2000 c) 1985 d) 2010
7.In Python, text like "Hello" is called…
a) String b) Number c) Code d) Print
8. IDLE stands for _______
a. Integrated Development Environment
b. Integrated Detail Environment
c. Independent Development Environment
d. Integrated Development Envelope9.
9.What will be the output of this code?
>>> print(2 * 5)
a. 25 b. 10 c. 7 d. 20
10.Which of these is used to take input from the user in Python?
a) read() b) input() c) get() d) enter()

You might also like