ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 114 - CTAL-TTA discussion

Report
Export

You are testing software that will be used in nuclear power plants. The particular piece of code you are testing has been classified as SIL 2. The following section of code falls under this classification:

If ((A > B) or (C > D)) and (E = F) then print A

Endif

Which of the following sets of test data would supply the minimum tests needed to achieve the 'highly recommended' level of coverage?

A.
Set 1
Answers
A.
Set 1
B.
Set 3
Answers
B.
Set 3
C.
Set 5
Answers
C.
Set 5
D.
Set 2
Answers
D.
Set 2
Suggested answer: A

Explanation:

In software testing, especially within contexts like nuclear power plants, achieving a 'highly recommended' level of coverage often requires strategic test case selection to verify all logical conditions are accurately assessed. For the condition 'If ((A > B) or (C > D)) and (E = F) then print A', the critical tests involve evaluating the boolean logic.

Test Case Analysis: Test Set 1 is selected because it should ideally include scenarios where:

Both conditions (A > B) and (C > D) are true, and (E = F) is true to ensure the print statement executes.

One of the conditions (A > B) or (C > D) is false while the other is true, combined with (E = F) being true, to test the OR logic.

Both conditions (A > B) and (C > D) are false with (E = F) being true, which should not trigger the print statement, testing the AND logic.

Condition where (E != F), irrespective of other conditions, to confirm that the print statement does not execute.

asked 18/09/2024
George Morales
47 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first