Completed

Class 11 CS – Python Basics, Operators & Control Statements

Class 11 · Computer Science Wed, 23 Sep 2026 9:00 PM 60s / question 15 questions · 15 marks

Questions From This Challenge

Q1mcq1 mark
What will be the output? x = 12 y = 5 print(x // y + x % y * 2)
6 ✓
9
4
14
Q2output1 mark
What will be the output?
x = 5
x += 3
x *= 2
x -= 4
print(x)
Correct output: 12
Q3mcq1 mark
What will be the output? a = 10 b = 3 c = 2 print(a > b and b > c or a == c)
True ✓
False
10
2
Q4mcq1 mark
What will be the output? x = 8 y = 3 x, y = y + 2, x - 1 print(x, y)
5 7 ✓
3 8
5 8
10 7
Q5output1 mark
What will be the output?
x = 10
if x % 2 == 0:
    x = x + 3
if x > 10:
    x = x * 2
else:
    x = x - 2
print(x)
Correct output: 26
Q6mcq1 mark
What will be the output? n = 17 if n > 20: print("A") elif n > 15: print("B") elif n > 10: print("C") else: print("D")
A
B ✓
C
D
Q7mcq1 mark
What will be the output? total = 0 for i in range(2, 10, 2): if i == 6: continue total = total + i print(total)
14 ✓
16
20
8
Q8mcq1 mark
What will be the output? x = 1 while x < 10: x = x * 2 print(x)
8
10
16 ✓
12
Q9output1 mark
What will be the output?
total = 0

for i in range(1, 6):
    if i % 2 == 0:
        total = total + i * 2
    else:
        total = total + i

print(total)
Correct output: 21
Q10mcq1 mark
What will be the output? n = 20 while n > 5: if n % 4 == 0: n = n - 3 else: n = n - 2 print(n)
5 ✓
6
7
4
Q11mcq1 mark
What will be the output? x = 2 for i in range(3): x = x + i if x > 4: x = x - 1 print(x)
4 ✓
5
6
3
Q12mcq1 mark
What will be the output? x = 10 if x >= 10: x = x - 4 if x >= 8: x = x + 2 elif x >= 5: x = x + 5 else: x = x + 10 print(x)
6
8
11 ✓
16
Q13mcq1 mark
What will be the output? total = 0 for i in range(1, 5): for j in range(1, i + 1): total = total + 1 print(total)
6
8
10 ✓
12
Q14output1 mark
What will be the output?
n = 15
count = 0

while n > 0:
    if n % 3 == 0:
        count = count + 2
    else:
        count = count + 1
    n = n - 4

print(count)
Correct output: 6
Q15mcq1 mark
What will be the output? x = 0 for i in range(1, 8): if i == 5: break if i % 2 == 0: continue x = x + i print(x)
4 ✓
6
10
9
Next Live Challenge
Mixed: Tuples + Dictionary + Modules
Class 11 · Computer Science Fri, 23 Oct 2026, 8:00 PM
View Live Challenges →

← Back to Live Challenge History · Practice MCQs

CodeBuddy
Hi there! 👋 I'm CodeBuddy, your KV Coders assistant.

To help me give you the most accurate answers, please select your class and subject below, or just type your question!
Buddy is typing...