exam questions

Exam CTFL All Questions

View all questions & answers for the CTFL exam

Exam CTFL topic 1 question 124 discussion

Actual exam question from iSQI's CTFL
Question #: 124
Topic #: 1
[All CTFL Questions]

How many test cases are necessary to cover all the possible sequences of statements (paths) for the following program fragment?
Assume that the two conditions are independent of each other : -if (Condition 1)then statement 1else statement 2if (Condition 2)then statement 3

  • A. 2 Test Cases
  • B. 3 Test Cases
  • C. 4 Test Cases
  • D. Not achievable
Show Suggested Answer Hide Answer
Suggested Answer: A 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
Madjam
3 years, 1 month ago
#tip nested condition SC=1+no.of ifs's
upvoted 1 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago