nerdexam
Python_Institute

PCAP-31-03 · Question #86

The simplest possible class definition in Python can be expressed as:

The correct answer is B. class X: pass. See the full explanation below for the reasoning.

Question

The simplest possible class definition in Python can be expressed as:

Options

  • Aclass X:
  • Bclass X: pass
  • Cclass X: return
  • Dclass X: {}

How the community answered

(30 responses)
  • A
    3% (1)
  • B
    73% (22)
  • C
    10% (3)
  • D
    13% (4)

Community Discussion

No community discussion yet for this question.

Full PCAP-31-03 Practice