English
Tamil Nadu Board of Secondary EducationHSC Science Class 12

What will be the output of the following code? str1 = "Chennai Schools" str1[7] = "-" - Computer Science

Advertisements
Advertisements

Question

What will be the output of the following code?

str1 = "Chennai Schools"
str1[7] = "-"

Options

  • Chennai-Schools

  • Chenna-School

  • Type error

  • Chennai

MCQ

Solution

Type error

shaalaa.com
Programs Using Strings
  Is there an error in this question or solution?
Chapter 8: Strings and String manipulation - Evaluation [Page 129]

APPEARS IN

Samacheer Kalvi Computer Science [English] Class 12 TN Board
Chapter 8 Strings and String manipulation
Evaluation | Q 2. | Page 129
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×