ALLInterview.com :: Home Page KalAajKal.com
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   ERRORS new
   Refer this Site  Refer This Site to Your Friends  Site Map  Bookmark this Site  Set it as your HomePage  Contact Us     Login  |  Sign Up                      
tip   SiteMap shows list of All Categories in this site.
Google
 
Categories  >>  Software  >>  Testing  >>  Manual Testing
 
 


 

 
 Automation Testing interview questions  Automation Testing Interview Questions
 Manual Testing interview questions  Manual Testing Interview Questions
 QA Concepts interview questions  QA Concepts Interview Questions
 Mobile Testing interview questions  Mobile Testing Interview Questions
 Test Cases interview questions  Test Cases Interview Questions
 Test Documents Reporting interview questions  Test Documents Reporting Interview Questions
 Testing AllOther interview questions  Testing AllOther Interview Questions
Question
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
 Question Submitted By :: Suneetha
I also faced this Question!!     Rank Answer Posted By  
 
  Re: 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
# 1
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 ?    4 Yes 4 No
Nayana
 
  Re: 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
# 2
if p=55 and q=40 then?
 
Is This Answer Correct ?    3 Yes 0 No
Dhruv
 
 
 
  Re: 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
# 3
Answer is a
 
Is This Answer Correct ?    0 Yes 1 No
Guest
 
  Re: 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
# 4
it wud be 2 testcasese for statement coverage and 2 for 
branch coverage
2 for statement coverage bcaz two seperate questions being 
asked
p+q>100 and p>50

and its two branches with NO hasnt been covered....

so, answer is 2 testcasese for statement coverage and 2 for 
branch coverage
 
Is This Answer Correct ?    0 Yes 1 No
Vaishali
 

 
 
 
Other Manual Testing Interview Questions
 
  Question Asked @ Answers
 
Can any one tell me the contents in Traceability Matrix IntraLogic4
What is Risk anlaysis in software testing?  1
What is Mutation testing? When it can be done? HTC5
Diff. between system test cases & UAT test cases. TCS2
what is tracebility matrix and what will be there in tracebility matrix?tell me details like idno, discription....etc.pls any one answer this question? IBM3
what is the difference b/n DPD(Defect profile document) and TRD(Test Report document). Zensar2
explain test life cycle  6
Give an example of low severity and high priority bug?  2
what is the project strategy HCL4
what are the kpas(key process areas) in u'r company? IBM3
On which basis u'll prepare the test cases. Semantic-Space6
Types of risks QA4
How to write the test scenario?Explain by giving Example.  2
What is the difference between stress and load testing?  2
1.How will u write traceability matrix? 2.What is Test summary Report…? 3. What is Test Closure report…? 4.What are the Testing methodologies that u have followed in your project ? plz...........do reply............... Virtusa1
what is testing methodology? Infosys8
Hi.. I am working as a tester in a small company. I have 2+ yrs exp in manual. we are using only excel sheet for preparing bug report. Now i want to search job in other company..I dont have any idea about bug tracking tool..should i know abt any bug tracking tool to get better job?  4
What is gamma testing?  2
Can anyone explain the terms: Black-box, functional, Regression, Back-end, System Integration, GUI, UAT stress and Load Testing.  1
what is mean by test environment?  5
 
For more Manual Testing Interview Questions Click Here 
 
 
 
 
 
   
Copyright Policy  |  Terms of Service  |  Help  |  Site Map 1  |  Articles  |  Site Map  |   Site Map  |  Contact Us interview questions urls   External Links 
   
Copyright © 2007  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  Forum9.com   ::  KalAajKal.com