Docsity

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

Toggle sidebar
bg1
PrepIQ 17COMPA6 Software Engineering B Ultimate
Exam
**Question 1.** Which of the following best describes the primary cause of the
original “software crisis”?
A) Lack of hardware resources
B) Inadequate programming languages
C) Poor project management and uncontrolled growth of software size
D) Excessive use of formal methods
Answer: C
Explanation: The early software crisis stemmed from projects overrunning budgets
and schedules, and producing unreliable systems due to weak management
practices and rapidly expanding code bases.
**Question 2.** In the Waterfall model, which phase immediately follows the
“Design” phase?
A) Implementation
B) Testing
C) Maintenance
D) Requirements
Answer: A
Explanation: After design, the Waterfall model proceeds to implementation (coding),
then testing, deployment, and maintenance.
**Question 3.** The V-Model differs from the Waterfall model primarily because it:
A) Allows iterative development cycles
B) Emphasizes a one-to-one correspondence between development and testing
activities
C) Uses a spiral risk-analysis approach
D) Requires no documentation
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
pf33
pf34
pf35
pf36
pf37

Partial preview of the text

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

Exam

Question 1. Which of the following best describes the primary cause of the original “software crisis”? A) Lack of hardware resources B) Inadequate programming languages C) Poor project management and uncontrolled growth of software size D) Excessive use of formal methods Answer: C Explanation: The early software crisis stemmed from projects overrunning budgets and schedules, and producing unreliable systems due to weak management practices and rapidly expanding code bases. Question 2. In the Waterfall model, which phase immediately follows the “Design” phase? A) Implementation B) Testing C) Maintenance D) Requirements Answer: A Explanation: After design, the Waterfall model proceeds to implementation (coding), then testing, deployment, and maintenance. Question 3. The V-Model differs from the Waterfall model primarily because it: A) Allows iterative development cycles B) Emphasizes a one-to-one correspondence between development and testing activities C) Uses a spiral risk-analysis approach D) Requires no documentation

Exam

Answer: B Explanation: In the V-Model, each development activity on the left side has a corresponding testing activity on the right side, forming a “V” shape. Question 4. Which of the following is a characteristic of an incremental development process? A) The whole system is delivered at once after all phases are complete. B) Each increment must be fully tested before the next increment is started. C) Requirements are frozen at the start of the project. D) The model does not support risk management. Answer: B Explanation: Incremental development delivers functional pieces, each of which is tested before proceeding to the next increment. Question 5. In the Spiral model, the “risk analysis” activity is performed: A) Only at the beginning of the project B) At the end of each spiral iteration C) At the start of each spiral quadrant D) After the final product is delivered Answer: C Explanation: Each loop of the Spiral consists of four quadrants, the second of which focuses on identifying and analyzing risks. Question 6. Which Agile principle emphasizes delivering working software frequently? A) Customer collaboration over contract negotiation B) Responding to change over following a plan

Exam

Question 9. A non-functional requirement that specifies the system must be available 99.9 % of the time is an example of: A) Reliability B) Usability C) Security D) Maintainability Answer: A Explanation: Availability is a reliability attribute, measuring the proportion of time a system is operational. Question 10. According to IEEE 830, a good SRS should be all of the following EXCEPT: A) Unambiguous B) Verifiable C) Overly detailed to cover all possible future extensions D) Consistent Answer: C Explanation: While completeness is important, an SRS should not be overloaded with speculative future extensions; it should focus on current system requirements. Question 11. In a Use-Case diagram, the “actor” represents: A) A class in the implementation code B) An external entity that interacts with the system C) A database table D) A system component Answer: B

Exam

Explanation: Actors are users or external systems that communicate with the software to achieve goals. Question 12. Which of the following best describes a “high-level” Data Flow Diagram (DFL-0)? A) It shows detailed processing logic inside each function. B) It represents the entire system as a single process with external entities. C) It includes all data stores and data flows. D) It is identical to a UML class diagram. Answer: B Explanation: A context diagram (DFL-0) depicts the system as one process with its inputs and outputs to external entities. Question 13. A data dictionary entry for an attribute “CustomerID” should include all EXCEPT: A) Data type and length B) Valid value range C) Implementation language syntax D) Meaning of the attribute Answer: C Explanation: The data dictionary captures logical characteristics, not programming language specifics. Question 14. Which design principle encourages each module to perform a single, well-defined task? A) Cohesion B) Coupling C) Encapsulation

