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. What is the purpose of the <<control>> class?
A Display data
B Manage business logic and system rules
C Store in a database
D Provide a graphical interface
B
In UML, a class marked with the <<control>> stereotype represents a control class, which manages processing logic or the flow of operations in a system.
It links <<boundary>> classes (user or system interfaces) and <<entity>> classes (which contain data or business logic). The <<control>> class orchestrates interactions: it receives requests from interfaces, applies business rules using entities, and sends the results back to the interfaces.
In summary, a <<control>> class coordinates the execution of a use case, centralizing processing without managing the interface or data themselves.
2. What does “Port1” represent?
A A dependency
B An attribute
C A package
D An interaction point (port) between component and its environment
D
Ports allow components to expose interfaces to the outside in a controlled manner.
3. In a database-oriented UML approach, what does the conceptual model correspond to?
A The final SQL structure
B The structure of interfaces
C A business view of entities and relationships without physical constraints
D The optimization of indexing
C
The conceptual model is independent of any technology. The logical model adds primary/foreign keys. The physical model is specific to the DBMS.
4. What does Transaction represent here?
A A dependency
B A main class
C A nested inner class within Account
D An entity
C
UML allows representing inner classes, like in Java/C#, to encapsulate internal behaviors.
5. What does this diagram represent?
A An activity diagram
B A diagram of nested packages (namespaces)
C A sequence
D An abstract class
B
This reflects the structure of the code (e.g., App.Services.AuthService), useful in Java, .NET, etc.
6. What do onRead() / show() represent?
A An alternative state
B An asynchronous call
C An error
D An internal event triggering an action in the current state
D
This models an internal action triggered without changing the state.
7. What does “supervisor” model here?
A A cyclic relationship
B A reflexive relationship within an n-ary association
C A modeling error
D A binary association
B
An Employee can supervise another within a given project.
8. What does “reverse engineering UML” mean?
A Create a website
B Translate UML to Python
C Write unit tests
D Generate UML diagrams from existing code
D
Reverse engineering UML refers to the process of automatically generating UML diagrams (like class diagrams) from existing source code.
In other words, instead of starting from UML models to write code (direct engineering), you do the opposite: you analyze an already written program (e.g., in Java, C++, etc.) to extract its structure into UML models. This helps understand the architecture of a project, document complex code, or quickly visualize relationships between classes, methods, and attributes without reading everything manually.
This is particularly useful for maintenance, documentation, or when working on code you didn’t write yourself.
9. In a use case diagram, a secondary actor is one who _________?
A Uses the application only offline
B Interacts indirectly with the system through another actor
C Is a subclass of a primary actor
D Participates only in exception cases
B
A secondary actor does not initiate use cases but intervenes via another actor (e.g., a bank in a shopping app). Example:
The Client initiates the process.
The Bank intervenes as a secondary actor, without initiating the interaction.
This diagram helps show partners or external systems involved without originating the scenario.
10. What does this diagram represent?
A A logical structure
B An organizational chart
C An internal class structure with its parts (composite)
D A database
C
Models the internal components of a class, like physical or software subsystems.
MCQPractice competitive and technical Multiple Choice Questions and Answers (MCQs) with simple and logical explanations to prepare for tests and interviews.Read More