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 Posted / kajal
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 ? | 2 Yes | 5 No |
Post New Answer View All Answers
What is reverse engineering?
what is conditional testing? explain and examples
How to explain a banking project in interview ? like project discription is Client Online Banking Application provides access to information relating to Banking Online Services provided by Axis to View daily customer transactions, Current and Previous customer statements, Transfer funds from Chequing and Savings accounts ................ From interview point of view can any one explain this project in laymans language
What are testing techniques? What is difference between general and specific?
How can you do the scalability testing?
What is Independant Testing? When and where this type of testing will be performed?
I have an UI issue "please fill out this field" pop up in firefox browser keeps scrolling with the page is it valid???
Define what is a critical bug.
how many modules in ur bank project? what functionalities r there?how did u check? could u plz expalin ur banking project?
What is Test methodology, Testing type , Testing approach, Testing technique & Testing methods. Explain with example.
can u merge 10GUI map files into a single GUI map file in winrunner?
How do u prepare test environment for ur application?
What is configuration management in software testing ?
. Is any graph is used for code coverage analysis?
Can you explain the pdca cycle and where testing fits in?