Completed
Class 11 CS – List Logical Challenge
Questions From This Challenge
Q1mcq1 mark
What will be the output? L = [10, 20, 30, 40] x = L[1:3] L[1] = 50 print(x)
[10, 20]
[20, 30] ✓
[50, 30]
[20, 50]
Q2mcq1 mark
What will be the output? L = [5, 10, 15] L.append(20) L.insert(1, 25) print(L[1])
5
10
20
25 ✓
Q3mcq1 mark
What will be the output? L = [2, 4, 6] L = L + [8, 10] L.insert(2, 20) print(L)
[2, 4, 20, 6, 8, 10] ✓
[2, 20, 4, 6, 8, 10]
[2, 4, 6, 20, 8, 10]
[20, 2, 4, 6, 8, 10]
Q4mcq1 mark
What will be the output? L = [3, 6] L = L * 2 L.append(9) print(L[-1])
3
6
9 ✓
18
Q5mcq1 mark
What will be the output? L = [10, 20, 30, 40] x = L[-3:-1] L.insert(0, x[0] + x[1]) print(L[0])
20
30
50 ✓
60
Q6mcq1 mark
What will be the output? L = [1, 2, 3] L.append(L[0] + L[2]) L.insert(1, L[-1]) print(L)
[1, 4, 2, 3, 4] ✓
[1, 4, 2, 3]
[4, 1, 2, 3, 4]
[1, 2, 4, 3, 4]
Q7mcq1 mark
What will be the output? L = [10, 20, 30] x = L[1:] L = x + L[:1] print(L)
[10, 20, 30]
[20, 30, 10] ✓
[30, 10, 20]
[20, 10, 30]
Q8mcq1 mark
What will be the output? L = [4, 8, 12] L.insert(1, L[0] + L[2]) L.append(L[1] - L[0]) print(L[1])
4
8
16 ✓
12
Q9mcq1 mark
What will be the output? L = [5, 10, 15] x = L[0:2] L.append(x[0] + x[1]) print(L[-1])
5
10
15 ✓
20
Q10mcq1 mark
What will be the output? L = [2, 4, 6] L.insert(0, 8) x = L[1:3] L.append(x[0] * x[1]) print(L[-1])
8 ✓
12
24
48
Q11mcq1 mark
What will be the output? L = [10, 20, 30] L.append(40) L.insert(2, 50) x = L[1:4] print(x[1])
20
30
40
50 ✓
Q12mcq1 mark
What will be the output? L = [1, 2, 3] x = L * 2 x.insert(2, 10) print(x[2])
1
2
3
10 ✓
Q13mcq1 mark
What will be the output? L = [10, 20, 30, 40] x = L[::2] L.append(x[0] + x[1]) print(L[-1])
30
40 ✓
50
60
Q14mcq1 mark
What will be the output? L = [2, 4, 6] L.insert(1, 8) L.append(10) x = L[1:4] print(x[0] + x[-1])
14 ✓
16
18
20
Q15mcq1 mark
What will be the output? L = [5, 10] L.append(15) L.insert(0, L[-1]) L[1] = L[0] + L[2] print(L[1])
15
20
25 ✓
30