What is the greatest common divisor (GCD) of 15 and 20?
What is the output of the following Python code?
print('x\97\x98')
What will be output of this expression:
'p' + 'q' if '12'.isdigit() else 'r' + 's'
Which function is used to access the parent class in Python?
If s = "abcedfgh", what does dir(s)
print?
What is the output of the following Python code?
def myfunc(a):
a=a+2
a=a*2
return a
print(myfunc(2))
What will be the output of the following Python code?
a=["Apple","Ball","Cobra"]
<br class="blank" />a.sort(key=len)
print(a)
Which of the following is not a valid print statement in Python?
What will be the output of the following code?
class Circle:
def __init__(self, radius):
self.radius = radius
r = Circle(3)
print(round(3.14 * r.radius * r.radius, 2))