Explore topic-wise MCQs in Testing Subject.

This section includes 657 Mcqs, each offering curated multiple-choice questions to sharpen your Testing Subject knowledge and support exam preparation. Choose a topic below to get started.

1.

Cohesion and coupling are represented by using …

A. structure part
B. structure effect
C. dependence matrix
D. all of these
Answer» D. all of these
2.

Aggregation is …

A. set of relationship
B. composed of relationship
C. part of relationship
D. all of these
Answer» C. part of relationship
3.

The time oriented diagram include …

A. sequence
B. classes
C. activity
D. none of these
Answer» B. classes
4.

To distunguish between active and non-active object which property is applied?

A. abstraction
B. polymophism
C. concurrency
D. aggregation
Answer» D. aggregation
5.

Abstraction provide an operation named as …

A. encapsulation
B. call back
C. turndown
D. inheritance
Answer» C. turndown
6.

CRC approach and noun phrase approach are used to identify …

A. classes
B. colaborators
C. use cases
D. object
Answer» B. colaborators
7.

The vertcal dimension of a sequence diagram shows

A. abstract
B. line
C. time
D. messages
Answer» D. messages
8.

To hide the internal implementation of an object we use …

A. inheritance
B. encapsulation
C. polymorphism
D. none of these
Answer» C. polymorphism
9.

Abstraction has ______ types.

A. 1
B. 2
C. 3
D. 4
Answer» E.
10.

Class diagrams are used to construct the executable code for forward and reverse engineering of any system.

A. true
B. false
Answer» B. false
11.

Class diagrams are used for ______________

A. describing the static view of the system.
B. showing the collaboration among the elements of the static view.
C. describing the functionalities performed by the system.
D. all of above.
Answer» E.
12.

The purpose of class diagram is to model the static view of an application.

A. true
B. false
Answer» B. false
13.

A ____________ is a blueprint for an object.

A. use case
B. class
C. object
D. state
Answer» C. object
14.

__________ represented by In UML diagrams, relationship between component parts and object.

A. ordination
B. aggregation
C. segregation
D. increment
Answer» C. segregation
15.

Which among these are the rules to be considered to form Class diagrams?

A. class symbols must have at least a name compartment
B. compartment can be in random order
C. attributes and operations can be listed at any suitable place
D. none of the mentioned
Answer» B. compartment can be in random order
16.

Which of these are the heuristics?

A. name classes, attributes, and roles with noun phrases
B. name operations and associations with verb phrases
C. stick to binary associations
D. all of the mentioned
Answer» E.
17.

Which of these are part of the class operation specification format?

A. name
B. parameter list
C. return-type list
D. all of the mentioned
Answer» E.
18.

An operation can be described as?

A. object behavior
B. class behavior
C. functions
D. object & class behavior
Answer» E.
19.

________________ is a special type of aggregation where parts are destroyed when the whole is destroyed.

A. composition
B. complete composition
C. full composition
D. none of above
Answer» B. complete composition
20.

Purpose of Class Diagrams ___________

A. shows static structure of classifiers in a system
B. diagram provides a basic notation for other structure diagrams prescribed by uml
C. helpful for developers and other team members too
D. all of above.
Answer» E.
21.

UML use case diagrams are ideal for __________________

A. defining and organizing functional requirements in a system
B. specifying the context and requirements of a system
C. specifying the context and requirements of a system
D. all of above.
Answer» E.
22.

Use case diagrams can be used for ________________.

A. requirement analysis and high level design
B. model the context of a system
C. reverse engineering
D. all of above.
Answer» E.
23.

The reason for separating the use-case realization from its use case is ________________.

A. allows the interactions, in the form of use cases
B. allows the requirements, in the form of use cases.
C. allows the physical components, in the form of use cases
D. all of the above
Answer» C. allows the physical components, in the form of use cases
24.

For each use-case realization, there may be one or more class diagrams that depict its participating classes.

A. true
B. false
Answer» B. false
25.

Find incorrect about Use Case.

