Considering the following pseudo-code, calculate the MINIMUM number of test cases required to achieve 100% statement coverage and 100% decision coverage.

Suggested Answer: A
Get Premium CTFL_Syll2018 Questions
as Interactive Web-Based Practice Test or PDF
Real Exam Format
Detailed Explanations
Instant Access
Get Your Practice Test
14 comments · newest first
NO
Noel
11 months ago
I'm not sure about that, feels like we need more test cases.
OW
Owen
12 months ago
Wait, how can decision coverage be less than statement coverage?
SA
Sarah
12 months ago
I agree with option A, seems right to me.
JU
Justine
12 months ago
I think it's 3 for statement and 4 for decision.
RO
Rodney
1 year ago
Statement coverage needs 4, decision coverage needs 5.
DO
Donte
1 year ago
I vaguely recall that we needed to ensure all branches were tested for decision coverage. I think 4 for statements and 3 for decisions sounds right, but I’m not completely confident.
MO
Mollie
1 year ago
I feel like I might be mixing things up, but I think decision coverage usually requires more test cases than statement coverage. Maybe 4 for statements and 5 for decisions?
SH
Shay
1 year ago
I'm not entirely sure, but I think we practiced a similar question where we had to cover both statements and decisions. I want to say it was around 3 for statements and 4 for decisions.
TH
Theola
1 year ago
I remember we discussed that statement coverage focuses on executing every line of code, while decision coverage checks all possible outcomes. I think we might need at least 4 test cases for full coverage.
LO
Louis
1 year ago
I'm leaning towards option C as well. APIs seem like the most flexible and widely-supported way to interact with applications that aren't part of the same cloud-native ecosystem. I feel pretty confident about this one.
JA
Jamika
1 year ago
I think I know the answer, but I want to double-check my understanding before submitting. This is an important topic, so I want to be sure.
TY
Ty
1 year ago
Hmm, this looks like a tricky one. I'll need to carefully calculate the impact on interest cover and P/E ratio to determine the correct answer.
NA
Naomi
1 year ago
I remember we calculated the cost-effectiveness of different fee structures in class, but I'm a bit unsure how to apply it here with that flat fee.
RO
Rossana
1 year ago
From similar practice questions, I feel like checking access privileges is key, so B might be the best choice here.