CH 8 MCQ- COMPUTER SCIENCE - XII

1. Which of the following is the output of the following python code? str1="TamilNadu" print(str1[::-1])

2. What will be the output of the following code? str1 = "Chennai Schools" str1[7] = "-"

3.Which of the following operator is used for concatenation?

4. Defining strings within triple quotes allows creating:

5. Strings in Python:

6. Which of the following is the slicing operator?

7. What is stride?

8. Which of the following formatting character is used to print exponential notation in upper case??

9. Which of the following is used as placeholders or replacement fields which get replaced along with format( ) function?

10. The subscript of a string may be:

Score: 0 / 10