Answer: (b) deliver high-quality software within time and cost estimates
Exercise 1 Solutions · Unit 1: Introduction to Software Development
8 reading sections · 17 MCQs · 7 short · 5 long questions
Exercise 1 — Exercise 1: MCQs, short and long questions
Answer: (b) Non-Functional Requirements
Answer: (b) provide a structured foundation with predefined components and architectures
Answer: (b) Agile Methodology
Answer: (a) Understanding the project scope and tasks
Answer: (c) Number of meetings held
Answer: (b) identify and document the system's functional requirements
Answer: Functional requirements say what the system should do; non-functional requirements say how well it should do it (performance, reliability, security, usability).
Answer: Testing checks the software for bugs and errors before users get it. Reasons: it finds and removes defects early (cheaper to fix), and it confirms the software meets requirements and works on different devices and loads.
Answer: Continuous integration means developers merge their code changes into a shared central repository regularly (often several times a day), where it is built and tested automatically, so problems are found and fixed early.
Answer: Steps: identify risks, analyze their likelihood and impact, develop mitigation strategies, and monitor and review. Together they prevent surprises, protect the schedule and budget, and increase the chance of success.
Answer: A use case diagram shows the system's functions from the user's point of view – the actors and the use cases they perform – to capture functional requirements, understand user interactions and plan development and testing.
Answer: Both are UML behaviour diagrams. A sequence diagram shows messages passed between objects in time order; an activity diagram shows the flow of steps and decisions in a process.
Answer: In the Factory Pattern a factory method/class creates objects for the caller, who only says what kind of object it needs. When creating objects directly, the caller must know and call the exact class itself.
Answer: Start → enter name, e-mail, password → validate input → (invalid: show error, re-enter) → check if e-mail already exists → (yes: show message) → save user (password hashed) → send verification e-mail → show success → End.
Answer: Collect requirements as a list of user stories, plan short sprints (1–2 weeks), build and test a small working part in each sprint with continuous integration and TDD, show it to the client for feedback, and adjust the next sprint – repeat until release, then keep improving.
Answer: Actors: Customer, Bank Staff (and the Online Banking System boundary). Customer use cases: log in, view balance, view statement, transfer funds, pay bills, change password. Bank staff use cases: log in, open/close account, verify customers, approve loans, handle complaints, generate reports. Log in is shared (both include Authenticate).
Answer: Lifelines: Customer, App, Restaurant, Payment Service, Delivery Rider. Messages in order: select items → add to cart → place order → process payment → payment confirmed → send order to restaurant → order accepted → assign rider → food ready → pick up → deliver → confirm delivery to customer.
Answer: Tools help write, translate, test, debug and manage code faster and with fewer errors. Editors (Notepad++, VS Code) write code with highlighting; translators (Python interpreter, GCC compiler) turn code into machine language and report errors; debuggers (GDB, Visual Studio Debugger) find and fix bugs.
Exercises in Unit 1
- Exercise 1 solutions – Exercise 1: MCQs, short and long questions(19)