Important Notice:
|| CCC Result Nov 2025 ||
|| CCC Marksheet Aug 2025 ||
|| O Level Jul 2026 Reg. Form Last Date: 30/04/2026 ||
|| CCC Mar 2026 Exam Postponed ||
|| CCC/ O Level Exam Full Form ||
|| CCC Result Nov 2025 ||
|| CCC Marksheet Aug 2025 ||
|| O Level Jul 2026 Reg. Form Last Date: 30/04/2026 ||
|| CCC Mar 2026 Exam Postponed ||
|| CCC/ O Level Exam Full Form ||
O Level
Notes
Follow us:
OLevelNotes
Home
O Level Notes
M1-R5.1
M2-R5.1
M3-R5.1
M4-R5.1
CCC
CCC Chapter Wise Notes
CCC Chapter Wise MCQ
CCC Modal Paper
CCC Previous Paper
CCC Assignment
CCC Online Test/Real Portal
Chapter Wise MCQ
M1-R5.1
M2-R5.1
M3-R5.1
M4-R5.1
Model Paper
M1-R5.1
M2-R5.1
M3-R5.1
M4-R5.1
O Level Real Test Portal
Old Paper
M1-R5.1
M2-R5.1
M3-R5.1
M4-R5.1
Practical Paper
M1-R5.1
M2-R5.1
M3-R5.1
M4-R5.1
Assignment
M1-R5.1
M2-R5.1
M3-R5.1
M4-R5.1
Contact Us
ADCA Course
Introduction To Computer
Introduction To OS
MS Office
Tally Prime
Graphic Design
Web Design
Programming Language
Learn Typing
Typing Tutor
Typing Test
KCIT Student
Student Login
KCIT Student
M3-R5.1 — Strings in Python MCQ
23 Questions • M3-R5.1
20:00
← Back
1
In Python, strings can be enclosed in?
A
Square brackets []
B
Only single quotes ''
C
Only double quotes ""
D
Single, double, or triple quotes
2
len("Python") returns?
A
5
B
6
C
7
D
8
3
"Python"[0] returns?
A
n
B
P
C
y
D
o
4
"Hello"[1:4] returns?
A
Hel
B
ell
C
Hello
D
llo
5
String method to convert to uppercase?
A
upper()
B
toUpper()
C
capitalize()
D
large()
6
"Hello" + " World" produces?
A
Error
B
"Hello World"
C
"HelloWorld"
D
"Hello" "World"
7
"Ha" * 3 produces?
A
Ha Ha Ha
B
HaHaHa
C
Error
D
6
8
strip() method removes?
A
Last character
B
First character
C
Leading and trailing whitespace
D
All spaces
9
split(",") on "a,b,c" returns?
A
'a,b,c'
B
['a', 'b', 'c']
C
('a','b','c')
D
{'a','b','c'}
10
Strings in Python are?
A
Mutable
B
Immutable
C
Optional
D
Dynamic sized only
11
String in Python is defined by?
A
{}
B
[]
C
Single or double quotes
D
()
12
"Hello"[0] returns?
A
o
B
H
C
e
D
l
13
"Hello"[-1] returns?
A
H
B
e
C
l
D
o
14
String slicing s[1:4] on "Python" gives?
A
Pyt
B
yth
C
tho
D
ytho
15
"hello".upper() returns?
A
hello
B
HELLO
C
Hello
D
hELLO
16
"HELLO".lower() returns?
A
HELLO
B
Hello
C
hello
D
hELLO
17
" hello ".strip() returns?
A
" hello "
B
"hello"
C
hello
D
hello
18
"Hello World".split() returns?
A
Hello World
B
['Hello', 'World']
C
['H','e','l','l','o']
D
Error
19
"Hello".replace("l","r") returns?
A
Herro
B
Hello
C
Herlo
D
Helro
20
"Python".find("th") returns?
A
0
B
1
C
2
D
3
21
"abc" + "xyz" returns?
A
abc xyz
B
abcxyz
C
Error
D
abc+xyz
22
"Ha" * 3 returns?
A
Ha3
B
HaHaHa
C
Error
D
Ha Ha Ha
23
"hello".capitalize() returns?
A
HELLO
B
Hello
C
hello
D
hELLO
📋 Question Navigator
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
Answered
Not Answered
ℹ️ Quiz Info
Total Questions:
23
Time Limit:
20 min
Subject:
M3-R5.1
Passing:
60%
Attempt all questions before submitting. You can review your answers using the navigator above.
Answered:
0
/ 23
Submit Quiz