Software Testing Methodologies Questions and Answers | STM | MCQ

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


Feedback
The answer is: Programs which simulate the behaviors of software components that are the dependent 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

Feedback
The answer is: flattening of classes

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

Feedback
The answer is: A programming language mechanism by which one unit transfers control to another unit

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

Feedback
The answer is: Error generated upon transition like in output function

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

Feedback
The answer is: 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

Feedback
The answer is: MM path: An action that is observable at the system level in terms of port input and output events

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

Feedback
The answer is: P-use 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

Feedback
The answer is: Sandwich

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

Feedback
The answer is: Petri Nets

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

Feedback
The answer is: 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

Feedback
The answer is: 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

Feedback
The answer is: 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.

Feedback
The answer is: A state transition 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

Feedback
The answer is: All du-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

Feedback
The answer is: the testing of the model such that every path in the model is traversed atleast once

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

Feedback
The answer is: 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

Feedback
The answer is: 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

Feedback
The answer is: Both Conventional testing and OO system validation 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

Feedback
The answer is: references

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

Feedback
The answer is: 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

Feedback
The answer is: iff the statement n is a predicate 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

Feedback
The answer is: All of the mentioned

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

Feedback
The answer is: Inheritances are ignored

Question 24
Which one is not a State amongst these?
Select one:
a. Barking
b. Age
c. Colour
d. Name

Feedback
The answer is: Barking

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

Feedback
The answer is: 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

Feedback
The answer is: Execution View

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

Feedback
The answer is: 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

Feedback
The answer is: Neighbourhoods = sink nodes + 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

Feedback
The answer is: 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

Feedback
The answer is: Stubs

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

Feedback
The correct answer is: Drivers

2.A rich extention of FSM
Select one:
a. None
b. State Charts
c. Petri nets Incorrect
d. Path testing

Feedback
The correct answer is: State Charts

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

Feedback
The correct answer is: 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

Feedback
The correct answer is: is a use of v and n

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

Feedback
The correct answer is: 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

Feedback
The correct answer is: Point at which the variable receive values and the point at which it is used

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

Feedback
The correct answer is: None of the option

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

Feedback
The correct answer is: Suffers with problem of fault isolation

9.Adding Variables and Conditions to FSM is called
Select one:
a. Advanced FSM
b. None
c. Extended FSM Correct
d. FSM++

Feedback
The correct answer is: Extended 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

Feedback
The correct answer is: An interleaved sequence of MEPs and Messages

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

Feedback
The correct answer is: 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

Feedback
The correct answer is: 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

Feedback
The correct answer is: Programs which simulate the behaviors of software components that are the control modules of a under test module

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

Feedback
The correct answer is: Petri Nets

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

Feedback
The correct answer is: All options

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

Feedback
The correct answer is: A flattened class will not be part of a final system, so some 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

Feedback
The correct answer is: object of class is destroyed

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

Feedback
The correct answer is: State Testing, Transition 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

Feedback
The correct answer is: Co-functioning, Interfaces are structural and interactions are behavioural




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

Feedback
The correct answer is: operation error,transfer error,extra state error,missing state 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

Feedback
The correct answer is: Sandwich

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

Feedback
The correct answer is: object oriented testing

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

Feedback
The correct answer is: flattening of classes

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

Feedback
The correct answer is: Required for testing subclasses

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

Feedback
The correct answer is: Programs which simulate the behaviors of software components that are the dependent modules of a under test module

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

Feedback
The correct answer is: All states, transitions and paths in the 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

Feedback
The correct answer is: Error generated upon transition like incorrect output 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

Feedback
The correct answer is: references

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

Feedback
The correct answer is: Execution 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.

Feedback
The correct answer is: A flattened class is an original class expanded to include all the attributes and operations it inherits