True / False For String Manipulation Class 11 Computer Science (CS)



1. Strings have both positive and negative indexes.

2. Python does not support a character type; a single character is treated as strings of length one.

3. Strings are immutable in Python, which means a string cannot be modified.

4. Like ‘+’, all other arithmetic operators are also supported by strings.

5. Functions capitalize() and title() return the same result.

6. Functions partition() and split() work identically.

7. The find() and index() are similar functions.

8. The find() does not raise an exception if the sub-string is not found.

9. The partition() function's result is always a 3-element tuple.

10. The split() returns always a 3-element list.


Answer :-

1. True
2. True
3. True
4. False
5. False
6. False
7. True
8. True
9. True
10. False

Post a Comment

You can help us by Clicking on ads. ^_^
Please do not send spam comment : )

Previous Post Next Post