Question 67Asked in Bihar STET 2025 Paper II Computer Science, 3 Nov 2025, Shift 1 (9:00 AM)

Which of the following operator evaluates to True if the variable on either side of theनिम्‍नलिखित में से कौन सा ऑपरेटर (Operator) True में इवैल्‍युएट (evaluate) होता है, यदि उस

Which of the following operator evaluates to True if the variable on either side of the operator points towards the same memory location and False otherwise ?
निम्‍नलिखित में से कौन सा ऑपरेटर (Operator) True में इवैल्‍युएट (evaluate) होता है, यदि उस ऑपरेटर (Operator) के दोनों तरफ के वेरिएबल (variable) समान मेमोरी स्‍थान (memory location) की ओर इंगित करते हैं, अन्‍यथा वह Operator False में इवैल्‍युएट (evaluate) होता है ?
  1. Aisis
  2. Bis notis not
  3. Candand
  4. Doror
Show answerHide answer

Correct answer: (A) isis

Explanation

The "is" operator returns True when both variables refer to the same object in memory (same id()). "==" only compares values."is" ऑपरेटर तब True लौटाता है जब दोनों वेरिएबल मेमोरी में एक ही ऑब्जेक्ट (वही id()) को दर्शाते हों। "==" केवल मानों की तुलना करता है।

From Bihar STET 2025 Paper II Computer Science PYQ, 3 Nov 2025, Shift 1 (9:00 AM)

This is question 67 of Bihar STET 2025 Paper II Computer Science PYQ, 3 Nov 2025, Shift 1 (9:00 AM). See all questions of this paper with answers, or attempt the paper as a timed online test to get your score and all-India rank.