Important Notice:
M3-R5.1 — Strings in Python MCQ
23 Questions  •  M3-R5.1
20:00
← Back
1
In Python, strings can be enclosed in?
2
len("Python") returns?
3
"Python"[0] returns?
4
"Hello"[1:4] returns?
5
String method to convert to uppercase?
6
"Hello" + " World" produces?
7
"Ha" * 3 produces?
8
strip() method removes?
9
split(",") on "a,b,c" returns?
10
Strings in Python are?
11
String in Python is defined by?
12
"Hello"[0] returns?
13
"Hello"[-1] returns?
14
String slicing s[1:4] on "Python" gives?
15
"hello".upper() returns?
16
"HELLO".lower() returns?
17
" hello ".strip() returns?
18
"Hello World".split() returns?
19
"Hello".replace("l","r") returns?
20
"Python".find("th") returns?
21
"abc" + "xyz" returns?
22
"Ha" * 3 returns?
23
"hello".capitalize() returns?
Answered: 0 / 23