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
Hi, Below is a question on white box testing. Kindly help 
me in answering it. How many test cases are needed to 
obtain 100% branch coverage. This question was asked in 
ISTQB foudation level exam - Dec21 2008.

Read(A,C)

If(A<10) then Print A;

Endif

If(C>100) then Print C is greater then A

else if(C<100) then print only C

Endif else

Options - 
a. 4
b. 3
c. 2
d. 1

Kindly answer with explanation so that it would be easy to 
understand
 Question Submitted By :: 86kris
I also faced this Question!!     Rank Answer Posted By  
 
  Re: Hi, Below is a question on white box testing. Kindly help me in answering it. How many test cases are needed to obtain 100% branch coverage. This question was asked in ISTQB foudation level exam - Dec21 2008. Read(A,C) If(A<10) then Print A; Endif If(C>100) then Print C is greater then A else if(C<100) then print only C Endif else Options - a. 4 b. 3 c. 2 d. 1 Kindly answer with explanation so that it would be easy to understand
Answer
# 1
answer is a.4

1 test case to check if system can read a and c
2 to check if a<10
3 to check if c is > 100 and < 100
to check if a and c are printed
 
Is This Answer Correct ?    1 Yes 3 No
Kajal
 
  Re: Hi, Below is a question on white box testing. Kindly help me in answering it. How many test cases are needed to obtain 100% branch coverage. This question was asked in ISTQB foudation level exam - Dec21 2008. Read(A,C) If(A<10) then Print A; Endif If(C>100) then Print C is greater then A else if(C<100) then print only C Endif else Options - a. 4 b. 3 c. 2 d. 1 Kindly answer with explanation so that it would be easy to understand
Answer
# 2
two tests are required
 
Is This Answer Correct ?    0 Yes 2 No
Ravo
 
 
 
  Re: Hi, Below is a question on white box testing. Kindly help me in answering it. How many test cases are needed to obtain 100% branch coverage. This question was asked in ISTQB foudation level exam - Dec21 2008. Read(A,C) If(A<10) then Print A; Endif If(C>100) then Print C is greater then A else if(C<100) then print only C Endif else Options - a. 4 b. 3 c. 2 d. 1 Kindly answer with explanation so that it would be easy to understand
Answer
# 3
Number of testcases required for branch coverage will be 2.

In branch coverage we need to check whether all the 
branches are exercised.
Here we have 3 branches all If statements we need to 
consider.They are A<10,C>100,C<100

Line 1 - Read(A,C)
Line 2 - If(A<10) then 
Line 3 - Print A;
Line 4 - Endif
Line 5 - If(C>100)then
Line 6 - Print C is greater then A
Line 7 - else if(C<100) then 
Line 8 - print C
Line 9 - End if

So take the values as follows
Testcase 1 : A=5 and C=120
For this set of values Line1 - Line6 are executed

Now for the Line7 - Line9 to be executed take the value of 
c as less than 100
So Testcase 2 : A=5(can be any value as Line 2,3,4 are 
already exercised in testcase1)and c=80
For this set of values Line7-Line9 will be exercised
 
Is This Answer Correct ?    0 Yes 2 No
Hima Bindu
 
  Re: Hi, Below is a question on white box testing. Kindly help me in answering it. How many test cases are needed to obtain 100% branch coverage. This question was asked in ISTQB foudation level exam - Dec21 2008. Read(A,C) If(A<10) then Print A; Endif If(C>100) then Print C is greater then A else if(C<100) then print only C Endif else Options - a. 4 b. 3 c. 2 d. 1 Kindly answer with explanation so that it would be easy to understand
Answer
# 4
Require 3 Path test cases.

Test Case 1 - A is any value > 9 and C = 100 to check that 
nothing is printed.

Test Case 2 - A is any value < 10 and C is > 100 to check 
that Print A and 
     Print C is greater than A lines are printed

Test Case 3 - A is any value, and C is < 100 to check that 
Print A ( only if A is < 10)
Print C is greater than A is printed. 

We should use Cyclomatic complexity formula to calculate 
number of paths easily 

 C = E - N + 2
 
Is This Answer Correct ?    2 Yes 1 No
Rama Mohan Parini
 
  Re: Hi, Below is a question on white box testing. Kindly help me in answering it. How many test cases are needed to obtain 100% branch coverage. This question was asked in ISTQB foudation level exam - Dec21 2008. Read(A,C) If(A<10) then Print A; Endif If(C>100) then Print C is greater then A else if(C<100) then print only C Endif else Options - a. 4 b. 3 c. 2 d. 1 Kindly answer with explanation so that it would be easy to understand
Answer
# 5
Ans is 4 as there are two branches.For these two branches 
we need to test for both true & false conditions. hence to 
achieve 100% branch coverage we need to write 4 test cases.
 
Is This Answer Correct ?    0 Yes 1 No
Varshab
[Sankalp]
 

 
 
 
Other Manual Testing Interview Questions
 
  Question Asked @ Answers
 
we enter that user name field is blank and password field is blank and click on Ok. what type of testing is this 1) functional testing 2)security testing  9
what is the important difference between system testing and functional testing?  7
what are the factor taken under website testing manually?  2
what is the entry criteria and exit criteria of integration testing? Mind-Tree2
Describe the basic elements that you put in defect report?  4
What are the advantages of Manual Testing?  2
What is the main theme of doing Regression Testing HCL9
what is software testing Wipro6
what is test initiation? can anybody post the answer. very urgent? Maveric6
Why testing is importent in software?  2
waht is deffect?  8
What is a Recovery Testing Cisco8
hi friends , h r u all off uu ,,what is -ve , +ve test cases,what is differnce between both pls tell thanks advanceeeee Netsoft5
What type of testing you are doing ? Torquent8
how to Write the test case?  1
what is cyclomatic complexity and what is the formula used for it  7
which is the most important test case on the login page ? GE8
what is the diff between testbed and test environment?  3
What is Cursor Testing? Is it come under Manual or Automation testing .Explain?  1
what we have to do if the application has some additional functionality which is not specified as part of functional spec.(but is useful.. may b futher) Do we consider it as a defect?  4
 
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