Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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


Please Help Members By Posting Answers For Below Questions

What is the difference between a standalone application, client-server application and web application?

1244


What do you mean by Cause Effect Graphing? in which standard its mentioned?

2095


Explain the defect life cycle.

999


Write UI Test case, Integration Test case, Functional Test case & Performance Test case for the File Menu for MS-Word?

2630


can somebody plz tel me about financial domain for manual tester?? which kind of application use and what is the approach of testing??

1846


Can anyone please suggest me a online book on manual testing??

1757


wat are the questions would the project leader ask about the project?? please do send the answers early.

7813


from where do u collect test data if u miss some data what will happen

2612


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

2010


what is mean by impact analysis ,how we used to select regression TC using this?

2044


Give me an example of something you tried at work but did not work out so you had to go at things another way.

2059


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

1859


How does quality control differ from quality assurance?

1011


If project wants to release in 3months what type of risk analysis you do in test plan?

1151


What is your Approach when you find 10 Sev-1 bugs in 50 test cases?

2482