Integer a, b, c Set b= 5, a = 1 c= a & b Print c
1
3
5
7
get()
seek()
tell()
cur()
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
a_=3
_a=3
a?=3
All of these
variable
literal
identifier
comment
Number
String
List
Slice
.py
.python
.p
None of these
/
//
#
!
English
PHP
C
All of the above
1995
1972
1981
1991
\n
\t
\\
email
ca$h
marks10
Python2Shar
Class
Dictionary
Tuple
31 characters
63 characters
No limit but 79 characters for better redability
All of the above.
Provide a convenient way of associating documentation with Python modules, functions, classes, and methods.
All functions should have a docstring.
Docstrings can be accessed by the ___doc_attribute on objects.
All of the mentioned.
Docstring
Python Package Index
both a & b
none of the mentioned
Interface
Modularity
Client
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.
32
33
31
30
in
is
assert
All