NCERT Solutions Class 11 Computer Science Strings. The NCERT solutions for Class 11 Computer Science book have been made by Computer Science teacher of one of the best CBSE school in India. Computer Science in Class 11 is an important and easy to score subject for Class 11 students. These NCERT solutions have been made to give detailed answers and explanations which can be easily understood by the students. You can download the NCERT solutions for free in pdf format. Refer to other links also to download Class 11 Computer Science NCERT solutions, worksheets, sample papers and test papers.
Question 1: Explain capitalize( ) method in Python.
Answer: The method capitalize( ) returns a copy of the string with only its first character capitalized.
Question 2: Write the syntax for capitalize( ) method.
Answer: Following is the syntax for capitalize( ) method : str.capitalize( )
Question 3: What value will be returned by center (width, fillchar) method in Python.
Answer: The method center( ) returns centered in a string of length width. Padding is done using the specified fillchar.
Question 4: What are the two parameters of center( ) method.
Answer: width — This is the total width of the string, fillchar — This is the filler character
Question 5: Describe the count(str, beg=0,end= len(string))
Answer: The method count( ) returns the number of occurrences of substring sub in the range [start, end].
Question 6: Describe the decode (encoding=’UTF8′, errors=’ strict’ )
Answer: The method decode( ) decodes the string using the codec registered for encoding.
Please click the link below to download NCERT Solutions Class 11 Computer Science Strings.
Click for more Computer Science Study Material ›