.
#
/
?
C
C++
JAVA
PHP
Python Interpreter.
Python compiler
Python Volatile machine
Portable virtual machine
None
True
False
equal
Brackets
Indentation
Key
None of the above
32
33
31
30
Passing –O when running python
Assertions are disabled by default
Both A and B are wrong
Assertions cannot be disabled in python
Interactive Mode
Script Mode
Both Interactive Mode or Script Mode
None of These
re\new
new
re new
re ew
\n
\t
\\
All of the above
Docstring
Python Package Index
both a & b
none of the mentioned
\a
\b
student
s12
123
_123
Variable names in Python cannot start with number. However, it can contain number in any other position of variable name.
Variable names can start with an underscore.
Data type of variable names should not be declared.
None of the above.
What will the following code output?
a=‘INFOMAX’ a=10 print(type(a))
<class 'int'>
<class ‘str'>
<class ‘bool'>
Error
Free and Open Source
Freeware
Open source
Shareware
round(45.8)
round(6352.898,2,5)
round()
round(7463.123,2,1)
val
raise
try
with
a_=3
_a=3
a?=3
All of these
100
128
256
No Limit
English
Hello
949227
"2'
1995
1972
1981
1991
eval
nonlocal
assert
finally
yes
no
machine dependent
_py_
var
_var
execute python
go python
python
run python
int
bool
void
.python
.py
.p
.pyt
list
tuple
class
dictionary
What is the output of the following code?
a=set('abc')b=set('cdef')print(a&b)
{'c'}
{'a','b','c','d','e','r'}
{c}
None of these
64
35
29
Interpreter
Compiler
Combination of Compiler and Interpreter
all of these
float
dict
Comments
Expressions
Tokens
Flow of control
in
is
All
Flexibility
Portability
Reliability
What will be the datatype of the var in the below code snippet?
var = 10print(type(var))var = "Hello"print(type(var))
Str and int
int and int
str and str
int and str
Built in datatype
Derived datatype
Concrete datatype
Abstract datatype
Variable
Literals
Identifiers
Comment
Class
List
Dictionary
Tuple
pi
anonymous
lambda
none of the above
Lists
Tuples
What will be the output of the following Python code?
def power(x, y=2): r=1 for i in range(y): r=r*x return r print(power(3)) print(power(3,3))
Option A
Option B
Option C
Option D
45
Platform-independent
Low Level Language
Python is open-source and free to use
Object Oriented Programming
//
!
High Level
Object Oriented
Low Level
Both A and B
31 characters
63 characters
No limit but 79 characters for better redability
All of the above.