MCQs for Software Engineering: Lecture 7
Lecture 7
1. What is the purpose of a sequence diagram?
   A. To depict system architecture
   **B. To show object interactions in a scenario**
   C. To validate requirements
   D. To test software components
2. How is an object represented in a sequence diagram?
   A. As a solid line
   **B. As a rectangle with an underlined name**
   C. As a dashed line
   D. As a flowchart symbol
3. What does a lifeline represent in a sequence diagram?
   A. System behavior
   B. External actors
   **C. The existence of an object**
   D. Data flow
4. How are messages depicted in a sequence diagram?
   **A. Horizontal arrows between objects**
   B. Vertical dashed lines
   C. Rectangles with operations
   D. Circular notations
5. What does a synchronous call require in a sequence diagram?
   A. Immediate response
   B. Asynchronous processing
   **C. Waiting for the operation to complete**
   D. External validation
6. How is an asynchronous call represented in a sequence diagram?
   A. A solid arrow
   B. A dashed line with a filled arrowhead
   **C. A solid line with an open arrowhead**
   D. A slanted arrow
7. What is the main focus of object-oriented analysis?
   **A. Definition of classes and their collaboration**
   B. Flow of data through systems
   C. Testing external systems
   D. Identifying hardware components
8. What is the role of an actor in a sequence diagram?
   A. To process data
   **B. To interact with the system**
   C. To define object behavior
   D. To validate testing outputs
9. What do return messages indicate in a sequence diagram?
   A. Data flow between objects
   **B. A response to a synchronous call**
   C. External system behavior
   D. An error condition
10. How are timing requirements shown in sequence diagrams?
   **A. With annotations**
   B. With flow diagrams
   C. Using external entities
   D. With hardware constraints
11. What is the purpose of a state diagram?
   A. To validate system requirements
   **B. To represent system states and transitions**
   C. To document actor interactions
   D. To define object attributes
12. How are alternate behaviors shown in a sequence diagram?
   A. Using actors
   **B. With included sequence diagrams**
   C. With state variables
   D. Using class diagrams
13. What is a partial sequence diagram?
   A. A complete scenario representation
   **B. A diagram showing only part of a sequence**
   C. A hardware-specific diagram
   D. A flow diagram
14. What is the first step in creating a sequence diagram?
   **A. Identifying objects needed to support the use case**
   B. Writing test cases
   C. Validating system outputs
   D. Specifying testing strategies
15. How are compound iterations shown in sequence diagrams?
   A. With state diagrams
   **B. Using looping notations**
   C. With dashed lines
   D. Using external actors
16. What is the role of objects in object-oriented systems?
   **A. Managing and moving data**
   B. Validating test cases
   C. Defining external hardware
   D. Representing actors
17. What is the purpose of refining sequence diagrams?
   A. To represent testing scenarios
   **B. To provide detailed interactions between objects**
   C. To define system hardware
   D. To create data flow diagrams
18. How are interactions ordered in a sequence diagram?
   A. By external actors
   B. By object attributes
   **C. By vertical position of messages**
   D. By system constraints
19. What is the significance of including timing constraints in sequence diagrams?
   **A. To ensure objects interact within specified time limits**
   B. To validate external outputs
   C. To define state variables
   D. To simplify testing processes
20. What is the importance of specifying operation names on call arrows?
   A. To identify actors
   B. To validate outputs
   **C. To clarify the operation being invoked**
   D. To define state transitions