English
PHP
C
All of the above
.python
.py
.p
.pyt
list
tuple
class
dictionary
33
45
35
30
What will the following code output?
a=‘INFOMAX’ a=10 print(type(a))
<class 'int'>
<class ‘str'>
<class ‘bool'>
Error
None of these
Lists
Dictionary
Tuples
Class
What will be the output of the following Python code
def func(a, b=5, c=10): print('a is', a, 'and b is', b, 'and c is', c) func(13, 17) func(a=2, c=4) func(5,7,9)
(A) a is 13 and b is 15 and c is 10
a is 2 and b is 5 and c is 4
a is 5 and b is 7 and c is 9
(B) a is 13 and b is 17 and cis 10
a is 2 and b is 4 and c is 4
a is 5 and b is 9 and c is 7
(C) a is 13 and b is 17 and c is 10
a is 2 and b is 5 and cis 4
(D) None of the above
option A
option B
option C
option D
Interface
Modularity
Client
Docstring
int
float
bool
dict
Passing –O when running python
Assertions are disabled by default
Both A and B are wrong
Assertions cannot be disabled in python
Interpreter
Compiler
Combination of Compiler and Interpreter
all of these
Python Interpreter.
Python compiler
Python Volatile machine
Portable virtual machine
a_=3
_a=3
a?=3
All of these
get()
seek()
tell()
cur()
in
is
assert
All
re\new
new
re new
re ew
C++
JAVA
_py_
var
_var
try
round(45.8)
round(6352.898,2,5)
round()
round(7463.123,2,1)
Graphical
Cross-Platform
Platform Dependent
Free and Open Source
Freeware
Open source
Shareware
32
31
email
ca$h
marks10
Python2Shar
Hello
949227
True
"2'
yes
no
machine dependent
none of the mentioned
Number
String
List
Slice
eval
nonlocal
finally
None
False
equal
execute python
go python
python
run python
pi
anonymous
lambda
none of the above
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
100
128
256
No Limit
64
29
Brackets
Indentation
Key
None of the above
Expression
Portability
Reliability
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
Flexibility
Comments
Expressions
Tokens
Flow of control
\n
\t
\\
student
s12
123
_123
Variable
Literals
Identifiers
Comment
/
//
#
!
Python Package Index
both a & b
raise
val
with
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}
Built in datatype
Derived datatype
Concrete datatype
Abstract datatype
Tuple
void
.
?