Valid CTFL-Foundation Dumps shared by ExamDiscuss.com for Helping Passing CTFL-Foundation Exam! ExamDiscuss.com now offer the newest CTFL-Foundation exam dumps, the ExamDiscuss.com CTFL-Foundation exam questions have been updated and answers have been corrected get the newest ExamDiscuss.com CTFL-Foundation dumps with Test Engine here:
Consider the following pseudo code: 1. Begin 2. Input X, Y 3. If X > Y 4. __Print (X, 'is greater than', Y) 5. Else 6. __Print (Y, is greater than or equal to', X) 7. EndIf 8. End What is the minimum number of test cases required to guarantee both 100% statement coverage and 100% decision coverage?
Correct Answer: B
To achieve 100% statement coverage and 100% decision coverage for the provided pseudo code, at least two test cases are required. The first test case should cover the scenario where X > Y, which will execute the statements in the "if" branch. The second test case should cover the scenario where X Y, which will execute the statements in the "else" branch. This ensures that both the true and false branches of the decision are tested, and all statements in the code are executed at least once. Reference: The ISTQB CTFL Syllabus, version 4.0, discusses the need for different test cases to ensure statement and decision coverage.