PdfPrep.com

Consider the following code:

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.
A . 29, 2500 30, 1500
B . 30, 1500 31, 2500
C . 29, 1500 30, 2500
D . 29, 4000 30, 2500

Answer: C

Exit mobile version