Unit 3 - Practice Quiz

CSE320

1 Which of the following best describes the Unified Process (UP) approach to software development?

A. A linear, sequential model where requirements are fixed before design begins
B. An iterative and incremental framework that is use-case driven and architecture-centric
C. A code-driven process that emphasizes implementation over documentation
D. A strict waterfall approach with defined phases that do not repeat

2 What is the correct chronological order of the four phases in the Unified Process?

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

3 During the Inception phase of the Unified Process, the primary goal is to:

A. Complete the coding of all functional requirements
B. Define the system architecture and mitigate high risks
C. Establish the business case and define the scope of the project
D. Deploy the software to the end-users

4 Which artifact is primarily responsible for establishing the executable architectural baseline in the Unified Process?

A. The Vision Document
B. The Use Case Model
C. The Architectural Prototype (produced in Elaboration)
D. The User Manual

5 In the Construction phase of the Unified Process, the primary focus is on:

A. Requirements gathering
B. High-level analysis
C. Developing the system features and coding
D. Beta testing at the customer site

6 The Transition phase usually concludes with which milestone?

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

7 In UML Use Case Diagrams, what does the relationship imply?

A. The base use case optionally executes the included use case
B. The included use case is a variation of the base use case
C. The base use case explicitly incorporates the behavior of another use case
D. The included use case executes only if a specific condition is met

8 In UML Use Case Diagrams, the relationship is used when:

A. A use case always requires another use case
B. A use case adds optional or conditional behavior to a base use case
C. Two actors communicate with each other
D. A class inherits from another class

9 Which of the following diagrams is best suited for modeling the static structure of a system?

A. Sequence Diagram
B. Class Diagram
C. Activity Diagram
D. Use Case Diagram

10 In a Class Diagram, what symbol represents a Composition relationship?

A. A solid line with a hollow diamond
B. A solid line with a filled diamond
C. A dashed line with an arrow
D. A solid line with a hollow triangle

11 Which UML symbol denotes a protected visibility attribute in a class?

A. +
B. -
C. #
D. ~

12 If Class A is a generalized form of Class B, this relationship is known as:

A. Association
B. Aggregation
C. Inheritance
D. Dependency

13 In a Sequence Diagram, the vertical dashed line descending from an object represents its:

A. Activation bar
B. Lifeline
C. Message flow
D. Association

14 What does a synchronous message in a Sequence Diagram imply?

A. The sender waits for the receiver to finish processing the message before continuing
B. The sender continues execution immediately without waiting
C. The message is sent to create a new object
D. The message is a return value

15 In a Sequence Diagram, a thin rectangular box placed on a lifeline represents:

A. An object instance
B. An execution specification (Activation bar)
C. A comment
D. A generic class

16 Activity Diagrams are primarily used to model:

A. The physical deployment of artifacts
B. The workflow or business process logic
C. The interaction between objects over time
D. The state changes of a single object

17 In an Activity Diagram, a diamond shape represents:

A. An initial node
B. A final node
C. A decision or merge node
D. A fork or join node

18 What is the purpose of a Fork node in an Activity Diagram?

A. To terminate a flow
B. To split a single flow into multiple concurrent flows
C. To join multiple flows into one
D. To represent a conditional branch

19 In UML modeling, Swimlanes in an Activity Diagram are used to:

A. Group activities by the actor or organization unit responsible for them
B. Show the timeline of events
C. Represent data storage
D. Indicate the state of an object

20 Which of the following best describes Object Modeling?

A. Designing database tables only
B. Visualizing a software system as a collection of interacting objects
C. Writing procedural code
D. Creating user interface mockups

21 In Class Diagrams, multiplicity notation indicates:

A. Zero or more instances
B. Exactly one instance
C. One or more instances
D. Optional instance (0 or 1)

22 Which UML diagram allows for modeling the physical architecture of the system, including hardware nodes?

A. Component Diagram
B. Deployment Diagram
C. Object Diagram
D. Package Diagram

23 Checking that a model contains no contradictions (e.g., a class diagram contradicts a sequence diagram) is known as:

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

24 Checking that all requirements defined in the SRS are represented in the design models is known as:

A. Consistency checking
B. Completeness checking
C. Refactoring
D. Unit testing

25 What is a Traceability Matrix used for in software engineering?

A. To map requirements to design components and test cases
B. To calculate the cyclomatic complexity
C. To schedule project phases
D. To trace memory leaks in code

26 Which code review technique is the most formal, involving defined roles (Moderator, Reader, Recorder) and metrics collection?

