pi
anonymous
lambda
none of the above
English
PHP
C
All of the above
Python Interpreter.
Python compiler
Python Volatile machine
Portable virtual machine
int
bool
void
None
Interface
Modularity
Client
Docstring
.
#
/
?
eval
nonlocal
assert
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}
None of these
Compiled only
Interpreted
Assembly
Machine
in
is
All
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
val
raise
try
with
\a
\t
\n
\b
Interactive Mode
Script Mode
Combination of Interactive and Script modes
All of these
string
complex
float
get()
seek()
tell()
cur()
dict
What will be the output?
print(type(()))
<class 'set'>
<class 'dict'>
<class 'tuple'>
Error
Variables must be declared before use
Data type is checked at compile time
Variable type is determined at runtime
Python has no data types
1995
1972
1981
1991
List
Set
Dictionary
String
33
45
35
30
Platform-independent
Low Level Language
Python is open-source and free to use
Object Oriented Programming
list
tuple
class
dictionary
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.
email
ca$h
marks10
Python2Shar
Flexibility
Portability
Reliability
Hello
949227
True
"2'
31 characters
63 characters
No limit but 79 characters for better redability
All of the above.
Python Package Index
both a & b
none of the mentioned
Comments
Expressions
Tokens
Flow of control
Graphical
Cross-Platform
Platform Dependent
//
!
100
128
256
No Limit
Number
Slice
execute python
go python
python
run python
Brackets
Indentation
Key
None of the above
variable
literal
identifier
comment
Compilation/interpretation phase
Logical analysis
Program execution only
Documentation phase
Variable
Literals
Identifiers
Comment
False
equal
Free and Open Source
Freeware
Open source
Shareware
Bytecode execution
Syntax analysis
Output generation
Runtime evaluation
a_=3
_a=3
a?=3
str
set
\\
C++
JAVA
Python is proprietary software.
Python is open-source software.
Python is hardware dependent.
Python cannot run on Linux.
.python
.py
.p
.pyt