1.
- Yes
- No
- There is no output because a compiler error occurs
- There is no output because an exception occurs
Q1: What is the output of the following code?
a = 10
b = 20
if 2 * a >= b:
print("Yes")
else
print("No")
a = 10
b = 20
if 2 * a >= b:
print("Yes")
else
print("No")
if 5 == (10 // 2):
if 5 % 2 > 0:
if 0:
conditions = 0
else:
conditions = 5
else:
conditions = 10
else:
conditions = 15
if conditions:
if conditions % 2 > 0:
print("Odd")
else:
print("Even")
else:
print("Conditions not met")
a = 0
b = 1
c = 2
if a < c:
a = c
if 2 * b == c:
c = 0
elif 2 * b < c:
b = 0
else:
a = 0
if c:
c = 2*(b + a)
elif b:
b = 2*(a + c)
elif a:
a = 2*(b + c)
a
is , the value of variable b
is , and the value of variable c
is .