Computer Fundamental MCQs - Introduction to Computer

Computer Fundamental MCQs
Computer Fundamental MCQs - Introduction to Computer

Computer Fundamental MCQs


पायथन में '==' ऑपरेटर सत्य (True) कब देता है?

Options:

  1. वेरिएबल एक ही ऑब्जेक्ट के उपनाम हैं
  2. दो भिन्न ऑब्जेक्ट्स के कंटेंट समान हैं
  3. विकल्प (1) व (2) सही हैं
  4. सभी विकल्प गलत हैं

Right Answer: दो भिन्न ऑब्जेक्ट्स के कंटेंट समान हैं

Python में == ऑपरेटर दो ऑब्जेक्ट्स के मान (Values) की तुलना करता है, न कि उनकी मेमोरी लोकेशन की। यदि दोनों ऑब्जेक्ट्स का कंटेंट समान है तो यह True लौटाता है, चाहे वे अलग-अलग ऑब्जेक्ट ही क्यों न हों। इसके विपरीत is ऑपरेटर यह जांचता है कि दोनों वेरिएबल एक ही ऑब्जेक्ट को संदर्भित कर रहे हैं या नहीं। इसलिए == ऑपरेटर का उपयोग समान मानों की तुलना करने के लिए किया जाता है।

This question is part of Computer Fundamental MCQs - Introduction to Computer, which has 75 practice questions with answers.

Published: | Last Updated:
Deepak - Educational Content Creator

Written by Deepak

Educational Content Creator

I am an educational content creator dedicated to making learning simple, engaging, and accessible for students preparing for competitive exams. He specializes in creating high-quality study materials, including notes, multiple-choice questions (MCQs), previous year question papers, practice tests, and exam-oriented resources.

Experience: 10+ years in Education and Competitive Exam Content Creator