Exam

B) Sequence diagram C) Component diagram D) Deployment diagram Answer: B Explanation: Sequence diagrams illustrate object interactions in chronological order, capturing dynamic behavior. Question 18. The concept of “polymorphism” in object-oriented design allows: A) A class to inherit from multiple classes simultaneously. B) One interface to be implemented by many different classes. C) Data hiding of private attributes. D) Only static binding of method calls. Answer: B Explanation: Polymorphism lets a single interface be used for different underlying forms (implementations). Question 19. Which UI design guideline stresses that “the system should keep users informed about what is going on through appropriate feedback”? A) Consistency B) Feedback C) Error prevention D) Aesthetic integrity Answer: B Explanation: Providing timely feedback helps users understand system status and actions. Question 20. The term “metric” in software measurement is best defined as:

Exam

A) A raw count of lines of code. B) A unit of measurement for a specific attribute of a software product or process. C) A tool used to automate testing. D) The process of converting code to machine language. Answer: B Explanation: A metric quantifies a particular characteristic, such as complexity, size, or defect density. Question 21. Which size-oriented metric is most affected by code formatting and comments? A) Function Points B) Lines of Code (LOC) C) Cyclomatic Complexity D) Defect Density Answer: B Explanation: LOC counts physical lines, which can vary with formatting and comments, unlike function points. Question 22. In Function Point Analysis, which General System Characteristic (GSC) influences the weighting of unadjusted function points? A) Data Communications B) Number of Programming Languages Used C) Number of Developers D) Lines of Code Answer: A Explanation: GSCs like data communications, performance, and reusability adjust the unadjusted function point count.

Exam

Explanation: QA is proactive, defining processes to avoid defects; QC is reactive, checking the product for defects. Question 26. Verification activities are primarily concerned with: A) Ensuring the product fulfills user needs. B) Checking that the product is built according to specifications. C) Estimating project cost. D) Managing configuration items. Answer: B Explanation: Verification asks “Are we building the product right?”—i.e., conformance to specs. Question 27. Which risk type is most directly associated with a change in government regulations? A) Technical risk B) Project risk C) Business risk D) Operational risk Answer: C Explanation: Business risks encompass external factors such as legal or regulatory changes. Question 28. A Formal Technical Review (FTR) differs from an inspection primarily in that an FTR: A) Requires a moderator and a formal entry/exit criteria. B) Is informal and does not record defects. C) Is performed only after system testing. D) Focuses exclusively on coding style.

Exam

Answer: A Explanation: Inspections are a type of FTR with strict procedures; FTRs in general include a moderator and defined criteria. Question 29. Which testing level is most appropriate for verifying that a single class’s methods work correctly? A) Unit testing B) Integration testing C) System testing D) Acceptance testing Answer: A Explanation: Unit testing isolates and validates the behavior of individual components, such as a class. Question 30. In integration testing, a “bottom-up” approach starts with: A) Testing the user interface first. B) Testing high-level modules before low-level ones. C) Testing low-level modules and progressively integrating upward. D) Testing modules in random order. Answer: C Explanation: Bottom-up integration begins with the lowest-level components and moves upward. Question 31. Which black-box test design technique partitions input data into equivalence classes? A) Decision table testing B) State transition testing

Exam

B) Users request new features. C) Bugs are discovered in the operational system. D) The code is refactored for future extensibility. Answer: C Explanation: Corrective maintenance addresses defects that impair the system’s functionality. Question 35. Adaptive maintenance is primarily triggered by: A) Performance improvements. B) Changes in the operating environment, such as hardware upgrades. C) User-requested enhancements. D) Security vulnerability patches. Answer: B Explanation: Adaptive maintenance modifies software to keep it compatible with new platforms or environments. Question 36. Which activity is NOT part of software configuration management (SCM)? A) Version control B) Change control C) Configuration auditing D) Requirement elicitation Answer: D Explanation: SCM deals with managing artifacts; requirement elicitation is a requirements-engineering activity.

Exam

