The list.pop ([i]) removes the item at the given position in the list?
The list.pop ([i]) removes the item at the given position in the list?
Amongst the following, who is the developer of Python programming?
Amongst the following, who is the developer of Python programming?
Python is a ___object-oriented programming language.
Python is a ___object-oriented programming language.
In Python, find which one isn’t an exception handling keyword.
In Python, find which one isn’t an exception handling keyword.
Find out the private data field among the following:
def __init__(self):
__m = 1
self.__n = 1
self.__o__ = 1
__p__= 1
Find out the private data field among the following:
def __init__(self):
__m = 1
self.__n = 1
self.__o__ = 1
__p__= 1
The hasattr(obj,name) is used to:
The hasattr(obj,name) is used to:
In Python, the primary use of the tell() method is that:
In Python, the primary use of the tell() method is that:
Which function doesn’t accept any argument?
Which function doesn’t accept any argument?
Which of these functions can NOT be defined under the sys module?
Which of these functions can NOT be defined under the sys module?
The output of this Python code would be:
a = [‘mn’, ‘op’]
print(len(list(map(list, a))))))
The output of this Python code would be:
a = [‘mn’, ‘op’]
print(len(list(map(list, a))))))
Which one of these is NOT true about recursion?
Which one of these is NOT true about recursion?
Amongst which of the following is / are the application areas of Python programming?
Amongst which of the following is / are the application areas of Python programming?
Amongst which of the following is / are the Numeric Types of Data Types?
Amongst which of the following is / are the Numeric Types of Data Types?
list, tuple, and range are the ___ of Data Types.
list, tuple, and range are the ___ of Data Types.
Amongst which of the following is / are the method of list?
Amongst which of the following is / are the method of list?
The % operator returns the ___.
The % operator returns the ___.
What is the name of the operator ** in Python?
What is the name of the operator ** in Python?
Is Python supports exception handling?
Is Python supports exception handling?
Amongst which of the following is / are the logical operators in Python?
Amongst which of the following is / are the logical operators in Python?
Varbinary data type returns variable-width string up to a length of max-length bytes?
Varbinary data type returns variable-width string up to a length of max-length bytes?
Binary data type is a fixed-width string of length bytes?
Binary data type is a fixed-width string of length bytes?
The type() function can be used to get the data type of any object.
The type() function can be used to get the data type of any object.
Float type of data type is represented by the float class.
Float type of data type is represented by the float class.
bytes, bytearray, memoryview are type of the ___ data type.
bytes, bytearray, memoryview are type of the ___ data type.
The output of this Python code would be:
def find(x, **y):
print(type(y))
find(‘letters’,X=’1′,Y=’2′)
The output of this Python code would be:
def find(x, **y):
print(type(y))
find(‘letters’,X=’1′,Y=’2′)
The output of this Python code would be:
sum(1,2,3)
sum([2,4,6])
The output of this Python code would be:
sum(1,2,3)
sum([2,4,6])
Which one of these is incorrect?
Which one of these is incorrect?
The order of precedence in the Python language is
The order of precedence in the Python language is
Find the invalid variable among the following:
Find the invalid variable among the following:
What will be the output of the following Python code?
def foo():
try:
return 1
finally:
return 2
k = foo()
print(k)
What will be the output of the following Python code?
def foo():
try:
return 1
finally:
return 2
k = foo()
print(k)
What will be the output of the following Python code?
def foo():
try:
return 1
finally:
return 2
k = foo()
print(k)
What will be the output of the following Python code?
def foo():
try:
return 1
finally:
return 2
k = foo()
print(k)
The process of pickling in Python includes ____________
The process of pickling in Python includes ____________
The process of pickling in Python includes ____________
The process of pickling in Python includes ____________
What will be the output of the following Python code?
x = [[0], [1]]
print((' '.join(list(map(str, x))),))
What will be the output of the following Python code?
x = [[0], [1]]
print((' '.join(list(map(str, x))),))
Which of the following is the use of id() function in python?
Which of the following is the use of id() function in python?
What is output of print(math.pow(3, 2))?
What is output of print(math.pow(3, 2))?
The value of the Python expression given below would be:
4+2**5//10
The value of the Python expression given below would be:
4+2**5//10
The return value for trunc() would be:
The return value for trunc() would be:
What is the output of the Python code given below, if the date of the system is June 21st, 2017 (Wednesday)?
[] or {}
{} or []
What is the output of the Python code given below, if the date of the system is June 21st, 2017 (Wednesday)?
[] or {}
{} or []
The output of this Python code would be:
>>> x={1:”X”,2:”Y”,3:”Z”}
>>> del x
The output of this Python code would be:
>>> x={1:”X”,2:”Y”,3:”Z”}
>>> del x
Which function removes a set’s first and the last element from a list?
Which function removes a set’s first and the last element from a list?
s this code valid in Python?
>>> m=6,7,8,9
>>> m
s this code valid in Python?
>>> m=6,7,8,9
>>> m
-
-
-
-
In the following statements of Python, which ones will result into the output: 6?
A = [[1, 2, 3],
[4, 5, 6],
[7, 8, 9]]
In the following statements of Python, which ones will result into the output: 6?
A = [[1, 2, 3],
[4, 5, 6],
[7, 8, 9]]
Which function do we use to shuffle a list(say list1)?
Which function do we use to shuffle a list(say list1)?
Which arithmetic operators can we NOT use with strings?
Which arithmetic operators can we NOT use with strings?
The output of this Python code would be:
print(“mno. PQR”.capitalize())
The output of this Python code would be:
print(“mno. PQR”.capitalize())
The output of this Python code would be:
a = [‘mn’, ‘op’]
for i in a:
i.upper()
print(a)
The output of this Python code would be:
a = [‘mn’, ‘op’]
for i in a:
i.upper()
print(a)
The output of this Python code would be:
s='{0}, {1}, and {2}’
s.format(‘hi’, ‘great’, ‘day’)
The output of this Python code would be:
s='{0}, {1}, and {2}’
s.format(‘hi’, ‘great’, ‘day’)
The output of this Python code would be:
s='{0}, {1}, and {2}’
s.format(‘hi’, ‘great’, ‘day’)
The output of this Python code would be:
s='{0}, {1}, and {2}’
s.format(‘hi’, ‘great’, ‘day’)
What is output of print(math.pow(3, 2))?
What is output of print(math.pow(3, 2))?