Can u any 1 please explain the below question and answer?
Given the following code, which statement is true about the
minimum number of test cases required for full statement and
branch coverage?
Read p
Read q
IF p q > 100 THEN
Print "Large"
ENDIF
IF p > 50 THEN
Print "p Large"
ENDIF
a) 1 test for statement coverage, 3 for branch coverage
b) 1 test for statement coverage, 2 for branch coverage
c) 1 test for statement coverage, 1 for branch coverage
d) 2 tests for statement coverage, 2 for branch coverage
Answer Posted / nayana
a) 1 test for statement coverage, 3 for branch coverage
Since inputs are not specified the above answer is
correct
If inputs are given then apply the given inputs in the
given code & then check it & to confirm u can draw the flow
diagram & check it.
For example u can apply p = 70 & q = 40
For the above inputs, (a) is correct answer
| Is This Answer Correct ? | 9 Yes | 15 No |
Post New Answer View All Answers
What is the purpose of test strategy?
what does 80hz refresh rate indicates?
Hi Frnds, this is Aman.. can anybody tell me plz what kind of QA Interview questions are asked by IDS Infotech Ltd., Chandigarh? I have lil bit experience only in Manual Testing.. Plz answer my question as soon as possible.. Thnx in advance..
what is agile model and spiral maodel?pls explain with an example?
HI, This question is Investment Banking domain related Question. I was asked in an Interview to tell the 5 test cases for Equity,Bond,Futures and options. Please help.. Pragya
What is bottom-up approach?
What is the difference between manual testing and automation testing?
Hi,Please can any one tell me about SAP Testing concepts.
Can i get answers for telecom testing for eg telecom billing rating can be tested
can u write some high level scenarios on ms outlook express
How does a coverage tool work?
What is a ‘test plan’?
I studied MBA, I want learn any softwarecourse, which course is better hadoop or testing tools(manual+selenium?)
What is Windows Test Technologies? Where i will get all information of it.
Please anyone give answers for all below questions and help ? realtimers please and please share your knowledge.lot of questions left unanswered.