Report Bug

QusGiven a string s="Welcome", which of the following code is incorrect ? Qusएक स्ट्रिंग s="Welcome" में निम्नलिखित में से कौन सा कोड गलत है?


A. print s[0]
B. print s.lower()
C. s[1]='r'
D. print s.strip()


Solution
C. s[1]='r'



Explanation
String is immutable i.e. it can't be change in place
Latest Current Affairs 2025 Online Exam Quiz for One day Exam Online Typing Test CCC Online Test Python Programming Tutorials Best Computer Training Institute in Prayagraj (Allahabad) Online MBA 2 years Online MCA Online BCA Best Website and Software Company in Allahabad