33
45
35
30
Error
Flexibility
Portability
Reliability
Class
List
Dictionary
Tuple
Interpreter
Compiler
Combination of Compiler and Interpreter
all of these
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
Hello
949227
True
"2'
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
raise
try
val
with
eval
nonlocal
assert
finally
Interactive Mode
Script Mode
Both Interactive Mode or Script Mode
None of These
email
ca$h
marks10
Python2Shar
student
s12
123
_123
\a
\t
\n
\b
Comments
Expressions
Tokens
Flow of control
int
float
bool
dict
Free and Open Source
Freeware
Open source
Shareware
.
#
/
?
C
C++
JAVA
PHP
round(45.8)
round(6352.898,2,5)
round()
round(7463.123,2,1)
Variable
Literals
Identifiers
Comment
Interface
Modularity
Client
Docstring
32
64
29
Passing –O when running python
Assertions are disabled by default
Both A and B are wrong
Assertions cannot be disabled in python
Platform-independent
Low Level Language
Python is open-source and free to use
Object Oriented Programming
execute python
go python
python
run python
Graphical
Cross-Platform
Platform Dependent
All of these
1995
1972
1981
1991
pi
anonymous
lambda
none of the above
High Level
Object Oriented
Low Level
Both A and B
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.
list
tuple
class
dictionary
31 characters
63 characters
No limit but 79 characters for better redability
All of the above.
Number
String
Slice
in
is
All
What will the following code output?
a=‘INFOMAX’ a=10 print(type(a))
<class 'int'>
<class ‘str'>
<class ‘bool'>
Lists
Tuples
100
128
256
No Limit
Python Interpreter.
Python compiler
Python Volatile machine
Portable virtual machine
31
re\new
new
re new
re ew
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
_py_
var
_var
//
!
a_=3
_a=3
a?=3
\\
All of the above
Brackets
Indentation
Key
None of the above
yes
no
machine dependent
none of the mentioned
Combination of Interactive and Script modes
Python Package Index
both a & b