nerdexam
Python_Institute

PCAP-31-03 · Question #52

Which of the following lambda definitions are correct? (Select two answers)

The correct answer is B. lambda x, y: x//y - x%y D. lambda x, y: (x, y). See the full explanation below for the reasoning.

Question

Which of the following lambda definitions are correct? (Select two answers)

Options

  • Alanbda x, y; return x\y - x%y
  • Blambda x, y: x//y - x%y
  • Clambda (x, y = x\y x%y
  • Dlambda x, y: (x, y)

How the community answered

(40 responses)
  • A
    10% (4)
  • B
    85% (34)
  • C
    5% (2)

Community Discussion

No community discussion yet for this question.

Full PCAP-31-03 Practice