list, tuple, and range are the ___ of Data Types.
list, tuple, and range are the ___ of Data Types.
Which one of these is NOT true about recursion?
Which one of these is NOT true about recursion?
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 of these functions can NOT be defined under the sys module?
Which of these functions can NOT be defined under the sys module?
Which function doesn’t accept any argument?
Which function doesn’t accept any argument?
In Python, the primary use of the tell() method is that:
In Python, the primary use of the tell() method is that:
The hasattr(obj,name) is used to:
The hasattr(obj,name) is used to:
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
In Python, find which one isn’t an exception handling keyword.
In Python, find which one isn’t an exception handling keyword.
Python is a ___object-oriented programming language.
Python is a ___object-oriented programming language.
Amongst the following, who is the developer of Python programming?
Amongst the following, who is the developer of Python programming?
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?
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′)
bytes, bytearray, memoryview are type of the ___ data type.
bytes, bytearray, memoryview are type of the ___ data type.
Float type of data type is represented by the float class.
Float type of data type is represented by the float class.
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.
Binary data type is a fixed-width string of length bytes?
Binary data type is a fixed-width string of length bytes?
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?
Amongst which of the following is / are the logical operators in Python?
Amongst which of the following is / are the logical operators in Python?
Is Python supports exception handling?
Is Python supports exception handling?
What is the name of the operator ** in Python?
What is the name of the operator ** in Python?
The % operator returns the ___.
The % operator returns the ___.
Amongst which of the following is / are the method of list?
Amongst which of the following is / are the method of list?
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?
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 []
What is output of print(math.pow(3, 2))?
What is output of print(math.pow(3, 2))?
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 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))),))
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?
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)
Find the invalid variable among the following:
Find the invalid variable among the following:
The order of precedence in the Python language is
The order of precedence in the Python language is
Which one of these is incorrect?
Which one of these is incorrect?
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 output of print(math.pow(3, 2))?
What is output of print(math.pow(3, 2))?
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’)
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:
print(“mno. PQR”.capitalize())
The output of this Python code would be:
print(“mno. PQR”.capitalize())
Which arithmetic operators can we NOT use with strings?
Which arithmetic operators can we NOT use with strings?
Which function do we use to shuffle a list(say list1)?
Which function do we use to shuffle a list(say list1)?
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]]
s this code valid in Python?
>>> m=6,7,8,9
>>> m
s this code valid in Python?
>>> m=6,7,8,9
>>> m
-
-
-
-
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?
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
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])