TN Online TestSamacheer Kalvi practice

12th Standard Computer Science — Strings and String manipulation: Book Back MCQs with Answers & Explanations

Share this chapter: Telegram

Every Book Back multiple-choice question from Strings and String manipulation (12th Standard Computer Science, Samacheer Kalvi) — each with the correct option highlighted and a clear, worked explanation. Free to read in English and Tamil.

Answer key at a glance

Q1
Which of the following is the output of the following python code? str1="TamilNadu" print(str1[::-1])
  • A. Tamilnadu
  • B. Tmlau
  • C. udanlimaT
  • D. udaNlimaTCorrect
Explanation. The slicing operator with a stride of -1 reverses the string. In the original string, 'N' is capitalized, so it remains capitalized in the reversed output.
Q2
What will be the output of the following code? str1 = "Chennai Schools" str1 = "-"
  • A. Chennai-Schools
  • B. Chenna-School
  • C. Type errorCorrect
  • D. Chennai
Explanation. Strings in Python are immutable, meaning they cannot be modified in place. Attempting to assign a new character to a specific index raises a TypeError.
Q3
Which of the following operator is used for concatenation?
  • A. +Correct
  • B. &
  • C. *
  • D. =
Explanation. In Python, the plus (+) operator is used to concatenate or join two or more strings together.
Q4
Defining strings within triple quotes allows creating:
  • A. Single line Strings
  • B. Multiline StringsCorrect
  • C. Double line Strings
  • D. Multiple Strings
Explanation. In Python, defining strings within triple quotes (either triple single quotes or triple double quotes) allows the creation of multiline strings.
Q5
Strings in python:
  • A. Changeable
  • B. Mutable
  • C. ImmutableCorrect
  • D. flexible
Explanation. Strings in Python are immutable objects, which means their individual characters cannot be changed or modified once defined.
Q6
Which of the following is the slicing operator?
  • A. { }
  • B. [ ]Correct
  • C. < >
  • D. ( )
Explanation. The square brackets [ ] act as the slicing operator in Python, allowing users to extract substrings from a main string.
Q7
What is stride?
  • A. index value of slide operation
  • B. first argument of slice operation
  • C. second argument of slice operation
  • D. third argument of slice operationCorrect
Explanation. When slicing a string, the third argument is the stride, which defines the number of characters to move forward after each character is retrieved.
Q8
Which of the following formatting character is used to print exponential notation in upper case?
  • A. %f
  • B. %ECorrect
  • C. %g
  • D. %n
Explanation. The formatting character %E is used in string formatting to display floating-point numbers in uppercase exponential notation.
Q9
Which of the following is used as placeholders or replacement fields which get replaced along with format( ) function?
  • A. { }Correct
  • B. < >
  • C. ++
  • D. ^^
Explanation. Curly braces { } are used as placeholders or replacement fields in Python strings, and they are replaced by values passed to the format() function.
Q10
The subscript of a string may be:
  • A. Positive
  • B. Negative
  • C. Both (a) and (b)Correct
  • D. Either (a) or (b)
Explanation. In Python, string subscripts or indices can be positive (counting from the beginning) or negative (counting backward from the end).
Take the Book Back practice test → Open the app

More for this chapter

Additional MCQs15 extra MCQs · solved Practice TestInteractive · instant score Book Back TestTest yourself on the textbook set Additional MCQ TestTest yourself on the extra set Study NotesConcepts & methods Formula SheetAll key formulas

About these Strings and String manipulation questions

These are the Book Back multiple-choice questions for Strings and String manipulation from the Tamil Nadu State Board (Samacheer Kalvi) 12th Standard Computer Science syllabus. Each question shows the correct option and an original, step-by-step explanation so you understand the method, not just the answer. Use the answer key above to jump to any question, then take the practice test to check yourself under exam-like conditions.

Frequently asked questions

How many MCQs are there in Strings and String manipulation?

This chapter has 10 book-back multiple-choice questions, each with the correct answer and a step-by-step explanation.

Are these 12th Standard Computer Science MCQs free to practise online?

Yes. Every question, answer and explanation here is free, and you can also take them as a timed practice test.

Where can I find the Strings and String manipulation book-back answers?

The correct option for each question is highlighted on this page with a worked explanation, plus a quick answer-key summary at the top.

More chapters in Computer Science

View all
1 Function 2 Data Abstraction 3 Scoping 4 Algorithmic Strategies 5 Python -Variables and Operators 6 Control Structures 7 Python functions 9 Lists, Tuples, Sets and Dictionary 10 Python Classes and objects 11 Database Concepts 12 Structured Query Language (SQL) 13 Python and CSV files 14 Importing C++ programs in Python. 15 Data manipulation through SQL 16 Data visualization using pyplot: line chart, pie chart and bar chart