Advertisements
Chapters
![NCERT solutions for कम्प्युटर सायन्स [इंग्रजी] इयत्ता ११ chapter 8 - Strings NCERT solutions for कम्प्युटर सायन्स [इंग्रजी] इयत्ता ११ chapter 8 - Strings - Shaalaa.com](/images/computer-science-english-class-11_6:f845d20929ea4abdb3a8e0cf9f430d7f.jpg)
Advertisements
Solutions for Chapter 8: Strings
Below listed, you can find solutions for Chapter 8 of CBSE NCERT for कम्प्युटर सायन्स [इंग्रजी] इयत्ता ११.
NCERT solutions for कम्प्युटर सायन्स [इंग्रजी] इयत्ता ११ 8 Strings Exercise [Pages 187 - 188]
Consider the following string mySubject:
mySubject = "Computer Science"
What will be the output of the following string operation:
print(mySubject[0: len(mySubject)])
Consider the following string mySubject:
mySubject = "Computer Science"
What will be the output of the following string operation:
print(mySubject[-7: -1])
Consider the following string mySubject:
mySubject = "Computer Science"
What will be the output of the following string operation:
print(mySubject[::2])
Consider the following string mySubject:
mySubject = "Computer Science"
What will be the output of the following string operation:
print(mySubject[len(mySubject) -1])
Consider the following string mySubject:
mySubject = "Computer Science"
What will be the output of the following string operation:
print(2*mySubject)
Consider the following string mySubject:
mySubject = "Computer Science"
What will be the output of the following string operation:
print(mySubject[:: -2])
Consider the following string mySubject:
mySubject = "Computer Science"
What will be the output of the following string operation:
print(mySubject[:3] + mySubject[3:])
Consider the following string mySubject:
mySubject = "Computer Science"
What will be the output of the following string operation:
print(mySubject.swapcase())
Consider the following string mySubject:
mySubject = "Computer Science"
What will be the output of the following string operation:
print(mySubject.startswith('Comp'))
Consider the following string mySubject:
mySubject = "Computer Science"
What will be the output of the following string operation:
print(mySubject.isalpha())
Consider the following string myAddress:
myAddress = "WZ-1, New Ganga Nagar, New Delhi"
What will be the output of the following string operation:
print(myAddress.lower())
Consider the following string myAddress:
myAddress = "WZ-1, New Ganga Nagar, New Delhi"
What will be the output of the following string operation:
print(myAddress.upper())
Consider the following string myAddress:
myAddress = "WZ-1, New Ganga Nagar, New Delhi"
What will be the output of the following string operation:
print(myAddress.count('New'))
Consider the following string myAddress:
myAddress = "WZ-1, New Ganga Nagar, New Delhi"
What will be the output of the following string operation:
print(myAddress.find('New'))
Consider the following string myAddress:
myAddress = "WZ-1, New Ganga Nagar, New Delhi"
What will be the output of the following string operation:
print(myAddress.rfind('New'))
Consider the following string myAddress:
myAddress = "WZ-1, New Ganga Nagar, New Delhi"
What will be the output of the following string operation:
print(myAddress.split(','))
Consider the following string myAddress:
myAddress = "WZ-1, New Ganga Nagar, New Delhi"
What will be the output of the following string operation:
print(myAddress.split(' '))
Consider the following string myAddress:
myAddress = "WZ-1, New Ganga Nagar, New Delhi"
What will be the output of the following string operation:
print(myAddress.replace('New', 'Old'))
Consider the following string myAddress:
myAddress = "WZ-1, New Ganga Nagar, New Delhi"
What will be the output of the following string operation:
print(myAddress.partition(','))
Consider the following string myAddress:
myAddress = "WZ-1, New Ganga Nagar, New Delhi"
What will be the output of the following string operation:
print(myAddress.index('Agra'))
Programming Problems
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), the total number of alphabets, the total number of digits, the total number of special symbols, and the total number of words in the given text. (Assume that each word is separated by one space).
Write a user-defined function to convert a string with more than one word into a title case string where the string is passed as a parameter. (Title case means that the first letter of each word is capitalized).
Write a function deleteChar() which takes two parameters one is a string and the 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.
Input a string having some digits. Write a function to return the sum of digits present in this string.
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.
Solutions for 8: Strings
![NCERT solutions for कम्प्युटर सायन्स [इंग्रजी] इयत्ता ११ chapter 8 - Strings NCERT solutions for कम्प्युटर सायन्स [इंग्रजी] इयत्ता ११ chapter 8 - Strings - Shaalaa.com](/images/computer-science-english-class-11_6:f845d20929ea4abdb3a8e0cf9f430d7f.jpg)
NCERT solutions for कम्प्युटर सायन्स [इंग्रजी] इयत्ता ११ chapter 8 - Strings
Shaalaa.com has the CBSE Mathematics कम्प्युटर सायन्स [इंग्रजी] इयत्ता ११ CBSE solutions in a manner that help students grasp basic concepts better and faster. The detailed, step-by-step solutions will help you understand the concepts better and clarify any confusion. NCERT solutions for Mathematics कम्प्युटर सायन्स [इंग्रजी] इयत्ता ११ CBSE 8 (Strings) include all questions with answers and detailed explanations. This will clear students' doubts about questions and improve their application skills while preparing for board exams.
Further, we at Shaalaa.com provide such solutions so students can prepare for written exams. NCERT textbook solutions can be a core help for self-study and provide excellent self-help guidance for students.
Concepts covered in कम्प्युटर सायन्स [इंग्रजी] इयत्ता ११ chapter 8 Strings are Concepts of Strings in Python, Traversing a String in Python, String Method and Built-in Functions in Python, String Operation in Python, String Handling in Python.
Using NCERT कम्प्युटर सायन्स [इंग्रजी] इयत्ता ११ solutions Strings exercise by students is an easy way to prepare for the exams, as they involve solutions arranged chapter-wise and also page-wise. The questions involved in NCERT Solutions are essential questions that can be asked in the final exam. Maximum CBSE कम्प्युटर सायन्स [इंग्रजी] इयत्ता ११ students prefer NCERT Textbook Solutions to score more in exams.
Get the free view of Chapter 8, Strings कम्प्युटर सायन्स [इंग्रजी] इयत्ता ११ additional questions for Mathematics कम्प्युटर सायन्स [इंग्रजी] इयत्ता ११ CBSE, and you can use Shaalaa.com to keep it handy for your exam preparation.
