nerdexam
Python_Institute

PCAP-31-03 · Question #26

Assuming that the following piece of code has been executed successfully, which of the expressions evaluate to True? (Select two answers)

The correct answer is C. isinstance(obj_c,A) D. B. VarA == 3. See the full explanation below for the reasoning.

Question

Assuming that the following piece of code has been executed successfully, which of the expressions evaluate to True? (Select two answers)

Exhibit

PCAP-31-03 question #26 exhibit

Options

  • Aobj_b.prop_a == 3
  • Bhasattr(obj_b, 'prop_aa')
  • Cisinstance(obj_c,A)
  • DB. VarA == 3

How the community answered

(26 responses)
  • A
    15% (4)
  • B
    8% (2)
  • C
    77% (20)

Community Discussion

No community discussion yet for this question.

Full PCAP-31-03 Practice