Computer Science · Python String Immutability
अभिकथन (A): पायथन में कथन my_string[0] = 'H' एक TypeError उत्पन्न करेगा। कारण (R): पायथन में स्ट्रिंग्स अपरिवर्तनीय (immutable) अनुक्रम हैं, जिसका अर्थ है कि उनके व्यक्तिगत तत्वों को इन-प्लेस नए मान असाइन नहीं किए जा सकते हैं। सही विकल्प चुनिए:
- 1A गलत है लेकिन R सही है।
- 2A सही है लेकिन R गलत है।
- 3A और R दोनों सही हैं लेकिन R, A की सही व्याख्या नहीं है।
- 4A और R दोनों सही हैं और R, A की सही व्याख्या है।✓
सही उत्तर देखें
A और R दोनों सही हैं और R, A की सही व्याख्या है।
Download Single Question PDF
Save this question and verified answer as a clean study sheet with live clickable link.
Share with Friends & Study Groups
Challenge your peer aspirants on WhatsApp or Telegram to solve this question!
Preparing for Computer Science?
Practice full-length mock tests with real exam timers, instant score analysis, and all-India ranking.
Want more practice questions on Python String Immutability?
Solve complete topic-wise tests with detailed solutions on GkGet.
Related Practice Questions
Recommended practice questions in Computer Science · Python String Immutability