MCQs / Computer Science / NSCT: Software Engineering

NSCT: Software Engineering MCQs — Computer Science

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.

1. Testing performed by the customer to decide whether to accept the system is:

  1. White-box testing
  2. Acceptance testing
  3. Unit testing
  4. Integration testing

Answer: B) Acceptance testing

Explanation: Also called UAT. Lesson 5.5 · Software Engineering

Discuss this question

2. Project tasks: A (4 days); B (2 days, after A); C (7 days, after A); D (3 days, after B); E (1 day, after C & D). What is the minimum project duration?

  1. 12 days
  2. 15 days
  3. 17 days
  4. 10 days

Answer: A) 12 days

Explanation: The critical path A–C–E takes 12 days. Lesson 5.5 · Software Engineering

Discuss this question

3. Re-running tests after a change to make sure old features still work is:

  1. Regression testing
  2. Smoke testing
  3. Alpha testing
  4. Stress testing

Answer: A) Regression testing

Explanation: It catches side effects of changes. Lesson 5.5 · Software Engineering

Discuss this question

4. A UML diagram showing actors and their goals with the system is a:

  1. Class diagram
  2. Use case diagram
  3. Deployment diagram
  4. Sequence diagram

Answer: B) Use case diagram

Explanation: It captures functional requirements. Lesson 5.3 · Software Engineering

Discuss this question

5. Unlike hardware, software:

  1. Cannot have defects
  2. Wears out physically
  3. Does not wear out but deteriorates due to changes
  4. Is manufactured in factories

Answer: C) Does not wear out but deteriorates due to changes

Explanation: Changes introduce side effects over time. Lesson 5.1 · Software Engineering

Discuss this question

6. A burndown chart shows:

  1. Remaining work over time in a sprint
  2. Server CPU usage
  3. Budget spent per month only
  4. Number of team members

Answer: A) Remaining work over time in a sprint

Explanation: Ideal vs actual remaining work. Lesson 5.2 · Software Engineering

Discuss this question

7. The pattern in which subscribers are notified automatically when an object changes is:

  1. Facade
  2. Observer
  3. Builder
  4. Singleton

Answer: B) Observer

Explanation: Event listeners follow the observer pattern. Lesson 5.4 · Software Engineering

Discuss this question

8. Delivering a system in parts, each adding new functionality, is the:

  1. Incremental model
  2. V-model
  3. Big-bang model
  4. Waterfall model

Answer: A) Incremental model

Explanation: Users get core features early. Lesson 5.1 · Software Engineering

Discuss this question

9. A function contains 7 independent decision points (if/while). What is its cyclomatic complexity?

  1. 8
  2. 14
  3. 9
  4. 7

Answer: A) 8

Explanation: V(G) = decisions + 1 = 8. Lesson 5.5 · Software Engineering

Discuss this question

10. A quick, rough model of the system shown to users to clarify requirements is a:

  1. Prototype
  2. Baseline
  3. Use case
  4. Release candidate

Answer: A) Prototype

Explanation: Prototyping reduces requirement misunderstandings. Lesson 5.1 · Software Engineering

Discuss this question

11. CMMI measures an organisation's:

  1. Server uptime
  2. Code size
  3. Process maturity (levels 1–5)
  4. Network bandwidth

Answer: C) Process maturity (levels 1–5)

Explanation: Level 5 = optimising. Lesson 5.5 · Software Engineering

Discuss this question

12. Choosing between different sorting algorithms at run time by passing an object is the:

  1. Singleton pattern
  2. Adapter pattern
  3. Composite pattern
  4. Strategy pattern

Answer: D) Strategy pattern

Explanation: Strategies are interchangeable algorithms. Lesson 5.4 · Software Engineering

Discuss this question

13. A control-flow graph has 15 edges and 11 nodes. What is its cyclomatic complexity?

  1. 8
  2. 6
  3. 26
  4. 4

Answer: B) 6

