Docstring
Python Package Index
both a & b
none of the mentioned
What will the following code output?
a=‘INFOMAX’ a=10 print(type(a))
<class 'int'>
<class ‘str'>
<class ‘bool'>
Error
Variable
Literals
Identifiers
Comment
Platform-independent
Low Level Language
Python is open-source and free to use
Object Oriented Programming
get()
seek()
tell()
cur()
100
128
256
No Limit
.python
.py
.p
.pyt
email
ca$h
marks10
Python2Shar
re\new
new
re new
re ew
Number
String
List
Slice
round(45.8)
round(6352.898,2,5)
round()
round(7463.123,2,1)
32
33
31
30
eval
nonlocal
assert
finally
Built in datatype
Derived datatype
Concrete datatype
Abstract datatype
.
#
/
?
Graphical
Cross-Platform
Platform Dependent
All of these
a_=3
_a=3
a?=3
int
bool
void
None
Class
Dictionary
Tuple
Flexibility
Portability
Reliability
Interactive Mode
Script Mode
Combination of Interactive and Script modes
yes
no
machine dependent
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.
45
35
English
PHP
C
All of the above
31 characters
63 characters
No limit but 79 characters for better redability
All of the above.
//
!
High Level
Object Oriented
Low Level
Both A and B
Python Interpreter.
Python compiler
Python Volatile machine
Portable virtual machine
C++
JAVA
Comments
Expressions
Tokens
Flow of control
val
raise
try
with
pi
anonymous
lambda
none of the above
Lists
Tuples
True
False
equal
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
execute python
go python
python
run python
Hello
949227
"2'
None of these
\a
\t
\n
\b
in
is
All
Expression
Both Interactive Mode or Script Mode
None 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}
float
dict
\\
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
1995
1972
1981
1991
Keywords
Identifires
Token
Statement