int
string
complex
float
pi
anonymous
lambda
none of the above
email
ca$h
marks10
Python2Shar
Free and Open Source
Freeware
Open source
Shareware
/
//
#
!
eval
nonlocal
assert
finally
Interpreter
Compiler
Combination of Compiler and Interpreter
all of these
Class
List
Dictionary
Tuple
re\new
new
re new
re ew
33
45
35
30
32
64
29
Error
Expression
Portability
Reliability
Hello
949227
True
"2'
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
Passing –O when running python
Assertions are disabled by default
Both A and B are wrong
Assertions cannot be disabled in python
Interface
Modularity
Client
Docstring
\n
\t
\\
All of the above
Python is proprietary software.
Python is open-source software.
Python is hardware dependent.
Python cannot run on Linux.
.py
.python
.p
None of these
list
tuple
class
dictionary
a_=3
_a=3
a?=3
All of these
What will the following code output?
a=‘INFOMAX’ a=10 print(type(a))
<class 'int'>
<class ‘str'>
<class ‘bool'>
execute python
go python
python
run python
_py_
var
_var
try
Variable
Literals
Identifiers
Comment
Brackets
Indentation
Key
None of the above
str
set
Integer
Complex Number
None
String
.
?
variable
literal
identifier
comment
yes
no
machine dependent
none of the mentioned
round(45.8)
round(6352.898,2,5)
round()
round(7463.123,2,1)
Interactive Mode
Script Mode
Both Interactive Mode or Script Mode
None of These
31 characters
63 characters
No limit but 79 characters for better redability
All of the above.
Number
Slice
Variables must be declared before use
Data type is checked at compile time
Variable type is determined at runtime
Python has no data types
char
bool
C
C++
JAVA
PHP
Built in datatype
Derived datatype
Concrete datatype
Abstract datatype
Keywords
Identifires
Token
Statement
Lists
Tuples
False
equal
void
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}
\a
\b
Combination of Interactive and Script modes
Graphical
Cross-Platform
Platform Dependent
in
is
All