Completed
Class 11 CS – String & List Logical Challenge
Questions From This Challenge
Q1mcq1 mark
What will be the output? s = "COMPUTER" x = s[1:7:2] y = s[-2::-2] print(x + y)
OPTEUMC ✓
OPTMUE
OPTUEMC
EUMCOPT
Q2mcq1 mark
What will be the output? L = [10, 20, 30, 40] x = L[1:3] L[1] = L[-1] L = L[:2] + x print(L)
[10, 40, 20, 30] ✓
[10, 40, 30, 40]
[10, 20, 20, 30]
[10, 40, 20, 40]
Q3mcq1 mark
What will be the output? s = "PYTHON" print(s[-2:1:-2] + s[1:4])
OTYTH ✓
OYTH
OTHYT
YTHOT
Q4mcq1 mark
What will be the output? L = [2, 4, 6] L.append(L[0] + L[2]) L.insert(1, L[-1] - L[0]) print(L)
[2, 6, 4, 6, 8] ✓
[2, 4, 6, 8, 6]
[2, 4, 6, 6, 8]
[2, 6, 4, 8, 6]
Q5mcq1 mark
What will be the output? s = "PROGRAMMING" x = s[2:9:2] y = s[-1:-6:-2] print(x + y)
ORMIGIM ✓
ORMIGIA
ORGMGIM
ORMIIGM
Q6output1 mark
What will be the output?
L = [5, 10, 15, 20] x = L[1:3] L.append(x[0] + x[1]) L.insert(0, L[-1]) print(L[0])
Correct output:
25Q7mcq1 mark
What will be the output? s = "COMPUTER" x = s[:5] y = s[3:] z = x[1:4] + y[-2:] print(z)
OMPER ✓
OMPUT
OMPRE
OPMER
Q8output1 mark
What will be the output?
L = [1, 2, 3, 4] x = L[1:] L = L[:2] + x[1:3] L.append(L[1] + L[-1]) print(L[-1])
Correct output:
6Q9mcq1 mark
What will be the output? s = "PYTHON" result = "" for i in range(1, 6, 2): result = result + s[i] print(result + s[-1])
YHNN ✓
YHN
YHTN
YNN
Q10output1 mark
What will be the output?
L = [10, 20, 30] L.insert(1, L[0] + L[2]) L.append(L[1]) L[2] = L[0] + L[-1] print(L[2])
Correct output:
50Q11mcq1 mark
What will be the output? s = "COMPUTER" x = s[::2] y = s[1::2] print(x + y)
CMUEOPTR ✓
CMUETROP
COMPUTER
CMOEUPTR
Q12output1 mark
What will be the output?
L = [2, 4, 6, 8] x = L[::2] y = L[1::2] L = y + x L.insert(2, L[0] + L[-1]) print(L[2])
Correct output:
10Q13mcq1 mark
What will be the output? s = "PYTHON" x = s[1:5] x = x[1:] + x[:1] print(x)
YTHO
THOY ✓
HOYT
THYO
Q14output1 mark
What will be the output?
L = [10, 20, 30] L.append(40) x = L[1:3] L.insert(2, x[0] + x[1]) L = L[1:] print(L[1])
Correct output:
50Q15mcq1 mark
What will be the output? s = "COMPUTER" x = s[::2] y = x[1:] print(y + s[-3:-1])
MUETE ✓
MUEUT
MUEER
UEER