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.

Which of the following is a weak relationship between two objects?

A. ??inheritance
B. composition
C. aggregation
D. none of these
Answer» D. none of these
2.

The next step is to evaluate the class diagram to check that all candidate classes are present and that the diagram reflects their descriptions, Designers apply which of the following heuristics to this activity?

A. check each class for important but overlooked attributes, operations, or associations
B. discard candidates that do something out of scope
C. apply design patterns were not appropriate
D. all of the mentioned
Answer» E.
3.

What is multiplicity for an association?

A. the multiplicity at the target class end of an association is the number of instances that can be associated with a single instance of source class
B. the multiplicity at the target class end of an association is the number of instances that can be associated with a number instance of source class
C. all of the mentioned
D. none of the mentioned
Answer» B. the multiplicity at the target class end of an association is the number of instances that can be associated with a number instance of source class
4.

who consider diagrams as a type of Class diagram, component diagram, object diagram, and deployment diagram?

A. structural
B. behavioral
C. non-behavioral
D. ??non structural
Answer» B. behavioral
5.

______ shows a set of objects and their relationships.

A. class diagram??
B. ??object diagram??
C. use case diagram??
D. activity diagram??
Answer» C. use case diagram??
6.

 Forward engineering and reverse engineering can be applicable to _____

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

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??
8.

Which of the following statement is incorrect regarding the Class-responsibility-collaborator (CRC) modeling ?

A. all use-case scenarios (and corresponding use-case diagrams) are organized into categories in crc modelling
B. the review leader reads the use-case deliberately
C. only developers in the review (of the crc model) are given a subset of the crc model index cards
D. all of the mentioned
Answer» D. all of the mentioned
9.

During the design phase, the overall ———— of the system is described.

A. architecture
B. system flow
C. data flow
D. none
Answer» B. system flow
10.

In which of the following phase, the class objects and the interrelationships of these classes are translated and actually coded by using an object-oriented programming language?

A. analysis
B. design
C. development
D. testing
Answer» D. testing
11.

The OMT consists of three related but different viewpoints each capturing important aspects of the system

A. the static, dynamic, and functional behaviors of the system
B. analysis, design, coding
C. real-life environment, objects, and behavior of a system
D. none
Answer» B. analysis, design, coding
12.

Design Axioms are 1.Maintain the independence of components2.Minimize the information content of the design

A. only 1 is correct
B. only 2 is correct
C. both 1 and 2 are correct
D. both 1 & 2 are wrong
Answer» D. both 1 & 2 are wrong
13.

Properly sequence the object oriented design process -

A. apply design axioms, design access layer, design view layer classes,iterate
B. design access layer , design view layer,apply design axioms, iterate
C. design view layer, iterate,design access layer, apply design axioms
D. design view layer, design access layer, iterate,apply design axioms
Answer» B. design access layer , design view layer,apply design axioms, iterate
14.

Which type of coupling involves direct reference to attributes or methods of another object?

A. common coupling
B. content coupling
C. control coupling
D. stamp coupling
Answer» C. control coupling
15.

Which type of coupling involves passing an aggregate data structure to another object which uses only a portion of that component?

A. common coupling
B. content coupling
C. control coupling
D. stamp coupling
Answer» E.
16.

Which type of the couling involves two objects accessing a global data space for both reading and writing?

A. common coupling
B. content coupling
C. control coupling
D. stamp coupling
Answer» B. content coupling
17.

What is the purpose of Destructor methods?

A. destructor methods creates instances of the class
B. destructor methods releases memory and resources allocated to objects when they were created
C. destructor methods converts type of objects.
D. destructor methods copies contents of one object to another.
Answer» C. destructor methods converts type of objects.
18.

What is used to express rules and semantics of UML?

A. rul
B. ocl
C. sql
D. ucl
Answer» C. sql
19.

How is class visibility expressed?

A. through symbols like +,-,#
B. through cohesion coefficient
C. through coupling coefficient
D. through use case model
Answer» B. through cohesion coefficient
20.

What is the quality of design?

A. functionality
B. architecture
C. low coupling
D. high cohesion
Answer» B. architecture
21.

Name the data type which exists between the versions of the program

A. transient data
B. coupling data
C. persistent data
D. global data
Answer» D. global data
22.

Name the data type which is involved in procedure activation.

A. local data
B. transient data
C. persistent data
D. protected data
Answer» C. persistent data
23.

In hierarchical model the data is represented as a/an

