What is the order of namespaces in which Python looks for an identifier?
Select an option to see the answer and solution.
What will be the output of the following Python function?
min(max(False,-3,-4), 2,7)
Select an option to see the answer and solution.
What will be the output of the following Python function?
len(["hello",2, 4, 6])
Select an option to see the answer and solution.
Which of the following is not a core data type in Python programming?
Select an option to see the answer and solution.
Which one of the following is not a keyword in Python language?
Select an option to see the answer and solution.
What will be the output of the following Python code?
x = 'abcd'
for i in x:
print(i.upper())
Select an option to see the answer and solution.
What will be the output of the following Python code?
x = [[0], [1]]
print((' '.join(list(map(str, x))),))
Select an option to see the answer and solution.
What will be the output of the following Python code?
def foo():
try:
return 1
finally:
return 2
k = foo()
print(k)
Select an option to see the answer and solution.
To add a new element to a list we use which Python command?
Select an option to see the answer and solution.
The following python program can work with . . . . . . . . parameters.
def f(x):
def f1(*args, **kwargs):
print("Examveda")
return x(*args, **kwargs)
return f1
Select an option to see the answer and solution.
What is the maximum possible length of an identifier in Python?
Select an option to see the answer and solution.
What will be the output of the following Python code?
print("abc. DEF".capitalize())
Select an option to see the answer and solution.
What will be the output of the following Python code?
i = 1
while True:
if i%3 == 0:
break
print(i)
i + = 1
Select an option to see the answer and solution.
Which of the following is a Python tuple?
Select an option to see the answer and solution.
What will be the output of the following Python code?
print('*', "abcde".center(6), '*', sep='')
Select an option to see the answer and solution.
What will be the output of the following Python program?
def foo(x):
x[0] = ['def']
x[1] = ['abc']
return id(x)
q = ['abc', 'def']
print(id(q) == foo(q))
Select an option to see the answer and solution.
What will be the output of the following Python code snippet?
for i in [1, 2, 3, 4][::-1]:
print (i)
Select an option to see the answer and solution.
What arithmetic operators cannot be used with strings in Python?
Select an option to see the answer and solution.
Which of the following is the truncation division operator in Python?
Select an option to see the answer and solution.
The process of pickling in Python includes . . . . . . . .
Select an option to see the answer and solution.