Given the following code, which 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, 3 for branch coverage

E. 2 tests for statement coverage, 2 for branch coverage



Given the following code, which is true about the minimum number of test cases required for full sta..

Answer / toshimathur

B

Is This Answer Correct ?    2 Yes 0 No

Post New Answer

More Test Cases Interview Questions

There is one scenario. On login page three fields are available i.e.Login id,Password and checkbox(having funtion remeber my password for 1 week). Please tell me test cases for checkbox.

6 Answers   eZest,


write a test case for a pen and paper regarding writing.

11 Answers   HCL, Wipro,


# A large IT company is in the process of revising salary structure for its employees. The salary will be on the basis of assessed performance of the previous year for all employee who have completed six months or more. # The rules for salary revision are provided below :- Performance level 1 : Increase existing salary by 30% Performance level 2 : Increase existing salary by 20% Performance level 3 : Increase existing salary by 10% Performance level 4 : Increase existing salary by 5% Performance level 5 : No Increase # For those who have not completed six months, provide a flat increase of 7.5% in their salary. In addition to above provide a special loyalty allowance of Tk. 800 to all employees who have complete THREE years with the organization. # Compute the minimum number of paths that you would require to cover the application and how many test cases would you require?

0 Answers  


how to write test cases Interactive Elements like Social Bookmarking Post a Comment Number of Views Existing Rating Rate this Add to favorites Track this Author Print this Guess who

2 Answers   Cap Gemini,


my friend has done one project using .NET framework with C# coding and backend SQL Server 2005. In it, he has prepared and execute the test cases and stored that in the centralized database. in software testing, Do the testers do like this or use excel sheet to store the test cases? tell me .... i have so confuse.. pls anybody answer me as quickly as possible

1 Answers   Anthelio, ME,






IN MY APPLICATION SOME WINDOW IS THERE IT CONSISTS OF SOME 25 LABLES IN THOSE FOR THE ALREADY SELECTED ONE IT WILL SHOW THE BACKGROUND COLOR IS YELLOW WHILE CHECKING IT SHOULD CHECK THE ALL LABLES WHICH ONE IS HAVING YELLOW COLOUR backcolor=SwfWindow("ALTAIR").SwfWindow("Load Wafer").SwfLabel(" ").GetROProperty("backcolor") SUPPOSE LIKE DS IT WILL BE THERE THEN FOR THAT SwfLabel(" ") inside this how to specify is my doubt because i have to check all the 25 labels plz explain it how to specify that

0 Answers   Accenture, HCL,


Imagine that hotmail is the application taht ur going 2 test write 10 critical test case to test it ?

2 Answers  


i am preparing for interviews in real time job what test cases we have to prepare please explain with example?

0 Answers  


what is objectrepositry

9 Answers   Infinite Computer Solutions,


what are the inputs required for writing test cases

2 Answers   Satyam,


What is mean by Equal Partitioning

4 Answers   Infosys,


How to write test cases for lift?

0 Answers  


Categories