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 difference between a standalone application, client-server application and web application?
What do you mean by Cause Effect Graphing? in which standard its mentioned?
Explain the defect life cycle.
Write UI Test case, Integration Test case, Functional Test case & Performance Test case for the File Menu for MS-Word?
can somebody plz tel me about financial domain for manual tester?? which kind of application use and what is the approach of testing??
Can anyone please suggest me a online book on manual testing??
wat are the questions would the project leader ask about the project?? please do send the answers early.
from where do u collect test data if u miss some data what will happen
Hi, i am looking job in perfomance testing using Loadrunner can any body help me a project in any domine plz(Usah) chs_29@rediffmail.com
what is mean by impact analysis ,how we used to select regression TC using this?
Give me an example of something you tried at work but did not work out so you had to go at things another way.
a newly launched web site is hosted on web server.It is expected that 100 people visit the website every hour and browse 30 pages spending a total 15 minutes. what is the maximum hits/sec that the web server should support this load?justify your answer. need urgently. by rimesh
How does quality control differ from quality assurance?
If project wants to release in 3months what type of risk analysis you do in test plan?
What is your Approach when you find 10 Sev-1 bugs in 50 test cases?