Structure based testing techniques - Software Testing (MCQ) questions and answers
Here, you can read Structure based testing techniques multiple choice questions and answers with explanation.
1) If all the statements of code are executed that means every decision is executed at least once. - Published on 18 Aug 15
a. True
b. False
Answer
Explanation
|
ANSWER: False
Explanation: No explanation is available for this question!
|
|
2) How many inputs are required for 100% Statement Coverage?
Read customer_name Read record If age < 18 then Print Reject customer Else Print accept customer Endif - Published on 14 Aug 15
a. 1
b. 2
c. 3
d. 4
Answer
Explanation
|
ANSWER: 1
Explanation: No explanation is available for this question!
|
|
3) Read A,B If A>=2 Print A+B else Print A-B EndIf If B<1 Print B-A End
For the above algorithm what will be the minimum number of test cases required to achieve 100% Statement Coverage and Decision Coverage? - Published on 14 Aug 15
a. SC=2,DC=2
b. SC=1,DC=3
c. SC=2,DC=3
d. SC=3,DC=3
Answer
Explanation
|
ANSWER: SC=2,DC=2
Explanation: No explanation is available for this question!
|
|
4) Which of the following is/are Structural Testing Technique? - Published on 30 Jul 15
a. Statement Coverage
b. Decision Coverage
c. Condition Coverage
d. Path Coverage
e. All of the above
Answer
Explanation
|
ANSWER: All of the above
Explanation: No explanation is available for this question!
|
|
5) What is Cyclomatic Complexity? - Published on 30 Jul 15
a. Black box testing
b. White box testing
c. Grey box testing
d. Combination of all
Answer
Explanation
|
ANSWER: White box testing
Explanation: No explanation is available for this question!
|
|