Strings
Himachal Pradesh Board · Class 11 · Computer Science
Practice quiz for Strings — Himachal Pradesh Board Class 11 Computer Science. MCQs and questions with answers to test your preparation.
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.
1,000+ Class 11 students started this chapter today
Quick Quiz: Strings
0/4Tap an answer to check it instantly. No sign-up needed for these 4.
Which of the following is the correct way to create a string in Python?
What is the index of the character 'W' in the string 'Hello World'?
What does the expression 'Hello' * 3 return?
Strings in Python are immutable. This means:
Sample Questions
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.
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'.
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.
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-!
+41 more questions available
Practice AllFrequently Asked Questions
What are the important topics in Strings for Himachal Pradesh Board Class 11 Computer Science?
How to score full marks in Strings — Himachal Pradesh Board Class 11 Computer Science?
Sources & Official References
Content is aligned to the official syllabus. Refer to the board website for the latest curriculum.
More resources for Strings
Important Questions
Practice with board exam-style questions
Syllabus
What topics to cover
Revision Notes
Key points for last-minute revision
Study Plan
Step-by-step plan to ace this chapter
Flashcards
Quick-fire cards for active recall
Formula Sheet
All formulas in one place
Chapter Summary
Understand the chapter at a glance
Concept Maps
See how topics connect visually
NCERT Solutions
Every textbook question solved step by step
For serious students
Get the full Strings chapter — for free.
Quizzes, flashcards, AI doubt-solver and a step-by-step study plan for Himachal Pradesh Board Class 11 Computer Science.