Unit 3 - Practice Quiz

CSE320 50 Questions
0 Correct 0 Wrong 50 Left
0/50

1 Which phase of the Unified Process (UP) focuses primarily on defining the scope of the project and determining its feasibility?

A. Inception
B. Elaboration
C. Construction
D. Transition

2 In the Unified Process, during which phase is the architectural baseline of the system typically established?

A. Inception
B. Elaboration
C. Construction
D. Transition

3 Which of the following best describes the Iterative and Incremental development approach used in Object-Oriented Software Engineering?

A. The entire system is built in a single pass without reviewing previous steps.
B. The system is developed in a series of mini-projects, where each adds more functionality to the previous version.
C. Requirements are frozen at the beginning, and no changes are allowed until deployment.
D. Testing is performed only after the complete coding phase is finished.

4 In UML Use Case diagrams, what relationship is used when a use case implicitly incorporates the behavior of another use case at a location specified by the base use case?

A. Generalization
B. Association
C.
D.

5 Which UML diagram is classified as a behavioral diagram?

A. Class Diagram
B. Component Diagram
C. Sequence Diagram
D. Deployment Diagram

6 In a Class Diagram, what does the symbol # (hash) preceding an attribute name represent regarding visibility?

A. Public
B. Private
C. Protected
D. Package

7 Which relationship in a Class Diagram represents a 'strong' form of aggregation where the part cannot exist without the whole (lifecycle dependency)?

A. Association
B. Dependency
C. Shared Aggregation
D. Composition

8 In a Sequence Diagram, what does the vertical axis represent?

A. System Hierarchy
B. Time
C. Object relationships
D. Message complexity

9 What is the primary purpose of an Activity Diagram?

A. To show the static structure of the system.
B. To model the flow of control or data from activity to activity.
C. To illustrate the physical deployment of artifacts.
D. To capture time-dependent message exchanges.

10 Which Unified Process workflow is responsible for translating the design model into executable code?

A. Requirements
B. Analysis
C. Implementation
D. Deployment

11 In a Use Case diagram, an external entity that interacts with the system is called a(n):

A. Object
B. Class
C. Actor
D. Module

12 Which type of validation check ensures that there are no contradictory requirements or design specifications in the model?

A. Completeness checking
B. Consistency checking
C. Performance testing
D. Stress testing

13 What is the primary goal of Traceability in software engineering?

A. To ensure the code runs faster.
B. To link requirements to design, code, and test cases.
C. To reduce the number of classes in a diagram.
D. To increase the coupling between modules.

14 In the context of coding standards, which metric measures the number of linearly independent paths through a program's source code?

A. Lines of Code (LOC)
B. Cyclomatic Complexity
C. Cohesion
D. Fan-out

15 In a Sequence Diagram, an Activation Bar (or Focus of Control) on a lifeline indicates:

A. The object is created.
B. The object is destroyed.
C. The object is active and performing an action.
D. The object is waiting for a message.

16 Which UML diagram uses Swimlanes to group activities based on who (which actor or system) is responsible for them?

A. Use Case Diagram
B. Sequence Diagram
C. Activity Diagram
D. State Chart Diagram

17 The relationship in a Use Case diagram implies that:

A. The extending use case is always executed.
B. The extending use case is optional and runs only under specific conditions.
C. The base use case cannot exist without the extending use case.
D. Both use cases are identical.

18 In Object-Oriented Modeling, which principle refers to bundling data and methods that operate on that data within a single unit?

A. Inheritance
B. Polymorphism
C. Encapsulation
D. Abstraction

19 When validating a model, Completeness checking ensures that:

A. There are no syntax errors.
B. The model contains all necessary elements and requirements defined in the scope.
C. The model compiles without warnings.
D. Classes have low coupling.

20 Which of the following is a formal code review technique led by a moderator?

A. Pair Programming
B. Fagan Inspection
C. Ad-hoc Review
D. Desk Checking

21 In a Class Diagram, a hollow diamond on an association line represents:

A. Composition
B. Aggregation
C. Inheritance
D. Realization

22 The Transition phase of the Unified Process ends with which milestone?

A. Lifecycle Objectives Milestone
B. Lifecycle Architecture Milestone
C. Initial Operational Capability Milestone
D. Product Release

23 Which artifact is primarily used to ensure that test cases cover all requirements?

A. Class Diagram
B. Traceability Matrix
C. Gantt Chart
D. Deployment Descriptor

24 What is the main objective of Refactoring during the coding process?

A. To add new features to the software.
B. To change the external behavior of the code.
C. To improve the internal structure of the code without changing its external behavior.
D. To fix bugs reported by users.

25 In UML, what does an italicized class name indicate?

A. Static Class
B. Abstract Class
C. Interface
D. Utility Class

26 Which symbol represents a Decision Node in an Activity Diagram?

