Error
Flexibility
Portability
Reliability
Integer
Complex Number
None
String
Free and Open Source
Freeware
Open source
Shareware
33
45
35
30
student
s12
123
_123
.py
.python
.p
None of these
Compiled only
Interpreted
Assembly
Machine
1995
1972
1981
1991
in
is
assert
All
pi
anonymous
lambda
none of the above
Expression
32
31
Python is proprietary software.
Python is open-source software.
Python is hardware dependent.
Python cannot run on Linux.
C
C++
JAVA
PHP
\a
\t
\n
\b
int
string
complex
float
Variable
Literals
Identifiers
Comment
True
False
equal
_py_
var
_var
try
re\new
new
re new
re ew
Interface
Modularity
Client
Docstring
Hello
949227
"2'
.
#
/
?
Python Interpreter.
Python compiler
Python Volatile machine
Portable virtual machine
str
set
list
tuple
class
dictionary
bool
dict
\\
All of the above
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}
variable
literal
identifier
comment
Brackets
Indentation
Key
None of the above
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
Graphical
Cross-Platform
Platform Dependent
All of these
100
128
256
No Limit
Interpreter
Compiler
Combination of Compiler and Interpreter
all of these
get()
seek()
tell()
cur()
void
yes
no
machine dependent
none of the mentioned
Comments
Expressions
Tokens
Flow of control
Python Package Index
both a & 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.
What will the following code output?
a=‘INFOMAX’ a=10 print(type(a))
<class 'int'>
<class ‘str'>
<class ‘bool'>
email
ca$h
marks10
Python2Shar
Built in datatype
Derived datatype
Concrete datatype
Abstract datatype
Lists
Dictionary
Tuples
Class
val
raise
with
char
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
English
Variables must be declared before use
Data type is checked at compile time
Variable type is determined at runtime
Python has no data types