Completed
Class 11 CS – Operators, Statements & Type Conversion
Questions From This Challenge
Q1mcq1 mark
What will be the output? a = 17 b = 5 print(a // b + a % b * 2)
6
7 ✓
9
11
Q2output1 mark
What will be the output?
x = 10 x += 5 x //= 3 x *= 2 print(x)
Correct output:
10Q3mcq1 mark
What will be the output? a = 5 b = 2 c = 3 print(a + b * c ** 2 - 4)
19 ✓
23
37
45
Q4mcq1 mark
What will be the output? x = 7 y = 3 print(x > y and x % y == 1)
True ✓
False
1
0
Q5mcq1 mark
What will be the output? x = 10 y = 4 x, y = x + y, x - y print(x, y)
14 6 ✓
14 10
10 6
6 14
Q6output1 mark
What will be the output?
a = "12" b = 3 print(int(a) + b * 2)
Correct output:
18Q7mcq1 mark
What will be the output? x = 5 y = 2 z = float(x // y) print(z)
2
2.0 ✓
2.5
3.0
Q8mcq1 mark
What will be the output? x = 10 y = 4 a = str(x // y) b = str(x % y) print(a + b)
24
2.4
22 ✓
20
Q9mcq1 mark
What will be the output? x = 5 y = 2.0 z = x + y print(type(z))
int
float ✓
str
bool
Q10mcq1 mark
What will be the output? a = 10 b = 3 c = 2 print(a > b and b < c or a == 10)
True ✓
False
10
2
Q11output1 mark
What will be the output?
x = int(7.9)
y = int("15")
z = float("2.5")
print(x, y, z)
Correct output:
7 15 2.5Q12mcq1 mark
Which statement is valid Python?
x = 10 = y
x, y = 10, 20 ✓
10 = x
x + 2 = 5
Q13mcq1 mark
What will be the output? x = 4 y = 3 x += y * 2 y = x // y print(x, y)
10 3 ✓
10 2
14 4
8 2
Q14mcq1 mark
What will be the output? x = "10" y = "5" z = int(x) - int(y) print(str(z) + y)
55 ✓
5
105
510
Q15output1 mark
What will be the output?
a = 8 b = 3 c = 2 a = a // b b = a + b * c c = b % a print(a, b, c)
Correct output:
2 8 0