Confirming your payment

Skip to content

Competency-Based Questions (CBQ) · Question 19 of 80

A vending machine has three buttons, 1 , 2 and 3 , and can dispense three products: Chips, Juice and Nuts.

Question 191 markMCQEasy

A vending machine has three buttons, 11, 22 and 33, and can dispense three products: Chips, Juice and Nuts. A technician tests four machines and records the wiring of each as a set of (button, product) pairs.

MachineRecorded pairs
L1L_1(1, Chips)(1,\ \mathrm{Chips}), (2, Juice)(2,\ \mathrm{Juice})
L2L_2(1, Chips)(1,\ \mathrm{Chips}), (2, Juice)(2,\ \mathrm{Juice}), (2, Nuts)(2,\ \mathrm{Nuts}), (3, Chips)(3,\ \mathrm{Chips})
L3L_3(1, Nuts)(1,\ \mathrm{Nuts}), (2, Nuts)(2,\ \mathrm{Nuts}), (3, Juice)(3,\ \mathrm{Juice})
L4L_4(1, Juice)(1,\ \mathrm{Juice}), (2, Chips)(2,\ \mathrm{Chips}), (3, Nuts)(3,\ \mathrm{Nuts})

A wiring counts as a function from the set of buttons to the set of products. Which of the four wirings really are functions, and which of those are onto?

Select your answer
  • (A) L3L_3 and L4L_4; only L4L_4 is onto

    Correct answer
  • (B) L3L_3 and L4L_4; both are onto

  • (C) L1L_1, L3L_3 and L4L_4; only L4L_4 is onto

  • (D) L2L_2, L3L_3 and L4L_4; only L4L_4 is onto