Docsity

PrepIQ 17COMPA6 Software Engineering A Ultimate Exam, Exams of Technology

Toggle sidebar
bg1
PrepIQ 17COMPA6 Software Engineering A
Ultimate Exam
**Question 1. Which of the following best describes the primary difference between
software engineering and programming?**
A) Software engineering focuses on individual code syntax, while programming
emphasizes process models.
B) Programming is concerned with the entire software lifecycle, whereas software
engineering deals only with coding.
C) Software engineering includes systematic application of engineering principles to
the whole lifecycle; programming is the act of writing code.
D) Programming requires a formal specification, while software engineering does
not.
Answer: C
Explanation: Software engineering applies engineering discipline to requirement
gathering, design, testing, and maintenance, whereas programming is limited to
implementing code.
**Question 2. In the layered technology view of software engineering, which layer
directly supports the “process” layer?**
A) Tools
B) Methods
C) Quality focus
D) Requirements
Answer: B
Explanation: Methods provide the structured techniques (e.g., agile, waterfall) that
define how processes are carried out, sitting directly above tools.
**Question 3. Which characteristic is a known drawback of the classic Waterfall
model?**
A) High customer involvement throughout development.
B) Flexibility to accommodate changing requirements.
C) The “blocking state” where later phases cannot start until earlier ones are fully
completed.
D) Parallel development of all components.
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15
pf16
pf17
pf18
pf19
pf1a
pf1b
pf1c
pf1d
pf1e
pf1f
pf20
pf21
pf22
pf23
pf24
pf25
pf26
pf27
pf28
pf29
pf2a
pf2b
pf2c
pf2d
pf2e
pf2f
pf30
pf31
pf32

Partial preview of the text

Download PrepIQ 17COMPA6 Software Engineering A Ultimate Exam and more Exams Technology in PDF only on Docsity!

Ultimate Exam

Question 1. Which of the following best describes the primary difference between software engineering and programming? A) Software engineering focuses on individual code syntax, while programming emphasizes process models. B) Programming is concerned with the entire software lifecycle, whereas software engineering deals only with coding. C) Software engineering includes systematic application of engineering principles to the whole lifecycle; programming is the act of writing code. D) Programming requires a formal specification, while software engineering does not. Answer: C Explanation: Software engineering applies engineering discipline to requirement gathering, design, testing, and maintenance, whereas programming is limited to implementing code. Question 2. In the layered technology view of software engineering, which layer directly supports the “process” layer? A) Tools B) Methods C) Quality focus D) Requirements Answer: B Explanation: Methods provide the structured techniques (e.g., agile, waterfall) that define how processes are carried out, sitting directly above tools. Question 3. Which characteristic is a known drawback of the classic Waterfall model? A) High customer involvement throughout development. B) Flexibility to accommodate changing requirements. C) The “blocking state” where later phases cannot start until earlier ones are fully completed. D) Parallel development of all components.

Ultimate Exam

Answer: C Explanation: Waterfall’s sequential nature creates a blocking state; each phase must finish before the next begins, limiting adaptability. Question 4. In incremental development, the first increment typically delivers: A) All functional requirements in a single release. B) A prototype that is discarded after evaluation. C) A minimal subset of core functionality that is usable. D) Only non-functional requirements. Answer: C Explanation: The first increment provides a thin slice of the system with essential features, allowing early feedback. Question 5. The Spiral model incorporates risk analysis at each iteration. Which activity is performed directly after identifying risks? A) Coding the entire system. B) Developing a detailed design for the next phase. C) Planning the next iteration’s objectives and deliverables. D) Conducting a formal inspection of the previous version. Answer: C Explanation: After risk analysis, the model plans the next iteration’s objectives, ensuring risk mitigation guides subsequent work. Question 6. Component-Based Development (CBD) primarily emphasizes: A) Writing all code from scratch to ensure uniqueness. B) Reusing pre-built, well-defined components to assemble systems. C) Using only object-oriented languages. D) Continuous integration of monolithic code bases. Answer: B

Ultimate Exam

Explanation: Sprint Review occurs at the end of a sprint to inspect the increment and adapt the backlog. Question 10. Kanban limits work in progress (WIP) to improve: A) Code compilation speed. B) Predictability and flow of tasks through the system. C) Number of team members. D) Frequency of releases. Answer: B Explanation: By limiting WIP, Kanban reduces multitasking, making workflow more predictable and efficient. Question 11. Which CMMI maturity level indicates that an organization has defined its processes and is using them consistently? A) Level 1 – Initial B) Level 2 – Managed C) Level 3 – Defined D) Level 4 – Quantitatively Managed Answer: C Explanation: Level 3 (Defined) means processes are documented, standardized, and integrated across the organization. Question 12. During requirements elicitation, which technique is most effective for uncovering tacit knowledge from domain experts? A) Formal surveys B) Observation and shadowing C) Automated log analysis D) Code review Answer: B

