Zusammenfassung der Ressource
Frage 1
Frage
A string is a sequence of characters enclosed in ………
Antworten
-
single quote
-
double quote
-
triple quote
-
all of the above
Frage 2
Frage
What will be the output of the following Python statement?
>>>”a”+“bc”
Frage 3
Frage
What arithmetic operators cannot be used with strings?
Antworten
-
+
-
*
-
-
-
All of the mentioned
Frage 4
Frage
The format function, when applied on a string returns ___________
Frage 5
Frage
Python does not have a character data type.
Frage 6
Frage
Strings in Python are mutable
Frage 7
Frage
Retrieving a portion of a string is called slicing
Frage 8
Frage
Indexing is used for accessing individual characters within a string.
Frage 9
Frage
Each character of a string can be accessed either using a for loop or while loop.
Frage 10
Frage
What will be the output of the following Python statement?
>>>”abcd”[2:]