nerdexam
Python_Institute

PCEP-30-02 · Question #302

What would you insert instead of ???, so that the program prints TRUE to the monitor? w = 7 x = 3 y = 4 z = True a = w + x * y b = w + x / z if ???: print('TRUE') else: print('FALSE')

The correct answer is C. a == b. See the full explanation below for the reasoning.

Question

What would you insert instead of ???, so that the program prints TRUE to the monitor? w = 7 x = 3 y = 4 z = True a = w + x * y b = w + x / z if ???: print('TRUE') else: print('FALSE')

Options

  • Aa < b
  • Ba <= b
  • Ca == b
  • Da > b

How the community answered

(51 responses)
  • A
    10% (5)
  • B
    2% (1)
  • C
    82% (42)
  • D
    6% (3)

Community Discussion

No community discussion yet for this question.

Full PCEP-30-02 Practice