Test your knowledge and boost your confidence with these multiple-choice quizzes focused on UML diagrams, foundational software engineering concepts, and real-world best practices. Designed for students, developers, and exam candidates, these MCQs offer a quick and effective way to assess your understanding and sharpen your skills.
1. Why is <<include>> used here between “Track Delivery” and “Geolocate Delivery Person”?
A The customer can geolocate sometimes
B “Geolocate” is a derived action
C “Track Delivery” always needs to geolocate the delivery person
D Incorrect use of UML
C
The <<include>> relationship between “Track Delivery” and “Geolocate Delivery Person” indicates that geolocating the delivery person is an essential and mandatory part of tracking the delivery. This modularizes the process by encapsulating the geolocation functionality in a separate use case, which is always invoked when tracking a delivery. It promotes systematic reuse, ensuring that the geolocation logic is consistent and can be easily reused in other parts of the system, while keeping the overall design clean and organized.
2. Which technology could be modeled with this diagram?
A A banking API
B A voice emotion detection AI
C A weather app
D A relational database
B
This diagram can be used to model a voice emotion detection AI application.
3. What does T represent here?
A It’s a method
B A private attribute
C A syntax error
D A generic class to support different geometric types
D
In UML, a generic class is a class that can work with any data type, making it highly reusable and flexible. It is a way to define a class that can operate on objects of various types without needing to rewrite the code for each specific type. Here’s an example using Shape<Circle>: and Shape<Rectangle>:
4. How would you represent this scenario in a use case diagram?
A With <<include>>
B With an if
C With <<extend>> toward a “Connection Error” case
D Impossible
C
This kind of alternate/error scenario is expressed as an extension of the main use case. Example:
5. What concept is illustrated here?
A Redefinition
B Method overloading
C Reflexivity
D Encapsulation
B
In object-oriented programming, method overloading refers to having multiple methods with the same name but different parameters (either in number, type, or both). This is not the same as redefining the method, but rather, defining multiple versions of the method that can accept different types or numbers of arguments.
6. What business rule is implicitly modeled here?
A Everyone can chat
B Chat without a profile
C You must have liked a profile to chat with them
D You can like multiple profiles
C
The use of the <<include>> relationship in this context enforces a required logical condition in the business flow. Specifically, it means that liking a profile is a precondition for being able to chat with someone. This business rule is represented by the fact that before the “Chat” use case can occur, the system includes a step where the user must first like the profile. This ensures that chatting is only possible after a user has expressed interest in the other user’s profile (through the “liking” action).
7. Is this a valid UML diagram?
A No, it’s not serious
B No, user interactions are not allowed
C Yes, any structured exchange between actors can be modeled
D No, ChatGPT can’t be modeled in UML
C
UML doesn’t judge your scenario: as long as it’s logical, you can model it—even a conversation with an AI.
8. What UML views does this diagram combine?
A Sequence and activity
B Class and object
C Components + deployment
D States + collaboration
C
This diagram combines Component and Deployment views, which are used to model the physical and logical structure of a system in a distributed environment. These views are particularly useful in architectures like Cloud, SaaS, or microservices, where you need to understand both what components (e.g., services, modules) are involved and where they run (e.g., servers, containers, cloud environments).
9. A File can have 0 or more Attachments. These attachments can also be used in other files. What is the relationship?
A Composition
B Aggregation
C Association
D Dependency
B
Attachments can exist outside the file, so it’s aggregation (a weak “whole-part” relationship).
10. You want to represent that the action of repairing a machine depends on the prior existence of a diagnosis. In your use case diagram, you use:
A Include
B Extend
C Realization
D Deployment
A
If an action requires another one, it’s <<include>>.
11. A Customer books a Room. Both the Customer and the Room exist independently but are linked for the booking. What is the relationship?
A Composition
B Aggregation
C Association
D Dependency
C
If the entities are related without a strong dependency, it’s a simple association.
MCQPractice competitive and technical Multiple Choice Questions and Answers (MCQs) with simple and logical explanations to prepare for tests and interviews.Read More