Software Testing Methodologies Questions and Answers | STM | MCQ
In this Software Testing Methodologies online test, we will cover topics related to Software Testing Methodologies, agile software testing methodologies, methodologies of testing, test methodologies, test methodology, testing methodologies, testing methodology, testing programs, testing method, software testing methodologies, test methods, method of testing, methods of software testing, testing software methods, testing strategies, testing testing, method testing, software testing techniques, software testing, qa methodology, systems testing, testing in development and so on.
SET 1
Question 1
Software Test Stubs are
Select one:
a. Used to connect a software with a driver
b. Programs which simulate the behaviors of software components that are the dependent modules of a under test module
c. None of the options
d. Programs which simulate the behaviors of software components that are the control modules of a under test module
Question 2
Role of inheritance complicates the choice of classes as units, a technique followed to simplify the testing of these units
Select one:
a. Minimize use of such inheritance
b. Avoid using inheritance
c. flattening of classes
d. relook at the design
Question 3
A Message is
Select one:
a. A communication between two Nodes
b. A mechanism to move data across Nodes
c. A programming language mechanism by which one unit transfers control to another unit
d. A communication between two Modules
Question 4
Operation error in a fault model is:
Select one:
a. Corrupt input
b. In input function
c. Error generated upon transition like in output function
d. Output values are garbled
Question 5
In Research indicate that
Select one:
a. None of the option
b. The time taken to test object oriented system is not high
c. OO systems require less testing time due to reusable techniques employed in them In
d. Object oriented systems require significantly higher testing time over traditional procedural application
Question 6
Which of the statement are not true
Select one:
a. Module Execution Path (MEP):A sequence of statements that begins with a source node and ends with a sink node, with no intervening sink nodes
b. Source node:A statement fragment at which program execution begins or resumes
c. MM path: An action that is observable at the system level in terms of port input and output events
d. Sink node:A statement fragment at which program execution terminates
Question 7
if (v>0) then print (v) represents:
Select one:
a. USE of v
b. P-use of v
c. C-use of v
d. Define of v
Question 8
Both drivers and Stubs will be used in which approach of integration?
Select one:
a. Sandwich
b. Top-down
c. Big bang
d. Bottom-up
Question 9
Useful formalism to express concurrency and timing – this is true for which model?
Select one:
a. FSM
b. Petri Nets
c. StateCharts
d. None
Question 10
Call Graph (CG) based approach is
Select one:
a. Only Neighborhood integration
b. Neither Pair-wise integration nor Neighborhood integration
c. Only Pair-wise integration
d. Both Pair-wise and Neighborhood integration
Question 11
In data flow testing, objective is to find
Select one:
a. All dc-paths that are not du-paths
b. All du-paths that are not dc-paths
c. All dc-paths
d. All du-paths
Question 12
When will be the interface erros will get detected in case Biga Bang appraoch?
Select one:
a. None
b. Never
c. Early
d. Late
Question 13
In Model Based Testing, behavioral models are often used for test generation. Which one of the followings is a behavioral model?
Select one:
a. A deployment diagram.
b. A state transition diagram.
c. A package diagram.
d. A class diagram.
Question 14
In data flow testing, objective is to find
Select one:
a. All du-paths
b. All du-paths that are not dc-paths
c. All dc-paths that are not du-paths
d. All dc-paths
Question 15
Path testing in FSM means
Select one:
a. every state is traversed
b. state and transition coverage
c. the testing of the model such that every path in the model is traversed atleast once
d. every transition is covered
Question 16
Sandwich integration strategies
Select one:
a. use equal number of stubs and drivers
b. use less stubs and more drivers
c. use more stubs and less drivers
d. use both stubs and drivers
Question 17
In
techniques of data flow testing include
Select one:
a. Design a set of test cases such that each data flow (definition-use pair) is “executed” at least once
b. Design a set of test cases such that all data flow (definition-clear pair) is “executed” In
c. All P-use and C-use is tested
d. ALL
Question 18
Which of the following is black-box oriented and can be accomplished by applying the same black-box methods discussed for conventional software?
Select one:
a. OO system validation testing
b. Both Conventional testing and OO system validation testing
c. Test case design
d. Conventional testing
Question 19
In Data Flow Testing, an Use is a statement that __________ a value of variable
Select one:
a. references
b. validates
c. All options
d. Manipulates
Question 20
In
Extended FSM Diagram extends State Transition Diagrams through introduction of:
Select one:
a. Events and Actions
b. Events In
c. None of the options
d. Conditions
Question 21
A usage node USE(v, n) is a predicate use (denoted as P-use)
Select one:
a. iff the statement n is a predicate statement
b. iff the statement n is an input statement
c. iff the statement n is procedure call
d. iff the statement n is an output statement
Question 22
Which of the following determines state diagram?
Select one:
a. The UML notation for specifying finite automata is the state diagram
b. All of the mentioned
c. None of the mentioned
d. In state diagrams, states are represented by rounded rectangles
Question 23
What is the main problem with static view of a class while treating class as a unit?
Select one:
a. Methods of the class are ignored
b. Functions of the class are ignored
c. Data of the class are ignored
d. Inheritances are ignored
Question 24
Which one is not a State amongst these?
Select one:
a. Barking
b. Age
c. Colour
d. Name
Question 25
Which of the statements about “trigger” is true:
Select one:
a. trigger acts on a state
b. trigger takes operation from one state to another
c. A trigger is an outcome of action
d. A trigger is an event that initiates a transition from one state to another
Question 26
Which View of class testing is used Abstract classes?
Select one:
a. Compile Time View
b. Execution View
c. Static View
d. None
Question 27
Software Test Drivers are
Select one:
a. None of the options
b. Used to connect a software with a driver
c. Programs which simulate the behaviors of software components that are the dependent modules of a under test module
d. Programs which simulate the behaviors of software components that are the control modules of a under test module
Question 28
which statement is not True in case of Neighbourhood?
Select one:
a. Interior nodes = nodes – (source nodes + sink nodes)
b. Neighbourhoods = nodes – sink nodes
c. Neighbourhoods = sink nodes + nodes
d. Neibhourhoods = interior nodes + source nodes
Question 29
Which of the testing processes is the process of verifying the interaction between software components?
Select one:
a. Unit Testing
b. Object-Oriented Testing
c. System Testing
d. Integration Testing
Question 30
In
In Top-Down integration testing, which one of the followings that you may need to develop?
Select one:
a. Connectors In
b. Stubs
c. Drivers
d. Interfaces
SET 2
1. In Bottom-Up integration testing, which one of the followings that you may need to develop?
Select one:
a. Interfaces
b. Stubs
c. Connectors
d. Drivers Correct
2.A rich extention of FSM
Select one:
a. None
b. State Charts
c. Petri nets Incorrect
d. Path testing
3.A Message is
Select one:
a. A communication between two Modules
b. A mechanism to move data across Nodes
c. A communication between two Nodes Incorrect
d. A programming language mechanism by which one unit transfers control to another unit
4.statement w=v+n+1 use of v
Select one:
a. is a use of v and n
b. is a use of v only Incorrect
c. ALL
d. is a use of n only
5.Which View of class testing is used for Inheritence?
Select one:
a. Execution View Incorrect
b. Static View
c. None
d. Compile Time View
6.Data Flow Testing refer to
Select one:
a. Point at which the variable receive values and the point at which it is used Correct
b. Inputting Data
c. None of the options
d. Understanding how Data changes to Result
7.The following is not a define-reference anomaly:
Select one:
a. A variable that is defined but never used (referenced) Incorrect
b. None of the option
c. A variable that is defined twice before it is used
d. A variable that is used but never defined
8.Big Bang integration approach:
Select one:
a. None of the option
b. Suffers with problem of fault isolation
c. Number of integration testing sessions is 2
d. Requires creation of a large number of stubs and drivers Incorrect
9.Adding Variables and Conditions to FSM is called
Select one:
a. Advanced FSM
b. None
c. Extended FSM Correct
d. FSM++
10.MM-path is
Select one:
a. A path between modules
b. An edge Incorrect
c. An interleaved sequence of MEPs and Messages
d. A path from Source node to Sink node
11.Traverse every path in the model under the constraint that any transition in the path is traversed at most N times
Select one:
a. Transition Coverage Testing
b. State Based Testing
c. Basis path Testing Incorrect
d. Constraint Path Testing
12.Call Graph (CG) based approach is
Select one:
a. Only Pair-wise integration
b. Neither Pair-wise integration nor Neighborhood integration Incorrect
c. Only Neighborhood integration
d. Both Pair-wise and Neighborhood integration
13.Software Test Drivers are
Select one:
a. Programs which simulate the behaviors of software components that are the control modules of a under test module Correct
b. Programs which simulate the behaviors of software components that are the dependent modules of under test module
c. Used to connect a software with a driver
d. None of the options
14.Useful formalism to express concurrency and timing – this is true for which model?
Select one:
a. Petri Nets Correct
b. FSM
c. StateCharts
d. None
15.Data Flow testing refers to forms of structural testing that focus on:
Select one:
a. The point at which variables receive values and the point at which these values are used (or referenced)
b. Serves as a “reality check” on path testing
c. All options Correct
d. An unifying structure of test coverage metrics
16.One of the issues with flattened class could be the following:
Select one:
a. A flattened class will not be part of a final system, so no uncertainty remains
b. A flattened class will be part of a final system, so some redundancy of testing remains
c. A flattened class will not be part of a final system, so some uncertainty remains Correct
d. A flattened class will not be part of a final system, so no uncertainty remains
17.Destructors are executed when
Select one:
a. object of class is partially destroyed
b. object of class is destroyed
c. object of class is define to destroy
d. object of class is about to destroy Incorrect
18.Different strategies used in state model to design test cases are
Select one:
a. Transition Testing, Coverage Testing Incorrect
b. State Testing, Code Testing
c. State Testing, Transition Testing, Path Testing
d. Code Testing, Path Testing
19.Characteristics of Path-based Integration
Select one:
a. Interfaces are behavioural
b. Interfaces are behavioural
c. None
d. Co-functioning, Interfaces are structural and interactions are behavioural Correct
20.Fault categories include
Select one:
a. transmission error
b. new state error,fault state error,operation error,transfer error
c. operation error,transfer error,extra state error,missing state error Correct
d. operation error and transfer error
21.Both drivers and Stubs will be used in which approach of integration?
Select one:
a. Big bang
b. Bottom-up Incorrect
c. Sandwich
d. Top-down
22.MM path testing is used is
Select one:
a. object oriented testing
b. model based testing
c. state based testing
d. System testing Incorrect
23.Role of inheritance complicates the choice of classes as units, a technique followed to simplify the testing of these units
Select one:
a. Avoid using inheritance
b. flattening of classes
c. Minimize use of such inheritance Incorrect
d. relook at the design
24.Flattening of classes is
Select one:
a. Required for testing subclasses
b. Creates classes that are a part of the final product
c. Involves merging methods of a sub-class Incorrect
d. Required to overcome the challenges posed by encapsulation concept of OO systems
25.Software Test Stubs are
Select one:
a. Programs which simulate the behaviors of software components that are the dependent modules of a under test module
b. Used to connect a software with a driver
c. Programs which simulate the behaviors of software components that are the control modules of a under test module Incorrect
d. None of the options
26.Given an Extended FSM Diagram, one must test the following:
Select one:
a. All states in the EFSM
b. All paths in the EFSM
c. All states, transitions and paths in the EFSM Correct
d. All states and transitions in EFSM
27.Operation error in a fault model is:
Select one:
a. Output values are garbled
b. Error generated upon transition like incorrect output function
c. Corrupt input Incorrect
d. Incorrect input function
28.In Data Flow Testing, an Use is a statement that __________ a value of variable
Select one:
a. references
b. Manipulates
c. validates Incorrect
d. All options
29.Which View of class testing is used Abstract classes?
Select one:
a. Execution View
b. None
c. Static View Incorrect
d. Compile Time View
30.What is the BEST definition of flattened class?
Select one:
a. A flattened class is an original class expanded to include all the attributes and operations it inherits Correct
b. A flattened class is an original class expanded to include all the attributes but not the operations it inherits
c. A flattened class is an original class expanded to include all the attributes of the class itself.
d. A flattened class is an original class expanded to include all the attributes and functions.