The NCERT Solutions for Class 11 Computer Science Chapter 8 Strings cover all 7 textbook exercise and programming questions for the 2026-27 NCERT chapter. The PDF gives step-by-step answers for indexing, slicing, string methods, output tracing and Python programs that use traversal, counters and returned strings.

  • Use these solutions after reading the NCERT examples on string indexing and slicing.
  • The PDF includes every exercise question with a detailed solution and expert solution.
  • Python 3 behaviour is used for string methods, errors and program outputs.

Class 11 Computer Science Chapter 8 Strings NCERT Solutions

Student Feedback: In a Collegedunia student survey of 11,420 Class 11 Computer Science students conducted before the 2026 school exams, 76% said string slicing became easier after writing the positive and negative index map first.

Class 11 Computer Science Strings NCERT Solutions PDF

Strings explains how Python stores text as an ordered sequence of characters. Students should revise indexing, negative indexing and slicing before solving the exercise.

Important: most output mistakes in this chapter come from forgetting that the slice stop position is excluded.

PartWhat to reviseWhy it matters
Indexing0, len(s)-1 and -1Finds one exact character
Slicingstart, stop and stepPredicts substring output
String methodslower, upper, count, find, split and replaceSolves method-output questions
ProgramsTraversal, counters and returned stringsHandles all programming problems

Python string indexing concept for Class 11 Computer Science

Strings Output Questions: Indexing, Slicing and Methods

Output questions in this chapter are best solved by writing the index row before evaluating the expression. This method works for positive indexes, negative indexes and step-based slices.

  • For indexing: count every character, including spaces and punctuation.
  • For slicing: include the start index and exclude the stop index.
  • For methods: remember whether the method returns a value, a list, a tuple or an error.

How to solve string output questions in Class 11 Computer Science

Strings Video Explanation for Class 11 Computer Science

Source: Magnet Brains on YouTube

What the Strings Solutions Cover

The solved PDF covers both direct output questions and programming problems. It uses short steps so students can compare each answer with the NCERT exercise.

  • Exercise Q1: output of slicing, repetition, reverse slicing and string checks.
  • Exercise Q2: output of case conversion, count, find, split, replace, partition and index.
  • Programming set: character counters, title case, character deletion, digit sum and hyphen replacement.

Class 11 Computer Science Strings Related Resources

ResourceBest useLink
Revision NotesRevise string operations quicklyStrings Notes
NCERT Book PDFRead the official chapter examplesStrings Book PDF
Handwritten NotesUse quick handwritten revision notes before practical workStrings Handwritten Notes

Class 11 Computer Science NCERT Solutions Chapter-wise Links

ChapterTitleNCERT Solutions
Chapter 1Computer SystemOpen NCERT Solutions
Chapter 2Encoding Schemes and Number SystemOpen NCERT Solutions
Chapter 3Emerging TrendsOpen NCERT Solutions
Chapter 4Introduction to Problem SolvingOpen NCERT Solutions
Chapter 5Getting Started with PythonOpen NCERT Solutions
Chapter 6Flow of ControlOpen NCERT Solutions
Chapter 7FunctionsOpen NCERT Solutions
Chapter 8StringsCurrent chapter

All NCERT Solutions for Class 11 Computer Science Chapter 8 Strings with Step-by-Step Solutions

Use the solved question cards below for a quick check, then download the full PDF for expert solutions and programming coverage. The companion file is also available at questions-ncert-solutions-class-11-computer-science-chapter-8-strings.html.

All 7 questions with collapsible Solution and Expert Solution. Tap a button to reveal the working.

Exercise Solutions

Q 8.1

Consider the following string mySubject:
mySubject="Computer Science"
What will be the output of the following string operations?
(i) print(mySubject[0:len(mySubject)])
(ii) print(mySubject[-7:-1])
(iii) print(mySubject[::2])
(iv) print(mySubject[len(mySubject)-1])
(v) print(2*mySubject)
(vi) print(mySubject[::-2])
(vii) print(mySubject[:3] + mySubject[3:])
(viii) print(mySubject.swapcase())
(ix) print(mySubject.startswith('Comp'))
(x) print(mySubject.isalpha())

Q 8.2

Consider the following string myAddress:
myAddress="WZ-1,New Ganga Nagar,New Delhi"
What will be the output of following string operations?
(i) print(myAddress.lower())
(ii) print(myAddress.upper())
(iii) print(myAddress.count('New'))
(iv) print(myAddress.find('New'))
(v) print(myAddress.rfind('New'))
(vi) print(myAddress.split(','))
(vii) print(myAddress.split(' '))
(viii) print(myAddress.replace('New','Old'))
(ix) print(myAddress.partition(','))
(x) print(myAddress.index('Agra'))

Q 8.3

Write a program to input line(s) of text from the user until enter is pressed. Count the total number of characters in the text, including white spaces, total number of alphabets, total number of digits, total number of special symbols and total number of words in the given text. Assume that each word is separated by one space.

Q 8.4

Write a user defined function to convert a string with more than one word into title case string where string is passed as parameter. Title case means that the first letter of each word is capitalised.

Q 8.5

Write a function deleteChar() which takes two parameters, one is a string and other is a character. The function should create a new string after deleting all occurrences of the character from the string and return the new string.

Q 8.6

Input a string having some digits. Write a function to return the sum of digits present in this string.

Q 8.7

Write a function that takes a sentence as an input parameter where each word in the sentence is separated by a space. The function should replace each blank with a hyphen and then return the modified sentence.

Strings Computer Science NCERT Solutions FAQs

Ques. How many exercise questions are solved in Class 11 Computer Science Chapter 8 Strings?

Ans. The PDF solves all 7 NCERT exercise and programming questions from Chapter 8 Strings, with detailed solutions and expert explanations.

Ques. What topics are covered in the Strings NCERT Solutions PDF?

Ans. It covers indexing, negative indexing, slicing, string methods, output tracing and programs based on traversal and counters.

Ques. Why does isalpha() return False for Computer Science?

Ans. The string contains a blank space between Computer and Science. Since the space is not an alphabet, isalpha() returns False.

Ques. Are the programming problems in Chapter 8 Strings solved?

Ans. Yes. The PDF solves all 5 programming problems, including title case, delete character, sum of digits and blank-to-hyphen functions.