nerdexam
ISTQB

CTFL18 · Question #553

You need to test a vending machine for light drinks. The machine has a button for each of the drinks it contains. Pressing a button before inserting coins, will display the cost of the drink…

The correct answer is D. Use-case testing. See the full explanation below for the reasoning.

Question

You need to test a vending machine for light drinks. The machine has a button for each of the drinks it contains. Pressing a button before inserting coins, will display the cost of the drink. Pressing the same button after inserting enough coins will dispense the drink and provide change if needed). If the machine is out of the specific drink, and the button for this drink is pressed, the machine displays "Sold Out" (regardless if coins were inserted or not). Which test technique is most suitable for this situation?

Options

  • AState transition testing
  • BEquivalence class testing
  • CBoundary value testing
  • DUse-case testing

How the community answered

(48 responses)
  • A
    6% (3)
  • B
    10% (5)
  • C
    4% (2)
  • D
    79% (38)

Community Discussion

No community discussion yet for this question.

Full CTFL18 Practice