A. Filled Circle
B. Rectangle with rounded corners
C. Diamond
D. Bar (thick line)

27 High Cohesion in software design implies:

A. Classes depend heavily on each other.
B. A module or class performs a single, well-defined task.
C. The code is difficult to test.
D. Data is global and accessible by all functions.

28 Low Coupling in software design is desirable because:

A. It increases the dependency between modules.
B. It makes the system harder to maintain.
C. It minimizes the impact of changes in one module on other modules.
D. It requires all variables to be public.

29 In a Sequence Diagram, a dashed line with an open arrowhead returning to the originating lifeline represents:

A. Synchronous Call
B. Asynchronous Call
C. Return Message
D. Self Call

30 Which Unified Process phase typically incurs the highest cost and effort?

A. Inception
B. Elaboration
C. Construction
D. Transition

31 In UML, a 'Fork' node in an Activity Diagram is used to:

A. End a process.
B. Split a single flow into concurrent parallel flows.
C. Make a decision based on a condition.
D. Merge two flows into one.

32 The relationship where a child class inherits properties and behaviors from a parent class is depicted in UML by:

A. A solid line with a filled diamond.
B. A dashed line with an arrow.
C. A solid line with a hollow triangle arrowhead pointing to the parent.
D. A solid line with no arrows.

33 Which of the following is NOT a benefit of Code Reviews?

A. Knowledge sharing among team members.
B. Early defect detection.
C. Automatic generation of documentation.
D. Enherence to coding standards.

34 What is the purpose of a Combined Fragment (e.g., 'alt', 'loop') in a Sequence Diagram?

A. To show static relationships.
B. To model complex logic like alternatives, loops, or optional sequences.
C. To link to a Class diagram.
D. To represent the physical hardware.

35 A system boundary in a Use Case diagram is represented by:

A. A stick figure.
B. An ellipse.
C. A rectangle surrounding the use cases.
D. A dashed line.

36 In the Object Modeling Process, Abstraction involves:

A. Hiding the implementation details.
B. Focusing on essential characteristics while ignoring irrelevant details.
C. Creating instances of classes.
D. Converting code to diagrams.

37 Which coding standard practice helps in preventing 'Magic Numbers' in code?

A. Using meaningful constant variables.
B. Writing comments for every line.
C. Using short variable names.
D. Keeping functions large.

38 Forward Traceability helps in:

A. Finding the origin of a requirement.
B. Verifying that the requirement has been implemented and tested.
C. Checking the spelling in the documentation.
D. Designing the database schema.

39 In UML Class Diagrams, Multiplicity '1..*' means:

A. Zero or one instance.
B. Exactly one instance.
C. One or more instances.
D. Zero or more instances.

40 Which artifact typically initiates the Analysis workflow in the Unified Process?

A. Source Code
B. Use Cases
C. Test Plan
D. Deployment Diagram

41 In a Sequence Diagram, an object that is created during the interaction is depicted by:

A. Its lifeline starting at the top of the diagram.
B. A 'create' message pointing to the object instance box, which is placed lower down the vertical axis.
C. A destruction cross (X).
D. A self-call arrow.

42 Model validation via Static Analysis involves:

A. Executing the model with sample data.
B. Reviewing the model structure and syntax without execution.
C. Deploying the model to production.
D. User acceptance testing.

43 The relationship (dashed line with hollow triangle) is typically used between:

A. Two Actors.
B. A Class and an Interface.
C. Two Use Cases.
D. An Object and a Message.

44 Which of the following is considered a 'Code Smell' during review?

A. Short methods with clear names.
B. Duplicated code blocks.
C. Comprehensive unit tests.
D. Consistent indentation.

45 In an Activity Diagram, a 'Join' bar is used to:

A. Start a new activity.
B. Synchronize multiple concurrent flows into one.
C. Create a decision point.
D. Terminate the flow.

46 What is the primary output of the Design workflow in the Unified Process?

A. A list of requirements.
B. The Design Model (including detailed class and sequence diagrams).
C. The executable software.
D. The user manual.

47 Naming conventions (e.g., CamelCase for classes, snake_case for variables) are part of:

A. Requirement Analysis.
B. Coding Standards.
C. Deployment Planning.
D. Risk Management.

48 A dependency relationship in UML (dashed line with open arrow) indicates:

A. One class is a type of another class.
B. Changes to the independent element may cause changes to the dependent element.
C. The classes share a database connection.
D. One class owns the other.

49 Which of the following best defines Pair Programming?

A. Two developers working on separate modules simultaneously.
B. Two developers working at one workstation: one writes code, the other reviews it in real-time.
C. A developer and a tester arguing about a bug.
D. Writing the code twice to ensure accuracy.

50 What distinguishes the Unified Process from the Waterfall model regarding risk management?

A. UP ignores risk until the end.
B. UP addresses high risks early through iterations.
C. Waterfall is better for high-risk projects.
D. There is no difference.