Skip to main content
Chapter 8 of 11
Important Questions

Strings — Important Questions

CBSE · Class 11 · Computer Science

39 important questions from Strings for CBSE Class 11 Computer Science, with answers. Includes multiple choice and multiple correct questions.

39 questions80 flashcards8 formulas & key relations5 concepts

Interactive on Super Tutor

Studying Strings? Get the full interactive chapter.

Quizzes, flashcards, AI doubt-solver and a step-by-step study plan — built for important questions and more.

Free trial, no card needed.

39 Questions·
multiple choicemultiple correct

Important Questions from Strings

1multiple correct

Which operators can be used with strings in Python?

Show answer

+ (concatenation), * (repetition), in (membership)

Strings support + for joining strings, * for repeating strings, and 'in' for checking if a substring exists. Subtraction (-) is not supported for strings.

2multiple choice

What will str1[2:5] return if str1 = 'Programming'?

Show answer

ogr

Slicing str1[2:5] starts from index 2 and ends at index 4 (5 is exclusive). In 'Programming': P=0, r=1, o=2, g=3, r=4. So indices 2, 3, 4 give 'ogr'.

3multiple correct

Which string methods return a boolean value?

Show answer

islower(), isupper(), startswith(), isalnum()

Methods like islower(), isupper(), startswith(), endswith(), isalnum() return True or False. The replace() method returns a modified string, not a boolean.

4multiple choice

What does len('Hello World!') return?

Show answer

12

The len() function counts all characters including spaces and punctuation. 'Hello World!' has 12 characters: H-e-l-l-o-space-W-o-r-l-d-!

+35 more questions on Strings (CBSE Class 11 Computer Science)

Practise All

Frequently Asked Questions

What are the important topics in Strings for CBSE Class 11 Computer Science?
Key topics in Strings include String Basics and Creation, Indexing and len(), String Operations, Slicing and Reversing. Study these first, then practise questions on each for Class 11 exams.
How many important questions are there in Strings?
Super Tutor has 39 practice questions for Strings, including multiple choice, multiple correct questions. A sample with answers is on this page.

Sources & Official References

Content is aligned to the official syllabus. Refer to the board website for the latest curriculum.

For serious students

Get the full Strings chapter — start free.

Quizzes, flashcards, an AI doubt solver and a study plan for CBSE Class 11 Computer Science. Free to start, no card needed.