A. actors
B. preconditions
C. basic flow
D. operations
Answer» E.
26.

A use-case____________ represents how a use case will be implemented in terms of collaborating objects.

A. realization
B. extend
C. include
D. all of above.
Answer» B. extend
27.

Forward engineering in UML is the process of transforming ________

A. a code into a model
B. a code into design n
C. a model into a code
D. a model into test
Answer» D. a model into test
28.

Class diagrams are not useful to ________

A. model simple collaborations
B. model the vocabulary of a system
C. model simple interactions
D. model a logical database schema
Answer» D. model a logical database schema
29.

Forward engineering of an ________ is theoretically possible but programmatically o limited value.

A. object diagram
B. activity diagram
C. class diagram
D. interaction diagram
Answer» B. activity diagram
30.

Which of the following diagram is used to model the vocabulary of a system?

A. object diagram
B. activity diagram
C. class diagram
D. interaction diagram
Answer» D. interaction diagram
31.

Forward engineering and reverse engineering can be applicable to ________

A. class diagram
B. stereotypes
C. tagged values
D. adornments
Answer» B. stereotypes
32.

________ diagrams are used to illustrate data structures, and the static snapshots instances of the things found in the class diagrams.

A. use case diagram
B. object
C. collaboration
D. sequence
Answer» C. collaboration
33.

___________ classes are used to create the interface that the user sees and interacts with as the software is used.

A. controller
B. entity
C. boundary
D. business
Answer» D. business
34.

_________________ allows us to infer that different members of classes have some common characteristics.

A. realization
B. aggregation
C. generalization
D. dependency
Answer» D. dependency
35.

"UML also provides a constraint language known as _______________"

A. class constraint language (ccl)
B. object constraint language (ocl)
C. uml constraint language
D. none of the mentioned
Answer» C. uml constraint language
36.

A constraint specifies a condition or restriction that must be false.

A. true
B. false
Answer» C.
37.

A unary association is an association between an object of one class and another object in the same class.

A. true
B. false
Answer» B. false
38.

Multiplicity of Associations are __________________

A. one-to-one association
B. one-to-many association
C. both 1&2
D. optional association,1 & 2
Answer» E.
39.

The relationship among objects is based on _______________

A. assumptions each makes about other objects.
B. operations can be performed.
C. what behavior results.
D. all of the above
Answer» E.
40.

Two classes that express the same information is known as ______________

A. irrelevant classes
B. redundant classes
C. adjective classes
D. attribute classes
Answer» C. adjective classes
41.

________________represents a piece of information that is relevant to the description of the class.

A. attributes
B. operations
C. methods
D. none of the mentioned
Answer» B. operations
42.

Main parts of a use case scenario _________________

A. identifiers and initiators
B. the steps performed
C. the conditions, assumptions, and questions
D. all of the above
Answer» E.
43.

Multiplicity for an association ___________.

A. is the number of instances with a single instance
B. is the number of instances with a number instance
C. both 1&2
D. none of the mentioned
Answer» B. is the number of instances with a number instance
44.

Which of the following UML diagrams has a static view?

A. collaboration
B. use case
C. state chart
D. activity
Answer» C. state chart
45.

UML diagram that shows the interaction between users and system, is known as

A. use case diagram
B. activity diagram
C. class diagram
D. e-r diagram
Answer» B. activity diagram
46.

An inclusion use case is usually abstract.

A. true
B. false
Answer» B. false
47.

Dependencies between use cases can be defined by using _______________

A. include relationships
B. extend relationships
C. both 1 & 2
D. none of above
Answer» D. none of above
48.

Each sequence through the use case is called a ____________

A. interaction
B. scenario
C. requirement
D. transaction
Answer» C. requirement
49.

An actor can also be an external system that either initiates or participates in the use case.

A. true
B. false
Answer» B. false
50.

Composition and aggregations are special forms of a relationship in which classes are connected by the ____________.

A. ternary associations
B. generalization/specialization hierarchy
C. is a relationship
D. whole/part relationship.
Answer» E.