NCERT Solutions Class 11 Computer Science Strings

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.

Tags:

Click for more Computer Science Study Material

Latest NCERT & CBSE News

Read the latest news and announcements from NCERT and CBSE below. Important updates relating to your studies which will help you to keep yourself updated with latest happenings in school level education. Keep yourself updated with all latest news and also read articles from teachers which will help you to improve your studies, increase motivation level and promote faster learning

Keep your kids engaged during Lockdown

Kids are the Future of our Country! Outlines have changed and so should the formats of existence! It is the best time to teach our kids the pleasure of Self-Discipline, Self-Realization and Self-Control. To keep the future generation safe in such unpredictable...

Revised SOP preventive measures followed while conducting examinations

Revised SOP on preventive measures to be followed while conducting examinations to contain spread of COVID-19 issued by Ministry of Health & Family Welfare Examination centres are frequented by large number of students (as well as their parents) and staff till the...

Conduct of the practical work during the lockdown

CBSE has advised schools to follow the Alternative Calendar developed by NCERT to continue education during the lockdown through alternative modes to achieve learning outcomes. Schools have reportedly started using these calendars and other prescribed pedagogical...

×