List
Set
Dictionary
String
raise
try
val
with
Hello
949227
True
"2'
float
str
set
int
Error
Flexibility
Portability
Reliability
Bytecode execution
Syntax analysis
Output generation
Runtime evaluation
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.
Python is proprietary software.
Python is open-source software.
Python is hardware dependent.
Python cannot run on Linux.
bool
dict
Class
Tuple
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}
None of these
Interactive Mode
Script Mode
Both Interactive Mode or Script Mode
None of These
.
#
/
?
string
complex
Brackets
Indentation
Key
None of the above
What will the following code output?
a=‘INFOMAX’ a=10 print(type(a))
<class 'int'>
<class ‘str'>
<class ‘bool'>
\n
\t
\\
All of the above
Graphical
Cross-Platform
Platform Dependent
All of these
char
Docstring
Python Package Index
both a & b
none of the mentioned
Variable
Literals
Identifiers
Comment
a_=3
_a=3
a?=3
Keywords
Identifires
Token
Statement
execute python
go python
python
run python
100
128
256
No Limit
get()
seek()
tell()
cur()
1995
1972
1981
1991
Integer
Complex Number
None
32
33
31
30
\a
\b
<class 'float'>
<class 'complex'>
TypeError
Compilation/interpretation phase
Logical analysis
Program execution only
Documentation phase
Passing –O when running python
Assertions are disabled by default
Both A and B are wrong
Assertions cannot be disabled in python
Number
Slice
_py_
var
_var
Boolean
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
in
is
assert
All
variable
literal
identifier
comment
.python
.py
.p
.pyt
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
yes
no
machine dependent
Interface
Modularity
Client
Lists
Tuples
Interpreter
Compiler
Combination of Compiler and Interpreter
all of these
English
PHP
C
Platform-independent
Low Level Language
Python is open-source and free to use
Object Oriented Programming
round(45.8)
round(6352.898,2,5)
round()
round(7463.123,2,1)