nerdexam
Python_Institute

PCPP-32-101 · Question #9

Which function or operator should you use to obtain the answer True or False to the question "Do two variables refer to the same object?"

Sign in or unlock PCPP-32-101 to reveal the answer and full explanation for question #9. The question stem and answer options stay visible for context.

Advanced OOP

Question

Which function or operator should you use to obtain the answer True or False to the question "Do two variables refer to the same object?"

Options

  • AThe == operator
  • BThe isinstance() function
  • CThe id() function
  • DThe is function

Unlock PCPP-32-101 to see the answer

You've previewed enough free PCPP-32-101 questions. Unlock PCPP-32-101 for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.

Topics

#object identity#is operator#id() function#reference comparison
Full PCPP-32-101 Practice