Ultimate Exam

Explanation: Observation lets analysts see real work practices, revealing knowledge that experts may not articulate directly. Question 13. Functional requirements describe: A) System performance constraints such as response time. B) What the system shall do – its behaviors and services. C) The technology stack to be used. D) The organization’s internal policies. Answer: B Explanation: Functional requirements specify the functions, services, and behavior the system must provide. Question 14. Which of the following is a non-functional requirement? A) User login authentication. B) Generate monthly sales report. C) System shall respond to any user request within 2 seconds. D) Store customer data in a relational database. Answer: C Explanation: Response time is a performance attribute, a typical non-functional (quality) requirement. Question 15. In the context of requirements, a “use case” primarily captures: A) Detailed class relationships. B. System’s data storage schema. C) Interaction sequences between an actor and the system to achieve a goal. D) Low-level algorithmic steps. Answer: C Explanation: Use cases model functional interactions from an external actor’s perspective.

Ultimate Exam

Question 19. Abstraction in software design primarily helps to: A) Increase coupling between modules. B) Hide implementation details and expose only essential features. C) Reduce the number of classes. D) Enforce specific programming languages. Answer: B Explanation: Abstraction hides complexity, presenting a simplified interface to users or other modules. Question 20. High cohesion within a module is desirable because it: A) Increases the number of external dependencies. B. Makes the module harder to test. C) Improves understandability and reusability. D. Encourages duplicated code. Answer: C Explanation: Cohesive modules have related responsibilities, making them easier to maintain and reuse. Question 21. Which coupling type is considered the most desirable? A) Content coupling B) Common coupling C) Data coupling D) No coupling (i.e., loose coupling) Answer: D Explanation: Loose (or no) coupling minimizes inter-module dependencies, enhancing flexibility and maintainability. Question 22. Information hiding is a principle that primarily supports: A) Open sharing of all internal data structures.

Ultimate Exam

B) Encapsulation of internal details behind well-defined interfaces. C) Direct manipulation of global variables. D) Frequent changes to the public API. Answer: B Explanation: Information hiding protects internal implementation, exposing only what is necessary via interfaces. Question 23. In a layered architectural pattern, which layer typically communicates directly with the database? A) Presentation layer B) Business logic layer C) Data access layer D) Application layer Answer: C Explanation: The Data Access Layer abstracts persistence concerns and interacts with the database. Question 24. Which architectural pattern is most appropriate for a system that must scale horizontally by adding independent service instances? A) Monolithic B) Client-Server C) Microservices D) Broker Answer: C Explanation: Microservices decompose functionality into independent services that can be replicated to scale horizontally. Question 25. The “golden rule” of UI design that states “the user should always be in control” corresponds to which principle? A) Consistency

Ultimate Exam

C) Testing low-level components before integrating higher-level ones. D) Testing the whole system without any prior unit testing. Answer: C Explanation: Bottom-up integration assembles and tests low-level modules first, moving upward. Question 29. Smoke testing is best described as: A) Exhaustive testing of all functional paths. B. A quick set of tests to verify that the most critical functions work after a new build. C) Testing only the user interface. D. Performance testing under peak load. Answer: B Explanation: Smoke tests are shallow, broad checks to ensure a build is stable enough for deeper testing. Question 30. Basis path testing belongs to which testing technique? A) Black-Box testing B) White-Box testing C) Regression testing D) Acceptance testing Answer: B Explanation: Basis path testing uses the program’s control-flow graph to derive independent execution paths (white-box). Question 31. Equivalence partitioning is a black-box technique that aims to: A) Test every possible input value. B) Divide input data into groups that are expected to behave similarly and select representative values. C. Generate random test data.

Ultimate Exam

D. Verify internal code branches. Answer: B Explanation: By partitioning inputs into equivalence classes, testers reduce the number of cases while maintaining coverage. Question 32. Boundary value analysis is most effective when applied to: A) Non-numeric data only. B) Input domains with defined upper and lower limits. C) Randomly generated strings. D) System performance metrics. Answer: B Explanation: Testing values at the edges of valid ranges often reveals off-by-one errors. Question 33. The V-Model emphasizes: A) Parallel development of code and documentation. B) A one-time testing phase after implementation. C) Mapping each development phase to a corresponding testing phase. D) Continuous deployment without testing. Answer: C Explanation: The V-Model pairs each design activity with a verification activity on the opposite side of the “V”. Question 34. ISO 9126 defines software quality in terms of: A) Only functional correctness. B) Six characteristics: functionality, reliability, usability, efficiency, maintainability, portability. C) Project cost and schedule. D) Number of lines of code.

Ultimate Exam