Question 37. Mean Time Between Failure (MTBF) is defined as: A) The average time a system operates before a failure occurs. B) The total downtime divided by the number of failures. C) The probability that a system will fail on demand. D) The time required to fix a defect. Answer: A Explanation: MTBF measures reliability by averaging the interval between successive failures. Question 38. In safety-critical systems, “hazard analysis” is performed to: A) Estimate development cost. B) Identify potential conditions that could lead to unsafe situations. C) Optimize user interface layout. D) Determine the best programming language. Answer: B Explanation: Hazard analysis discovers possible sources of danger to mitigate them during design. Question 39. According to the Software Engineering Code of Ethics, a professional should: A) Prioritize employer profit over public safety. B) Disclose any conflicts of interest that could affect the software’s integrity. C) Keep all design decisions confidential, even if they affect users. D) Accept any project regardless of competence. Answer: B Explanation: The code requires transparency about conflicts that may compromise software quality or safety.

Exam

Answer: B Explanation: A scenario captures one path through a use case, describing concrete steps to fulfill a goal. Question 43. The term “encapsulation” in OOD primarily serves to: A) Allow multiple inheritance. B) Hide internal data representation and expose only necessary operations. C) Increase coupling between classes. D) Enable dynamic method binding at compile time. Answer: B Explanation: Encapsulation protects object state by providing controlled access through methods. Question 44. Which of the following is NOT a typical layer in a three-tier client-server architecture? A) Presentation tier B) Business logic tier C) Data storage tier D) Network protocol tier Answer: D Explanation: The three tiers are presentation, business, and data; network protocols are underneath but not considered a tier. Question 45. In a state-chart diagram, a transition labeled “[x>0]/action” means: A) The transition occurs when x > 0 and the action is executed during the transition. B) The transition occurs after the action is completed.

Exam

C) The system will remain in the current state while x > 0. D) The action is a guard condition. Answer: A Explanation: The guard “[x>0]” must be true for the transition, and “/action” specifies the effect performed. Question 46. Which metric is most directly used to assess the maintainability of a software module? A) Cyclomatic complexity B) Lines of code C) Function point count D) Number of test cases Answer: A Explanation: Higher cyclomatic complexity often correlates with lower maintainability due to more intricate control flow. Question 47. In the COCOMO Intermediate model, “EAF” stands for: A) Effort Adjustment Factor B) Estimated Actual Functionality C) Execution Allocation Factor D) Error Analysis Frequency Answer: A Explanation: EAF adjusts the basic effort estimate based on 15 cost drivers. Question 48. Which of the following best illustrates “error guessing” in black-box testing? A) Deriving test cases from the program’s control flow graph.

Exam

Question 51. In a data-centered architecture, the primary focus is on: A) Distributing processing across multiple client machines. B) Centralizing data storage and providing services to various applications. C) Implementing rich user interfaces on the client side. D) Using peer-to-peer communication between nodes. Answer: B Explanation: Data-centered designs centralize data management, often exposing it via services or APIs. Question 52. Which of the following best defines “cohesion” in a software module? A) The degree to which a module depends on other modules. B) The degree to which the elements inside a module belong together to perform a single task. C) The number of classes within a package. D) The amount of documentation a module has. Answer: B Explanation: Cohesion measures internal relatedness; high cohesion is desirable. Question 53. Which testing technique is most appropriate for verifying that a login page correctly rejects passwords shorter than eight characters? A) Equivalence partitioning B) Decision table testing C) State transition testing D) Path testing

Exam

Answer: A Explanation: Equivalence partitioning can create a “invalid length” class for passwords < 8 characters. Question 54. In the context of software project risk, “risk exposure” is calculated as: A) Probability of occurrence × Impact magnitude B) Number of defects × severity C) Cost of mitigation ÷ probability D) Duration × team size Answer: A Explanation: Risk exposure combines likelihood and consequence to prioritize risks. Question 55. Which of the following is an example of a “functional requirement”? A) The system shall encrypt all user data at rest. B) The system shall be available 99.5 % of the time. C) The system shall support 1,000 concurrent users. D) The system shall process a transaction within 2 seconds. Answer: D Explanation: Processing time describes what the system does; encryption is a security (non-functional) requirement. Question 56. Which of the following statements about “traceability” in an SRS is correct? A) It ensures that each requirement can be linked to its source and to corresponding test cases. B) It guarantees that requirements are free of ambiguity.