NEW
Font size
WorksheetsReview Python
Total questions: 15
Worksheet time: 8mins
Extension of Python
py
.py
.PYS
.PYE
What is the output of the following code?
var1 = 1
var2 = 2
var3 = "3"
print(var + var2 + var3)
6
33
133
Error. Mixing operators between numbers and strings are not supported
The character used in comments in python is________.
@
#
&
$
Which function is used to accept input from the user during the runtime.
type()
input()
print()
help()
Concatenation is a _________operator.
arithmetic
logical
string
relational
This statement is used to evaluate only one condition
IF STATEMENT
IF -ELSE STATEMENT
IF-ELIF-ELSE STATEMENT
Which of the following data types is not supported in python?
INTEGER
FLOAT
STRING
SLICE
Which one of the following has the highest precedence in the expression?
Addition
Multiplication
Exponential
ParenthesIs
19 % 2 in python
1
2
9
None of these
Which one of these is floor division?
/
//
%
#
Python can work in _____________mode.
1
2
3
4
___________statement are used to assign a value to a variable.
Assignment
String
Logical
Relational
In which language is Python written?
English
English
PHP
C
ALL OF THE ABOVE.
Which of the following statements is correct for variable names in Python language?
All variable names must begin with an underscore.
Unlimited length
The variable name length is a maximum of 2
All of the above
Which of the following operators is the correct option for power(ab)?
a ^ b
a**b
a^^b
a ^ * b
