NEW
Font size
WorksheetsPython programming fundamentals
Total questions: 22
Worksheet time: 11mins
Which of the following are the fundamental building blocks of a python program?
identifiers
constants
punctuators
tokens
Identifier name cannot be composed of special characters other than _______________
underscore(_)
&
$
#
Python takes __________ indented spaces after the function declaration statement by default.
5
6
4
1
Single line comments in python begin with ___________ symbol.
#
"
'''
%
Which of the following does not represent a complex number?
K=2+3j
K=complex(2,3)
k=2+3i
K=4+5j
What is the order of precendence of arithmetic operators given below in python?
1. Paranthesis 2.Exponential 3.Multiplication 4. Division 5. Addition 6.Subtraction
1,2,3,4,5,6
2,3,4,5,6,1
1,3,2,6,4,5
4,6,5,2,3,1
What will be the output of the following code?
x,y=2,6
x,y=y,x+2
print(x,y)
6 6
4 4
4 6
6 4
The extension of a python file is given as
.pt
.pwy
.py or .pyw
.yppy
The reserved words used in python interpreter to recognize the structure of a program is termed as __________
identifiers
tokens
literals
keywords
Which of the following operator is used for floor divivsion?
*
/
**
//
Which of the following is a valid statement?
a=b=c=20,60
a,b,c=10,20,30
a b c = 10 20 30
a_b_c=20
Python supports unicode coding standard
True
False
AN identifier must be a keyword of python
True
False
Integers and strings are immutable data types
True
False
3+a=c is a valid statement
True
False
The input() always returns a value of an integer type
True
False
The print() without any value or name or expression prints a blank line
True
False
In python, boolean type is a sub type of integer
True
False
"AISSCE- 2020" is a valid string variable in python
True
False
In python, integer data type has a fractional part
True
false
None literal in python means "there is nothing here"
True
False
Python supports multiple assignments to multiple variables
True
False
