100
128
256
No Limit
33
45
35
30
32
31
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
None
True
False
equal
in
is
assert
All
Lists
Dictionary
Tuples
Class
Built in datatype
Derived datatype
Concrete datatype
Abstract datatype
int
bool
void
\a
\t
\n
\b
Interface
Modularity
Client
Docstring
.py
.python
.p
None of these
val
raise
try
with
pi
anonymous
lambda
none of the above
Number
String
List
Slice
eval
nonlocal
finally
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}
email
ca$h
marks10
Python2Shar
/
//
#
!
.pyt
float
dict
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
_py_
var
_var
round(45.8)
round(6352.898,2,5)
round()
round(7463.123,2,1)
Interpreter
Compiler
Combination of Compiler and Interpreter
all of these
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
Hello
949227
"2'
list
tuple
class
dictionary
\\
All of the above
Error
Expression
Portability
Reliability
Free and Open Source
Freeware
Open source
Shareware
re\new
new
re new
re ew
C
C++
JAVA
PHP
execute python
go python
python
run python
Graphical
Cross-Platform
Platform Dependent
All of these
a_=3
_a=3
a?=3
Keywords
Identifires
Token
Statement
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
Combination of Interactive and Script modes
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.
student
s12
123
_123
Flexibility
English
Variable
Literals
Identifiers
Comment
yes
no
machine dependent
none of the mentioned
Comments
Expressions
Tokens
Flow of control
64
29