Computer Science · Variables
एक छात्र ऑगमेंटेड असाइनमेंट ऑपरेटर का उपयोग करता है: total += 5। यदि वेरिएबल 'total' को प्रोग्राम में पहले कभी परिभाषित नहीं किया गया था, तो पायथन में क्या होगा?
- 1यह एक्सप्रेशन का मूल्यांकन None के रूप में करता है
- 2यह स्ट्रिंग कॉन्कैटिनेशन (concatenation) करता है
- 3यह एक NameError उत्पन्न करता है✓
- 4यह 5 के मान के साथ 'total' को इनिशियलाइज़ करता है
सही उत्तर देखें
यह एक NameError उत्पन्न करता है
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 Variables?
Solve complete topic-wise tests with detailed solutions on GkGet.
Related Practice Questions
Recommended practice questions in Computer Science · Variables