A. Code Walkthrough
B. Pair Programming
C. Fagan Inspection
D. Desk Checking

27 The primary objective of adhering to Coding Standards is to:

A. Make the code execute faster
B. Reduce the size of the compiled binary
C. Improve code readability and maintainability
D. Ensure the code is object-oriented

28 In a Use Case diagram, the System Boundary is represented by:

A. A dashed oval
B. A rectangle surrounding the use cases
C. A stick figure
D. A solid line connecting actors

29 Which relationship in a Class Diagram represents 'is-part-of' but allows the part to exist independently of the whole?

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

30 In the context of the Unified Process, iteration means:

A. Doing the entire waterfall process once
B. Repeating a cycle of analysis, design, implementation, and testing
C. Writing the code multiple times until it works
D. Testing the software continuously

31 Which artifact is NOT typically associated with the Requirements workflow in UP?

A. Use Case Model
B. Glossary
C. Deployment Plan
D. Supplementary Specification

32 In UML, an abstract class is usually distinguished by:

A. Underlining the class name
B. Putting the class name in italics
C. Adding an 'A' prefix
D. Drawing the box with dashed lines

33 What is the result of Forward Traceability?

A. Mapping code back to requirements
B. Ensuring requirements are decomposed into design and code
C. Checking if the design matches the user manual
D. Tracing bugs to their origin

34 A Code Walkthrough is best described as:

A. A formal inspection with a moderator
B. An informal presentation of code by the author to peers for feedback
C. Automated static analysis
D. Testing the code dynamically

35 In a Sequence Diagram, an Asynchronous Message is depicted by:

A. A solid line with a filled arrowhead
B. A solid line with an open arrowhead
C. A dashed line with an open arrowhead
D. A curved line

36 Which UML diagram is a type of interaction diagram?

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

37 The concept of Refactoring in object-oriented development refers to:

A. Changing the external behavior of code
B. Improving the internal structure of code without changing external behavior
C. Rewriting the documentation
D. Porting the software to a new platform

38 In a Class Diagram, an Association Class is used when:

A. Two classes have a many-to-many relationship that requires attributes
B. A class interacts with an actor
C. A class inherits from multiple parents
D. A class is composed of other classes

39 What is the '4+1 View Model' of software architecture primarily composed of?

A. Logical, Development, Process, Physical, and Use Case views
B. Class, Sequence, Activity, State, and Component views
C. Input, Output, Process, Storage, and Feedback views
D. Frontend, Backend, Database, Network, and Security views

40 Static analysis tools used during code review primarily check for:

A. Runtime errors
B. Syntax errors, coding standard violations, and potential bugs
C. User interface responsiveness
D. Server load capacity

41 In an Activity Diagram, a Join node:

A. Splits execution into threads
B. Synchronizes multiple concurrent flows into one
C. Represents a choice between alternatives
D. Starts the activity

42 Which of the following is a key benefit of Incremental Development?

A. All requirements are finalized at the start
B. The customer can see and use early versions of the software
C. Testing is delayed until the end
D. Documentation is unnecessary

43 In UML, the symbol for Realization (e.g., a class implementing an interface) is:

A. A solid line with a hollow triangle
B. A dashed line with a hollow triangle
C. A dashed line with an open arrow
D. A solid line with a filled diamond

44 When validating a model, checking that a variable used in a calculation has been defined is an example of:

A. Completeness
B. Consistency
C. Correctness
D. Traceability

45 In the Unified Process, the Elaboration phase is considered complete when:

A. The initial idea is pitched
B. The product is shipped
C. The architecture is stable and key risks are addressed
D. All code is written

46 Which UML diagram is best used to show the life cycle of a single object and the events that cause it to change?

A. State Machine Diagram
B. Class Diagram
C. Activity Diagram
D. Use Case Diagram

47 In a Sequence Diagram, alt, opt, and loop are examples of:

A. Lifelines
B. Interaction Fragments (Combined Fragments)
C. Messages
D. States

48 The Primary Actor in a Use Case diagram is usually:

A. The system administrator
B. The entity whose goal is satisfied by the use case
C. The database
D. An external system that receives data

49 Which metric calculates the number of linearly independent paths through a program's source code?

A. Lines of Code (LOC)
B. Halstead Complexity
C. Cyclomatic Complexity
D. Function Points

50 Effective Model Validation ensures:

A. The model looks aesthetically pleasing
B. The model accurately represents the requirements and is technically sound
C. The model uses the latest version of UML
D. The model is drawn using a specific software tool