Skip to main content
Chapter 8 of 11
Practice Quiz

Strings — Practice Quiz

CBSE · Class 11 · Computer Science

Try a 4-question quiz on Strings for CBSE Class 11 Computer Science: tap an answer to check it and see why. 39 questions in the full chapter test.

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 practice quiz and more.

Free trial, no card needed.

Quick Quiz: Strings

0/4

Tap an answer to check it instantly. No sign-up needed for these 4.

1

Which of the following is the correct way to create a string in Python?

2

What is the index of the character 'W' in the string 'Hello World'?

3

What does the expression 'Hello' * 3 return?

4

Strings in Python are immutable. This means:

39 Questions·
multiple choicemultiple correct

Sample Questions

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 practice questions are there for Strings?
There are 39 questions on Strings. Try the 4-question sample quiz on this page first; each answer shows an explanation when you tap it.

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.