Software Engineering-I MCQs with Answers
Practice important Software Engineering-I MCQs with answers and explanations.
Chapter: 20
Q361:
What is the purpose of interaction diagrams in an object-oriented system?
A. Model interactions between objects
B. Store data in a database
C. Design user interfaces
D. Analyze system performance
Correct Answer:
A
Chapter: 20
Q362:
Which diagram emphasizes the time ordering of messages between objects?
A. Sequence Diagram
B. Collaboration Diagram
C. Object Diagram
D. State Diagram
Correct Answer:
A
Chapter: 20
Q363:
Fill in the blank: Sequence diagrams are used to model ________ flows among objects.
A. branching and iteration
B. sequential and concurrent
C. conditional
D. none of the above
Correct Answer:
B
Chapter: 20
Q364:
In a sequence diagram, the boxes denote ________.
A. classes or objects
B. attributes
C. messages
D. conditions
Correct Answer:
A
Chapter: 20
Q365:
What does a lifeline represent in a sequence diagram?
A. The duration of an object's existence during interaction
B. The number of messages sent
C. Interactions with external systems
D. None of the above
Correct Answer:
A
Chapter: 20
Q366:
Fill in the blank: An activation box in a sequence diagram shows how long a message will be ________.
A. active
B. inactive
C. ignored
D. queued
Correct Answer:
A
Chapter: 20
Q367:
What is the correct syntax for naming objects in a sequence diagram?
A. [instanceName][className]
B. [instanceName]:[className]
C. (instanceName):(className)
D. (instanceName):[className]
Correct Answer:
B
Chapter: 20
Q368:
When object obj1 sends a message to obj2, what must exist between them?
A. An association
B. An inheritance
C. An interface
D. None of the above
Correct Answer:
A
Chapter: 20
Q369:
Fill in the blank: Self calls in a sequence diagram are messages that an object sends to ________.
A. another object
B. itself
C. a user
D. a class
Correct Answer:
B
Chapter: 20
Q370:
What information may be included with a message in a sequence diagram?
A. Arguments and control information
B. Only the message name
C. Just the activation time
D. No additional information
Correct Answer:
A
Chapter: 20
Q371:
Which of the following is NOT a purpose of interaction diagrams?
A. Assist in understanding system behavior
B. Modeling object interactions
C. Verifying use case descriptions
D. Storing database schemas
Correct Answer:
D
Chapter: 21
Q372:
What type of messages does a synchronous message represent?
A. call events
B. signals
C. notifications
D. invocations
Correct Answer:
A
Chapter: 21
Q373:
What characterizes asynchronous messages?
A. The caller waits for completion
B. They are always synchronous
C. They do not block the caller
D. They always return values
Correct Answer:
C
Chapter: 21
Q374:
Which arrow notation is used for synchronous messages in sequence diagrams?
A. dashed arrow
B. full arrow
C. half arrow
D. none
Correct Answer:
B
Chapter: 21
Q375:
In synchronous messages, what happens after the caller makes an operation call?
A. The caller waits for completion
B. The caller immediately continues
C. The operation is canceled
D. The caller switches threads
Correct Answer:
A
Chapter: 21
Q376:
What does a <<create>> message indicate?
A. Destruction of an object
B. Creation of an object
C. Asynchronous message
D. Synchronous message
Correct Answer:
B
Chapter: 21
Q377:
In object-oriented design, what does encapsulation refer to?
A. The bundling of data with methods
B. Open access to all data
C. Separation of interface and implementation
D. All of the above
Correct Answer:
A
Chapter: 21
Q378:
What type of diagrams are best for seeing the flow of time?
A. Collaboration diagrams
B. Sequence diagrams
C. Flowcharts
D. Static diagrams
Correct Answer:
B
Chapter: 21
Q379:
What is the primary goal of using sequence diagrams?
A. To represent static structure
B. To illustrate time-based interactions
C. To show class hierarchies
D. To depict data flow
Correct Answer:
B
Chapter: 21
Q380:
Which guideline should NOT be followed when modeling synchronous messages?
A. Model a return value only when needed
B. Model a return value when obvious
C. Use clear operation calls
D. Include complex conditional logic
Correct Answer:
B