This is a timed quiz.
You have 8 minutes to complete the 10 questions in this quiz.
A string is a sequence of characters enclosed in ………
single quote
double quote
triple quote
all of the above
What will be the output of the following Python statement? >>>”a”+“bc”
a
bc
bca
abc
What arithmetic operators cannot be used with strings?
+
*
-
All of the mentioned
The format function, when applied on a string returns ___________
Error
int
bool
str
Python does not have a character data type.
Strings in Python are mutable
Retrieving a portion of a string is called slicing
Indexing is used for accessing individual characters within a string.
Each character of a string can be accessed either using a for loop or while loop.
What will be the output of the following Python statement? >>>”abcd”[2:]
ab
cd
dc