Explanation: EAF modifies the nominal effort based on cost drivers like personnel experience, tool usage, and schedule constraints. Question 38. Which scheduling technique uses a network of activities to identify the longest path and thus the project duration? A) Gantt chart B) PERT/CPM C) Earned Value Management D) Critical chain method Answer: B Explanation: PERT/CPM builds a directed graph of tasks, calculates the critical path (longest duration), and determines project length. Question 39. A proactive risk management strategy involves: A) Waiting for issues to appear before responding. B) Identifying, analyzing, and mitigating risks before they become problems. C) Ignoring low-probability risks. D) Assigning all risk to the project sponsor. Answer: B Explanation: Proactive risk management anticipates and reduces risk impact early in the project. Question 40. Version control systems primarily provide: A) Automatic requirement elicitation. B) Tracking of changes to artifacts over time and supporting concurrent development. C) Real-time performance monitoring. D) Automated code generation. Answer: B

Ultimate Exam

Explanation: VCS records revisions, enables branching/merging, and helps manage changes. Question 41. Mean Time Between Failures (MTBF) is a metric used to evaluate: A) Development productivity. B) System reliability over operational time. C) Code readability. D) User satisfaction. Answer: B Explanation: MTBF measures average time elapsed between successive failures, indicating reliability. Question 42. Which type of software maintenance involves adding new features in response to changing business needs? A) Corrective maintenance B) Adaptive maintenance C) Perfective maintenance D) Preventive maintenance Answer: C Explanation: Perfective maintenance enhances functionality, performance, or maintainability. Question 43. Reverse engineering is most commonly performed to: A) Add new security patches automatically. B) Extract design and documentation from existing code for understanding or migration. C) Generate test cases from requirements. D) Optimize compilation speed. Answer: B

Ultimate Exam

Explanation: Abstract Factory encapsulates object creation for related families, decoupling client code from concrete classes. Question 47. In a client-server architecture, which component initiates requests for services? A) Server B) Middleware C) Client D) Database Answer: C Explanation: The client sends requests; the server processes and returns responses. Question 48. A “broker” architectural style is most suitable for: A) Tight coupling between modules. B) Systems requiring dynamic location and invocation of services across heterogeneous platforms. C) Single-process desktop applications. D) Real-time embedded control loops. Answer: B Explanation: Broker mediates communication among distributed components, handling discovery and invocation. Question 49. In a peer-to-peer (P2P) system, each node typically acts as: A) A central server only. B) A client that never provides resources. C) Both client and server, sharing resources directly with others. D) A passive data store. Answer: C Explanation: P2P nodes are equals that can request and provide services.

Ultimate Exam

Question 50. Which of the following best illustrates “tight coupling” between two modules? A) Module A calls functions in Module B and also accesses B’s internal data structures directly. B) Module A interacts with Module B through a well-defined interface only. C) Modules communicate via message queues. D) Modules are completely independent. Answer: A Explanation: Direct data access and function calls create strong dependencies, i.e., tight coupling. Question 51. The principle of “information hiding” is most closely related to which OOP concept? A) Inheritance B) Polymorphism C) Encapsulation D) Overloading Answer: C Explanation: Encapsulation bundles data and methods, exposing only necessary interfaces, embodying information hiding. Question 52. In the context of software testing, orthogonal array testing is used to: A) Test all possible input combinations exhaustively. B) Reduce the number of test cases while still covering pairwise interactions of factors. C) Generate random test data. D) Perform security penetration testing. Answer: B

Ultimate Exam

Question 56. A “baseline” in configuration management is: A) The final version of the software after release. B) A formally agreed-upon snapshot of a product at a point in time, used for further development. C) The list of all known bugs. D) The schedule of the next sprint. Answer: B Explanation: Baselines serve as reference points for change control. Question 57. Fault-tolerant design often uses which technique to continue operation after a component failure? A) Code obfuscation B) Redundancy (e.g., N-version programming) C) Minification D) Agile ceremonies Answer: B Explanation: Redundancy provides backup components that can take over when a primary fails. Question 58. Which maintenance type is triggered when a new operating system version requires changes to the existing software? A) Corrective maintenance B) Adaptive maintenance C) Perfective maintenance D) Preventive maintenance Answer: B Explanation: Adaptive maintenance modifies the software to keep it compatible with a changing environment.

Ultimate Exam

Question 59. The “Open/Closed Principle” (OCP) states that software entities should be: A) Open for extension, closed for modification. B) Open for modification, closed for extension. C) Open to all users. D) Closed source. Answer: A Explanation: OCP encourages extending behavior via inheritance or composition without altering existing code. Question 60. In a microservices architecture, which of the following is a typical deployment unit? A) A monolithic executable JAR. B) A single database schema shared by all services. C) An independently deployable service container. D) A static HTML page. Answer: C Explanation: Each microservice is packaged (e.g., Docker container) and deployed independently. Question 61. Which of the following is NOT a characteristic of a good software requirement? A) Testable B) Ambiguous C) Consistent D) Traceable Answer: B Explanation: Ambiguity makes requirements unclear and untestable, violating good requirement criteria.