nerdexam
ISTQB

CTFL18 · Question #452

Consider the following code: int premium=2500; if (age<30) { Premium = premium + 1500; } Which options suits for a correct combination of Boundary value and expected result. Assume first number as…

The correct answer is C. 29, 1500. See the full explanation below for the reasoning.

Question

Consider the following code:

int premium=2500; if (age<30) { Premium = premium + 1500; } Which options suits for a correct combination of Boundary value and expected result. Assume first number as boundary followed by expected result.

Options

  • A29, 2500
  • B30, 1500
  • C29, 1500
  • D29, 4000

How the community answered

(24 responses)
  • A
    4% (1)
  • B
    4% (1)
  • C
    83% (20)
  • D
    8% (2)

Community Discussion

No community discussion yet for this question.

Full CTFL18 Practice