Completed

Class 11 IP – Control Statements & Lists

Class 11 · Informatics Practices Thu, 24 Sep 2026 7:00 PM 60s / question 15 questions · 15 marks

Questions From This Challenge

Q1mcq1 mark
What will be the output? x = 18 if x % 3 == 0: x = x - 5 else: x = x + 5 print(x)
13 ✓
18
23
6
Q2output1 mark
What will be the output?
L = [10, 20, 30]
L.append(40)
L.insert(1, 15)
print(L)
Correct output: [10, 15, 20, 30, 40]
Q3mcq1 mark
What will be the output? n = 17 if n > 20: print("A") elif n > 15: print("B") else: print("C")
A
B ✓
C
No output
Q4output1 mark
What will be the output?
L = [4, 8, 12, 16]
x = 0
for i in L:
    if i > 8:
        x = x + i
print(x)
Correct output: 28
Q5mcq1 mark
Which statement correctly removes the first occurrence of 20 from the list? L = [10, 20, 30, 20]
L.pop(20)
L.remove(20) ✓
L.delete(20)
L.pop()
Q6output1 mark
What will be the output?
L = [2, 4, 6]
L = L * 2
L[3] = 10
print(L)
Correct output: [2, 4, 6, 10, 4, 6]
Q7mcq1 mark
What will be the output? n = 5 total = 0 while n > 1: if n % 2 == 0: total = total + n else: total = total - n n = n - 1 print(total)
-3
-5
-2 ✓
0
Q8mcq1 mark
What will be the output? L = [5, 2, 8, 2, 10] print(L.count(2), L.index(8))
1 2
2 2 ✓
2 3
1 3
Q9output1 mark
What will be the output?
L = [3, 1, 5, 2]
L.sort()
L.reverse()
print(L)
Correct output: [5, 3, 2, 1]
Q10mcq1 mark
What will be the output? L = [10, 20, 30, 40] x = 0 for i in L: if i % 20 == 0: x = x + i else: x = x - i print(x)
0
20 ✓
40
-20
Q11output1 mark
What will be the output?
L = [10, 20, 30, 40]
a = L.pop()
b = L.pop(1)
L.append(a + b)
print(L)
Correct output: [10, 30, 60]
Q12mcq1 mark
What will be the output? L = [4, 7, 2, 9, 5] print(min(L), max(L), sum(L))
2 9 27 ✓
2 9 28
4 9 27
4 7 28
Q13output1 mark
What will be the output?
L = [10, 20, 30]
M = list(L)
M[1] = 50
print(L)
print(M)
Correct output: [10, 20, 30] [10, 50, 30]
Q14mcq1 mark
What will be the output? L = [2, 4, 6, 8] i = 0 total = 0 while i < len(L): if L[i] > 4: total = total + L[i] i = i + 1 print(total)
14 ✓
18
20
12
Q15output1 mark
What will be the output?
L = [3, 6, 3, 9, 3]
x = 0

for i in L:
    if i == 3:
        x = x + 1

print(x)
Correct output: 3
Next Live Challenge
DQL — BETWEEN + Logical Operators
Class 11 · Informatics Practices 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...