IT8076 Software Testing Unit1&2 - MCQ
IT8076 Software Testing Unit1&2 - MCQ
IT8076 Software Testing Unit1&2 - MCQ
2. System testing is a
a) Black box testing
b) Grey box testing
c) White box testing
d) Both a and b
Answer: c) Big-bang
Answer: a) BS7925-2
14. Testing of software with actual data and in actual environment is known as?
a) Regression testing
b) Beta testing
c) Alpha testing
d) None of the above
Answer: b) Beta testing
Answer: b) Developers
Explanation: Unit testing is a method by which individual units of source code,
sets of one or more computer program modules together with associated control
data, operating procedures and usage procedures are tested to identify if they are fit
for use or not.
18. Which of the following is not a Software Development Life Cycle Phase?
a) Requirements Gathering
b) Test Closure
c) Coding
d) Testing
19. In order to control cost, defects should ideally be detected in which phase:
a) Coding
b) Design
c) Implementation
d) Requirements Gathering
23) E-Commerce software testing follows different approach than gaming software
testing. Which testing principle implies this?
a) Pareto principle
b) Testing is Context dependent
c) Testing shows presence of defects
d) Absence of errors-fallacy
Explanation: If defects are fixed during requirement analysis , they will not be
propagated to the next levels of development life-cycle. So cost will be low as lees
rework is required to be done.
25. In software development life cycle , who is the best person to catch a defect?
a) Software Tester
b) Customers
c) Designer
d) Business Analyst
e) Developer
Explanation: The cost of defect increases across the life cycle. If business analyst
catches a defect during requirement phase the cost to fix that defect will be less and
rework cost is also negligible
26. Cost of the defect does not increase over the period of time. True or false.
a) True
b) False
ANSWER: b) False
Explanation: Cost of the defect increases over the period of time as software
development moves forward. The defects generated in previous phase will get
propagated in next phase. During defect fixing activity one has to follow all the
stages again , so cost of rework increases over the period of time.
28. Software tester focuses more on complex part of the software. Which of the
following testing principle implies this?
Explanation: Defect clustering principle tells that a small number of module might
contain large number of defects due to complexity of that part.
a) If the same tests are repeated over and over again , eventually the same set of
test cases will no longer find any new bugs
b) A small number of modules contain most of the defects
c) Testing can show that defects are present , but can not prove that there are no
defects
d) Finding and fixing defects does not help if the system built is unusable and does
not fulfill the users need and expectations.
ANSWER: a) If the same tests are repeated over and over again , eventually the
same set of test cases will no longer find any new bugs
Explanation:The phenomenon that the more you test software, the more immune it
becomes to your tests. Same as one pesticide can not be used for longer period as
insects develop resistance and become immune to it.
30.The defect cluster change over time. Which of the following testing principle
implies this?
Explanation: Tester can focus the same area in order to find more number of
defects.
But after certain number of iterations of testing same set of test cases are unable to
find more defects. So the test cases need to be regularly reviewed and revised.
31. If rigorous testing is done on software and no defects are detected , can we say
the the software is 100% bug free?
a) Yes
b) No
c) Depends on tester's skills
d) Insufficient data
ANSWER: b) No
32. Finding and fixing error does not guarantee that user will accept the system.
True or False.
a) True
b) False
ANSWER: a) True
Explanation: If users needs and expectations are not fulfilled they might not accept
the system even if it is rigorously tested and defects are removed.
Explanation: Early defects are cheap to find and easy to fix as it requires less
efforts in term of cost and time.
34. The customer is very cautious about quality of a product. He needs all
combination of inputs and preconditions to be tested. Among using which of the
testing principle tester should tell the customer that such kind of testing is not
feasible?
a) During testing
b) During execution
c) During review
d) Throughout life-cycle
Explanation: Unit, system, integration testing all of them are levels in testing.
44. Boundary value analysis belong to?
a) White Box Testing
b) Black Box Testing
c) White Box & Black Box Testing
d) None of the mentioned
Explanation: None.
58. ITG stands for
a) instantaneous test group
b) integration testing group
c) individual testing group
d) independent test group
Explanation: The role of an independent test group (ITG) is to remove the inherent
problems associated with letting the builder test the thing that has been built.
59. By collecting ________ during software testing, it is possible to develop
meaningful guidelines to halt the testing process.
a) Failure intensity
b) Testing time
c) Metrics
d) All of the mentioned
Answer: c) Metrics
Explanation: It answers questions like: “When are we done with testing?”.
60. Which of the following issues must be addressed if a successful software
testing strategy is to be implemented?
a) Use effective formal technical reviews as a filter prior to testing
b) Develop a testing plan that emphasizes “rapid cycle testing.”
c) State testing objectives explicitly
d) All of the mentioned
Answer: d) All of the mentioned
Explanation: All the mentioned options are carried out for the purpose.
Answer: b) False
Explanation: Its verification, while validation refers to a different set of tasks that
ensure that the software that has been built is traceable to customer requirements.
Answer: c) bugs
Explanation: A software bug is an error, flaw, failure, or fault in a computer
program or system that causes it to produce an incorrect or unexpected result.
70. Name an evaluation technique to assess the quality of test cases.
a) Mutation analysis
b) Validation
c) Verification
d) Performance analysis
Answer: c) Step Up
Explanation: Step Into executes code, Step Out continues execution until bound
value and Step Over is to execute code without stopping.
74. Cyclomatic Complexity method comes under which testing method.
a) Yellow box
b) White box
c) Gray box
d) Black box
Answer: a) maintenance
Explanation: Remaining options are a part of development process.
78. Which of the following is a common pointwer problem?
a) Data sharing errors
b) Accessing data elements of the wrong type
c) Attempting to use memory areas after freeing them
d) All of the mentioned
81. Which testing tool does a simple job of enforcing standards in a uniform way
of many programs?
a) Static Analyzer
b) Code Inspector
c) Standard Enforcer
d) Both Code Inspector & Standard Enforcer
Answer: c) Users
Answer: b) False
Explanation: This tool looks at only single statements.
87. Debugging Program is a program which runs concurrently with the program
under test & provide commands to
a) examine memory & registers
b) stop execution at a particular point
c) search for references for particular variables, constant and registers
d) all of the mentioned
98. Which one of the below is not a White Box Testing techniques ?
A) Decision Coverage
B) Condition Coverage
C) Multiple Decision Coverage
D) Multiple Condition Coverage
ANSWER: C) Multiple Decision Coverage
99. Which of the below statements about the component testing standard is not
true:
A) white box measurement techniques all have an associated test design technique
B) white box design techniques all have an associated measurement technique
C) cyclomatic complexity is not a test measurement technique
D) black box measurement techniques all have an associated test design technique
E) black box design techniques all have an associated measurement technique.
ANSWER: D) black box measurement techniques all have an associated test
design technique
100. Using white-box testing methods, the software engineer can derive test cases
that :
(1) guarantee that all independent paths within a module have been exercised at
least once,
(2) exercise all logical decisions on their true and false sides,
(3) execute all loops at their boundaries and within their operational bounds, and
(4) exercise internal data structures to ensure their validity
A) 1 B) 1, 2
C) 1, 2, 3 D) 1, 2, 3, 4
ANSWER: D) 1, 2, 3, 4