Explanation: V(G) = E − N + 2 = 15 − 11 + 2 = 6. Lesson 5.5 · Software Engineering

Discuss this question

14. Testing individual functions or methods in isolation is:

  1. Unit testing
  2. System testing
  3. Acceptance testing
  4. Beta testing

Answer: A) Unit testing

Explanation: The smallest testable parts. Lesson 5.5 · Software Engineering

Discuss this question

15. Static testing includes:

  1. Load testing
  2. Beta testing
  3. Executing unit tests
  4. Code reviews and inspections without running the code

Answer: D) Code reviews and inspections without running the code

Explanation: Defects are found by examining artefacts. Lesson 5.5 · Software Engineering

Discuss this question

16. In the MVC pattern, the component that holds data and business rules is the:

  1. Model
  2. View
  3. Controller
  4. Router

Answer: A) Model

Explanation: The view displays; the controller handles input. Lesson 5.4 · Software Engineering

Discuss this question

17. A control-flow graph has 10 edges and 8 nodes. What is its cyclomatic complexity?

  1. 18
  2. 6
  3. 2
  4. 4

Answer: D) 4

Explanation: V(G) = E − N + 2 = 10 − 8 + 2 = 4. Lesson 5.5 · Software Engineering

Discuss this question

18. Testing based only on requirements, without looking at code, is:

  1. Code review
  2. Static analysis
  3. White-box testing
  4. Black-box testing

Answer: D) Black-box testing

Explanation: The tester checks inputs and outputs. Lesson 5.5 · Software Engineering

Discuss this question

19. "Are we building the product right?" describes:

  1. Verification
  2. Deployment
  3. Validation
  4. Maintenance

Answer: A) Verification

Explanation: Validation asks "Are we building the right product?" Lesson 5.5 · Software Engineering

Discuss this question

20. A control-flow graph has 11 edges and 10 nodes. What is its cyclomatic complexity?

  1. 3
  2. 21
  3. 1
  4. 5

Answer: A) 3

Explanation: V(G) = E − N + 2 = 11 − 10 + 2 = 3. Lesson 5.5 · Software Engineering

Discuss this question

21. Agile development prefers:

  1. Processes over people
  2. Working software over comprehensive documentation
  3. Following a plan over responding to change
  4. Contracts over collaboration

Answer: B) Working software over comprehensive documentation

Explanation: One of the four Agile Manifesto values. Lesson 5.2 · Software Engineering

Discuss this question

22. A Scrum team completed 60 story points in 3 sprints. The backlog has 120 points in total. At the same velocity, how many more sprints are needed?

  1. 4
  2. 2
  3. 6
  4. 3

Answer: D) 3

Explanation: Velocity = 60 ÷ 3 = 20; remaining 60 ÷ 20 → 3 sprints. Lesson 5.2 · Software Engineering

Discuss this question

23. The 15-minute daily meeting in Scrum is the:

  1. Retrospective
  2. Sprint review
  3. Daily Scrum (stand-up)
  4. Backlog grooming

Answer: C) Daily Scrum (stand-up)

Explanation: The team syncs on progress and blockers. Lesson 5.2 · Software Engineering

Discuss this question

24. The V-model pairs each development phase with a:

  1. Marketing phase
  2. Maintenance release
  3. Corresponding testing phase
  4. Coding sprint

Answer: C) Corresponding testing phase

Explanation: e.g. requirements ↔ acceptance testing. Lesson 5.1 · Software Engineering

Discuss this question

25. Replacing a parent class object with a child class object without breaking the program follows the:

  1. Single Responsibility Principle
  2. Interface Segregation Principle
  3. Liskov Substitution Principle
  4. DRY principle

Answer: C) Liskov Substitution Principle

Explanation: Subtypes must honour the parent's contract. Lesson 5.4 · Software Engineering

Discuss this question

Page 1 of 5 Next

Practise NSCT: Software Engineering MCQs

More Computer Science chapters