Deal of The Day! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

ISTQB Exam ISTQB-CTFL Topic 2 Question 24 Discussion

Actual exam question for ISTQB's ISTQB-CTFL exam
Question #: 24
Topic #: 2
[All ISTQB-CTFL Questions]

A system has a self-diagnostics module that starts executing after the system is reset. The diagnostics are running 12 different tests on the systems memory hardware. The following is one of the requirements set for the diagnostics module:

'The time taking the diagnostics tests to execute shall be less than 2 seconds' Which of the following is a failure related to the specified requirement?

Show Suggested Answer Hide Answer
Suggested Answer: B

To achieve 100% statement coverage, we need to design test cases that ensure every statement in the given pseudo-code is executed at least once. Analyzing the pseudo-code, we notice that there are conditions based on two variables: Gender and Age. To cover all statements, we need to consider the paths that lead to each assignment of the Shoe Size variable.

Gender = Boy, Age <= 3 (Shoe Size assignment is not reached, but the condition is evaluated)

Gender = Boy, Age > 3 AND Age < 5 (Shoe Size = 1)

Gender = Boy, Age >= 5 AND Age < 7 (Shoe Size = 2)

Gender != Boy, Age <= 3 (Again, Shoe Size assignment is not reached, but the condition is evaluated)

Gender != Boy, Age > 3 AND Age < 5 (Shoe Size = 0)

Gender != Boy, Age >= 5 AND Age < 7 (Shoe Size = 1)

However, upon closer inspection, we see that tests 1 and 4 do not contribute to statement coverage as they do not lead to a Shoe Size assignment. Therefore, we only need 4 test cases to achieve 100% statement coverage, making option B the correct answer.


Contribute your Thoughts:

Jonelle
23 days ago
A) The diagnostic tests fail to start after a system reset. If the tests don't even start, they can't possibly meet the time requirement.
upvoted 0 times
...
Denny
24 days ago
C) The diagnostic tests that measure the speed of the memory, fail. If the memory speed tests fail, it could cause the entire diagnostic process to take too long.
upvoted 0 times
...
Gail
29 days ago
I bet the developers who wrote that requirement were just trying to see who could write the fastest diagnostics. Gotta love those speed demons!
upvoted 0 times
Dominque
7 days ago
A) The diagnostic tests fail to start after a system reset
upvoted 0 times
...
...
Miles
1 months ago
D) The diagnostic tests fail due to incorrect implementation of the test code. If the tests are not implemented correctly, they may not meet the specified requirement.
upvoted 0 times
Polly
18 days ago
A) The diagnostic tests fail to start after a system reset
upvoted 0 times
...
Jacquelyne
19 days ago
C) The diagnostic tests that measure the speed of the memory, fail
upvoted 0 times
...
Ezekiel
27 days ago
B) The diagnostic tests take too much time to execute
upvoted 0 times
...
...
Eloisa
2 months ago
But what if the tests don't even start after a system reset? Wouldn't that also be a failure?
upvoted 0 times
...
Tyisha
2 months ago
I agree with Stephaine, if the tests take more than 2 seconds, it would be a failure.
upvoted 0 times
...
Theodora
2 months ago
B) The diagnostic tests take too much time to execute. This is clearly a failure related to the specified requirement of the tests taking less than 2 seconds to execute.
upvoted 0 times
Carissa
23 days ago
C) The diagnostic tests that measure the speed of the memory, fail
upvoted 0 times
...
Diane
28 days ago
B) The diagnostic tests take too much time to execute
upvoted 0 times
...
Brice
1 months ago
A) The diagnostic tests fail to start after a system reset
upvoted 0 times
...
...
Stephaine
2 months ago
I think the answer is B) The diagnostic tests take too much time to execute.
upvoted 0 times
...

Save Cancel