Thread: ISTQB foundation Mock exams solution errors?

1. ISTQB foundation Mock exams solution errors?

Currently studying for the ISTQB Foundation exam and doing mock exams online and found out of few questions that I don't understand:

1. GIVEN THE FOLLOWING PROGRAM:

IF X = Z
THEN STATEMENT 2
END

McCabe's Cyclomatic Complexity is:
a) 2
b) 3
c) 4
d) 5

Why?
MY answer would be a) 2, because cyclomatic complexity is # of decision (IF/while) + 1. I don't understand why they said it's 3.

2)An input field takes the year of birth between 1900 and 2004. The boundary values for testing this field are:

a)0,1900,2004,2005
b)1900, 2004
c)1899,1900,2004,2005
d)1899,1900,1901,2003,2004,2005

Answer: MOST online solutions choose c) 1899,1900,2004,2005 as the correct answer. One online solution said it's b) 1900, 2004

But MY answer would be d) 1899,1900,1901,2003,2004,2005.
Since boundary analysis is:

Low Boundary (plus or minus one)
On Boundary
Upper Boundary (plus or minus one).

*EDIT* Okay sorry, plz move this to the Training &amp; Certification forum. Thanks

2. Re: ISTQB foundation Mock exams solution errors?

Question 2: C makes sense.

Low Boundry - 1889
On Boundry - 1900,2004
Upper Boundry - 2005

It does require some thought as you want to simplify your values. I would have went with D too.

3. Re: ISTQB foundation Mock exams solution errors?

Hi!

I'm a trainer for the ISTQB exams. Where do you find these mock exams?

I agree:

Vc= 2 ist the right answer to this question. You' ve only one if, so you have two areas.

The second one is difficult to answer because the specification isn't clear enough. is 2004 and 1900 in the valid area or not? I assume it is in, then:

1899, 1900, (1901) - (2003), 2004 and 2005

The numbers in brackets are the inlaying border values. You don't have to test them usually, but in some critical systems you have to. in the ISTQB you should test them. Then answer d is correct. But the answer c is correct too! The mock exams isn't very good!

Cheers,

HaPe

Posting Permissions

• You may not post new threads
• You may not post replies
• You may not post attachments
• You may not edit your posts
•

vBulletin Optimisation provided by vB Optimise v2.6.0 Beta 4 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.