Completed

Class 11 CS – String Logical Challenge

Class 11 · Computer Science Tue, 29 Sep 2026 8:30 PM 60s / question 15 questions · 15 marks

Questions From This Challenge

Q1mcq1 mark
What will be the output? s = "ALGORITHM" print(s[2:8:2])
GRT ✓
GRH
OIH
GHM
Q2mcq1 mark
What will be the output? s = "DATABASE" x = s[-5:-1] print(x)
TAB
ABAS ✓
BASE
ASET
Q3mcq1 mark
What will be the output? s = "CODE" print(s[1:] + s[:2])
ODEC
ODECO ✓
CODECO
DECOD
Q4mcq1 mark
What will be the output? s = "Hi" print(s * 2 + "Py" * 2)
HiHiPyPy ✓
HiPyHiPy
HiHiPy
HiPyPy
Q5mcq1 mark
What will be the output? s = "COMPUTER" print("PUT" in s, "CAT" not in s)
True True ✓
True False
False True
False False
Q6mcq1 mark
What will be the output? s = "Education" print(s.lower().count("a"), s.upper().startswith("EDU"))
1 True ✓
2 True
1 False
2 False
Q7mcq1 mark
What will be the output? s = "programming" print(s.find("gram"), s.index("ming"))
3 7 ✓
2 7
3 6
4 7
Q8mcq1 mark
What will be the output? s = "Python123" print(s.isalnum(), s.isalpha(), s.isdigit())
True False False ✓
True True False
False True False
False False True
Q9mcq1 mark
What will be the output? s = "HELLO123" print(s.isupper(), s.islower(), s.isalpha())
True False False ✓
True True False
False False True
False True False
Q10mcq1 mark
What will be the output? s = " Python " print(len(s), len(s.strip()))
8 6
10 6 ✓
10 8
8 8
Q11mcq1 mark
What will be the output? s = " Data Science " x = s.lstrip() y = s.rstrip() print(len(x), len(y))
12 12
14 14 ✓
14 12
12 14
Q12mcq1 mark
What will be the output? s = "red blue red" s = s.replace("red", "green") print(s.count("green"))
1
2 ✓
3
4
Q13mcq1 mark
What will be the output? words = ["CS", "is", "fun"] s = "-".join(words) print(s)
CS-is-fun ✓
CSisfun
CS - is - fun
CS--is--fun
Q14mcq1 mark
What will be the output? s = "Name:Rahul" x = s.partition(":") print(x[0] + x[2])
NameRahul ✓
Name:Rahul
RahulName
Name
Q15mcq1 mark
What will be the output? s = "one,two,,four" x = s.split(",") print(x[1])
one
two ✓
four
""
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...