0% found this document useful (0 votes)
11 views

Structure based testing techniques - MCQs

Uploaded by

AyubAli
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
11 views

Structure based testing techniques - MCQs

Uploaded by

AyubAli
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 6

Prepare Practice

Interview Aptitude Reasoning English GD Placement papers HR Current affairs


Structure
EngineeringMCA based
MBA testing
Online test techniques -
Login

MCQs MCQs English TutorialsDownload


Topics >> Placement papers >>
Software Testing Placement papers - Model questions & answers -01/14/15
Related Topics

« Previous Next » Data warehousing


Placement papers - Model
questions & answers

Structure based testing techniques - MCQs Canara Bank placement


papers, interview
experience, exam
1. Given the following sample of pseudo code:
Globaledge placement
papers, interview
01 Input number of Sandwich experience, exam pattern

02 Input number of Iced tea Alcatel Lucent placement


03 If Sandwich > 0 and Iced tea > 0 then papers, interview
experience, exam pattern
04 Input Do you want home delivery (Yes / No)
05 If home delivery = No? SAP Oracle database
06 Print Serve their order now placement test question
papers
07 End if
08 End If 3i Infotech placement
papers, interview
experience, exam pattern
Which of the following test cases will ensure that statement
6 is executed?

a) Sandwich = 1, Iced tea = 1, home delivery = yes


b) Sandwich = 1, Iced tea = 1, home delivery= no
c) Sandwich= 1, Iced tea = 2, home delivery= yes
d) Sandwich= 1, Iced tea = 0, home delivery = no

View Answer / Hide Answer

ANSWER: b
Prepare Practice

2. If all the statements of code are executed that means


everyAptitude
Interview decision is is executedEnglish
Reasoning at least once.
GD True or false.
Placement papers HR Current affairs
Engineering MCA MBA Online test Login
a) True
b) False

View Answer / Hide Answer

ANSWER: b

Comment: 100% statement coverage does not guarantee


100% decision coverage while 100% decision coverage is
100% statement coverage.

3. How many inputs are required for 100% decision


coverage?

Read A
Read B

IF A+B > 100 THEN


Print "A+B is Large"
ENDIF
If A > 50 THEN
Print "A Large"
ENDIF

a) 1
b) 2
c) 3
d) 4

View Answer / Hide Answer


ANSWER: b
Prepare Practice

Interview Aptitude Reasoning English GD Placement papers HR Current affairs


Engineering MCA inputs
4. How many MBA are
Online test forLogin
required 100% statement
coverage?

Read customer_name
Read record
If age < 18 then
Print Reject customer
Else
Print accept customer
Endif

a) 1
b) 2
c) 3
d) 4

View Answer / Hide Answer

ANSWER: a

5. 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
Prepare Practice
test cases required to achieve 100% statement and decision
coverage?
Interview Aptitude Reasoning English GD Placement papers HR Current affairs
a) SC=2,DC=2
Engineering MCA MBA Online test Login
b) SC=1,DC=3
c) SC=2,DC=3
d) SC=3,DC=3

View Answer / Hide Answer

ANSWER: a

6. What is Cyclomatic complexity?

a) Black box testing


b) White box testing
c) Grey box testing
d) Combination of all

View Answer / Hide Answer

ANSWER: b

Comment: Cyclomatic complexity gives the minimum


number of paths that can generate all possible paths
through the module. As it requires knowledge of internal
logic it is white box testing.

7. Which of the following is/are structural testing


technique?
a) Statement Coverage
Prepare Practice
b) Decision Coverage
c) Condition Coverage
d) Path
Interview CoverageReasoning
Aptitude English GD Placement papers HR Current affairs
e) All of these
Engineering MCA MBA Online test Login

View Answer / Hide Answer

ANSWER: e

« Previous Next »

Post your comment

Related Content

Equivalence partitioning and


Boundary value analysis -
MCQs
Static analysis tools -
Software Testing MCQs
Testing Levels - Software
Testing MCQs
SDLC and different models of
SDLC - MCQs
Agile testing - Software
Testing MCQs
Incident Management -
Software Testing MCQs
Smoke and Sanity testing -
MCQs
Use cases and Decision table
- MCQs
Different roles in Software
Testing - MCQs
Independent testing team -
Software Testing MCQs
Fundamental test processes -
Software Testing MCQs
Structure based testing
techniques - MCQs
Risk analysis and
management - MCQs Prepare Practice
Configuration management -
Software Testing MCQs
Interview Aptitude
Types Reasoning
of testing - Software English GD Placement papers HR Current affairs
EngineeringTesting
MCA MCQs MBA Online test Login

Follow us

CareerRide on YOUTUBE
CareerRide on INSTAGRAM

Home About us Contact us Terms of use Ask Us YouTube Instagram

© Copyright 2016. All Rights Reserved.

You might also like