A. graph
B. tree
C. records
D. array
Answer» B. tree
24.

ii. These 5 views in UML are represented through 9 UML diagrams.

A. only i is true
B. only ii is true
C. both i and ii are true
D. none of them is true
Answer» E.
25.

6. Which of the following views represents the interaction of the user with the software but tells nothing about the internal working of the software?

A. use case diagram
B. activity diagram
C. class diagram
D. all of the above
Answer» B. activity diagram
26.

5. How many views of the software can be represented through the Unified Modeling Language (UML)?

A. four
B. five
C. nine
D. none of the above
Answer» C. nine
27.

during its lifetime in response to events.

A. class
B. state machine
C. use case
D. activity
Answer» C. use case
28.

State chart Diagrams are needed ________

A. when a class has complex life cycle
B. when the execution of scenario is to be traced
C. to allocate classes and objects to modules
D. to allocate processes to processors
Answer» B. when the execution of scenario is to be traced
29.

A state machine whose actions are all attached to states is called ________

A. activity diagram
B. mealy machine
C. moore machine
D. component diagram
Answer» D. component diagram
30.

Which of the following evaluates to an absolute value of Time?

A. timing mark
B. timing constraint
C. timing expression
D. timing location
Answer» D. timing location
31.

________ is denotation for the time at which an event occurs.

A. timing mark
B. timing constraint
C. timing expression
D. timing response
Answer» B. timing constraint
32.

Absolute time of an event is modeled as ________

A. timing constraint
B. timing mark
C. timing expression
D. timing semantics
Answer» B. timing mark
33.

Which of the following is wrong with respect to a thread?

A. threads are light weight
B. threads are modeled using stereotyped active classes be
C. threads are nested inside another thread
D. threads can initiate a control activity
Answer» D. threads can initiate a control activity
34.

Which of the following is present in a nested concurrent state machine?

A. initial state
B. final state
C. history state
D. concurrent sub state
Answer» E.
35.

State that is active after the completion of the transition is called ________

A. source state
B. target state
C. history state
D. final state
Answer» C. history state
36.

Which of the following is used to model the life time of an object?

A. use case
B. class
C. state machine
D. interface
Answer» D. interface
37.

A sequential state machine may have ________

A. at most one initial state and one final state n
B. at least one initial state and one final state
C. at most one initial state more than one final state
D. more than one initial state and at most one final state
Answer» B. at least one initial state and one final state
38.

________ are handled without causing a change in state.

A. transitions
B. events
C. signals
D. state
Answer» B. events
39.

The relationship between two states is called ________

A. transition
B. state
C. association
D. generalization
Answer» B. state
40.

A ________ describes the aspects of an object whose current behavior depends on its p

A. class
B. state machine
C. use case
D. activity
Answer» C. use case
41.

________ is the state that is active after completion of the transition.

A. composite state
B. history state
C. target state
D. source state
Answer» D. source state
42.

Inside the states, the events are encountered to handle without leaving the state. This is known as________

A. state machine
B. state transition
C. internal transition
D. external transition
Answer» D. external transition
43.

A state that has substates, that is nested states, is called ________

A. composite state
B. history state
C. target state
D. source state
Answer» B. history state
44.

A ________ is a relationship between two states indicating that an object in the first s will enter the second state.

A. transition
B. state
C. association
D. generalization
Answer» B. state
45.

A ________ is a condition during the life of an object during which it satisfies performs some activity or waits for some event.

A. class
B. state
C. actor
D. component
Answer» C. actor
46.

A ________ is a behavior that specifies the sequence of states an object goes through during its lifetime in response to events.

A. class
B. state machine
C. use case
D. activity
Answer» C. use case
47.

________ can model the behavior of an individual object.

A. class
B. use case
C. state machine
D. activity
Answer» D. activity
48.

The association stereotype «Extends» indicates ________

A. delegation of part of a task to another use case
B. the target use case is a subprocess of the source use cases
C. a specialized form of a use case
D. a deviation from the uml standard
Answer» D. a deviation from the uml standard
49.

Use cases ________

A. identify business processes
B. identify system goals
C. describe workflow
D. prioritize system procedures
Answer» C. describe workflow
50.

Associations ________

A. may exist only between actors and use cases
B. identify the flow of data between actors and use cases
C. identify interactions between actors and use cases
D. identify dependencies between actors and use cases
Answer» D. identify dependencies between actors and use cases