TN Online TestSamacheer Kalvi practice

12th Standard Computer Science — Strings and String manipulation: Online Practice Test

Share this chapter: Telegram

Pick how many questions you want and set a time limit, then start. You'll get your score at the end with the correct answer and an explanation for every question. Free, in Tamil and English — 25 questions available.

Set up your test

Time remaining00:00
Q1
Which of the following is the output of the following python code? str1="TamilNadu" print(str1[::-1])
Q2
What will be the output of the following code? str1 = "Chennai Schools" str1 = "-"
Q3
Which of the following operator is used for concatenation?
Q4
Defining strings within triple quotes allows creating:
Q5
Strings in python:
Q6
Which of the following is the slicing operator?
Q7
What is stride?
Q8
Which of the following formatting character is used to print exponential notation in upper case?
Q9
Which of the following is used as placeholders or replacement fields which get replaced along with format( ) function?
Q10
The subscript of a string may be:
Q11
If a string in Python is defined as my_str = "Innovate", what will be the value returned by my_str[-5]?
Q12
Which built-in Python string function is used to change the case of every character in a string to its opposite case?
Q13
What will be the output of the following Python expression: print("Python".center(10, '*'))?
Q14
Which of the following is returned by the expression print("Save1Earth".isalnum()) in Python?
Q15
In Python, what occurs when you attempt to delete a single character from a string using the statement: del str1?
Q16
What will be the output of the following Python code snippet? str1 = "Welcome to Python" print(str1[11:17:2])
Q17
Which of the following formatting characters is used to represent a signed decimal integer in Python string formatting?
Q18
What will be the output of the following Python code? str1 = "corporation" print(str1.capitalize())
Q19
Which of the following values is returned by the find() function if the specified substring is not found within the main string?
Q20
What will be the output of the following Python code snippet? str1 = "Raja Chozhan" print(str1.count('a', 0, 5))
Q21
What will be the output of the following Python code snippet? str1 = "welcome" print(str1.islower())
Q22
What is the output of the functions ord('A') and chr(65) in Python respectively?
Q23
Which of the following escape sequences represents an ASCII Carriage Return in Python?
Q24
What is the result of the membership operation "chennai" in "Chennai Schools" in Python?
Q25
What is the output of the following Python code? print("welcome" + "python" * 2)

More for this chapter

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

About this Strings and String manipulation test

This free online practice test covers Strings and String manipulation from the 12th Standard Computer Science (Samacheer Kalvi) syllabus. Choose the number of questions and an optional time limit, then answer and submit — everything is checked in your browser, with the correct answers and a worked explanation shown at the end. For the full solutions to every question in this set, see the solved MCQs page.

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