MCQs / Computer Science / NSCT: Software Engineering
NSCT: Software Engineering MCQs — Computer Science (page 2) 117 multiple-choice questions on NSCT: Software Engineering from Computer Science, each with the correct answer and, where available, a teacher's explanation. Read through them to revise the chapter, then practise the same questions one by one to test yourself.
26. A requirement "The system should be user-friendly" is poor because it is: A functional requirement Too technical Not measurable or verifiable Too short Answer: C) Not measurable or verifiable
Explanation: Good requirements can be tested. Lesson 5.3 · Software Engineering
Discuss this question
27. A function contains 3 independent if statements. Its cyclomatic complexity is: 8 4 3 1 Answer: B) 4
Explanation: Number of decisions + 1. Lesson 5.5 · Software Engineering
Discuss this question
28. The document that records all agreed software requirements is the: Test log SDD only User manual SRS (Software Requirements Specification) Answer: D) SRS (Software Requirements Specification)
Explanation: IEEE 830 describes its structure. Lesson 5.3 · Software Engineering
Discuss this question
29. A design pattern that ensures a class has only one instance is: Adapter Singleton Observer Factory Answer: B) Singleton
Explanation: Often used for configuration or logging. Lesson 5.4 · Software Engineering
Discuss this question
30. Buying insurance to cover losses from a project risk is an example of risk: Avoidance Acceptance Transfer Mitigation Answer: C) Transfer
Explanation: The financial impact is moved to a third party. Lesson 5.5 · Software Engineering
Discuss this question
31. Who is responsible for prioritising the product backlog in Scrum? Developers Scrum Master Product Owner Project sponsor Answer: C) Product Owner
Explanation: The Product Owner maximises product value. Lesson 5.2 · Software Engineering
Discuss this question
32. A module has 12 defects in 4,000 lines of code. Its defect density is: 12 defects per KLOC 3 defects per KLOC 0.3 defects per KLOC 48 defects per KLOC Answer: B) 3 defects per KLOC
Explanation: 12 ÷ 4 KLOC = 3. Lesson 5.5 · Software Engineering
Discuss this question
33. Pair programming and test-driven development are key practices of: Spiral Waterfall V-model Extreme Programming (XP) Answer: D) Extreme Programming (XP)
Explanation: XP emphasises technical excellence. Lesson 5.2 · Software Engineering
Discuss this question
34. In Scrum, a fixed time-box in which a usable increment is produced is a: Milestone Sprint Epic Release train Answer: B) Sprint
Explanation: Sprints usually last 1–4 weeks. Lesson 5.2 · Software Engineering
Discuss this question
35. Risk exposure is usually calculated as: Budget ÷ duration Cost + time Probability × impact Number of risks × team size Answer: C) Probability × impact
Explanation: High-exposure risks are handled first. Lesson 5.5 · Software Engineering
Discuss this question
36. A function contains 5 independent decision points (if/while). What is its cyclomatic complexity? 6 10 7 5 Answer: A) 6
Explanation: V(G) = decisions + 1 = 6. Lesson 5.5 · Software Engineering
Discuss this question
37. The life cycle of an Order (placed → paid → shipped → delivered) is best modelled with a: State machine diagram Class diagram Use case diagram Deployment diagram Answer: A) State machine diagram
Explanation: It shows states and transitions of one object. Lesson 5.3 · Software Engineering
Discuss this question
38. Kanban limits the number of tasks in each column using: WIP (work-in-progress) limits Sprints Story points Gantt charts Answer: A) WIP (work-in-progress) limits
Explanation: WIP limits expose bottlenecks. Lesson 5.2 · Software Engineering
Discuss this question
39. A module of 12,000 lines of code has 6 known defects. What is its defect density? 6 defects/KLOC 2000 defects/KLOC 5 defects/KLOC 0.5 defects/KLOC Answer: D) 0.5 defects/KLOC
Explanation: 6 ÷ 12 KLOC = 0.5. Lesson 5.5 · Software Engineering
Discuss this question
40. A quick test to check that a new build's most important functions work before deeper testing is: Regression testing Smoke testing Load testing Acceptance testing Answer: B) Smoke testing
Explanation: If the smoke test fails, the build is rejected. Lesson 5.5 · Software Engineering
Discuss this question
41. A module of 9,000 lines of code has 45 known defects. What is its defect density? 45 defects/KLOC 200 defects/KLOC 5 defects/KLOC 50 defects/KLOC Answer: C) 5 defects/KLOC
Explanation: 45 ÷ 9 KLOC = 5. Lesson 5.5 · Software Engineering
Discuss this question
42. A program's control-flow graph has 9 edges and 7 nodes. Its cyclomatic complexity is: 3 2 16 4 Answer: D) 4
Explanation: V(G) = E − N + 2 = 9 − 7 + 2 = 4. Lesson 5.5 · Software Engineering
Discuss this question
43. In test-driven development, the first step is: Deploy to production Write documentation Write a failing test Write the full code Answer: C) Write a failing test
Explanation: Red → green → refactor. Lesson 5.5 · Software Engineering
Discuss this question
44. A control-flow graph has 7 edges and 6 nodes. What is its cyclomatic complexity? 13 1 3 5 Answer: C) 3
Explanation: V(G) = E − N + 2 = 7 − 6 + 2 = 3. Lesson 5.5 · Software Engineering
Discuss this question
45. Shortcuts in code that make future changes harder and must be "paid back" later are called: Scope creep Technical debt Cohesion Velocity Answer: B) Technical debt
Explanation: Refactoring repays technical debt. Lesson 5.4 · Software Engineering
Discuss this question
46. The longest path through a project network, which determines the minimum project duration, is the: Milestone path only Critical path Shortest path Gantt bar Answer: B) Critical path
Explanation: Any delay on it delays the project. Lesson 5.5 · Software Engineering
Discuss this question
47. In a use case diagram, "Login" is always performed as part of "Place Order". The relationship is: Generalisation only Association only «include» «extend» Answer: C) «include»
Explanation: Include = mandatory sub-behaviour. Lesson 5.3 · Software Engineering
Discuss this question
48. A module that performs a single, well-defined task has: High cohesion Low cohesion No interface High coupling Answer: A) High cohesion
Explanation: Aim for high cohesion and low coupling. Lesson 5.4 · Software Engineering
Discuss this question
49. Updating software to run on a new version of Android is: Corrective maintenance Adaptive maintenance Preventive maintenance Perfective maintenance Answer: B) Adaptive maintenance
Explanation: It adapts to a changed environment. Lesson 5.5 · Software Engineering
Discuss this question
50. Replacing a parent class object with a child class object without breaking the program follows the: Single Responsibility Principle Interface Segregation Principle Liskov Substitution Principle DRY principle Answer: C) Liskov Substitution Principle
Explanation: Subtypes must honour the parent's contract. Lesson 5.4 · Software Engineering
Discuss this question
Previous Page 2 of 5 Next
Practise NSCT: Software Engineering MCQs
More Computer Science chapters