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:

  1. A functional requirement
  2. Too technical
  3. Not measurable or verifiable
  4. 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:

  1. 8
  2. 4
  3. 3
  4. 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:

  1. Test log
  2. SDD only
  3. User manual
  4. 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:

  1. Adapter
  2. Singleton
  3. Observer
  4. 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:

  1. Avoidance
  2. Acceptance
  3. Transfer
  4. 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?

  1. Developers
  2. Scrum Master
  3. Product Owner
  4. 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:

  1. 12 defects per KLOC
  2. 3 defects per KLOC
  3. 0.3 defects per KLOC
  4. 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:

  1. Spiral
  2. Waterfall
  3. V-model
  4. 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:

  1. Milestone
  2. Sprint
  3. Epic
  4. 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:

  1. Budget ÷ duration
  2. Cost + time
  3. Probability × impact
  4. 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?

  1. 6
  2. 10
  3. 7
  4. 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:

  1. State machine diagram
  2. Class diagram
  3. Use case diagram
  4. 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:

  1. WIP (work-in-progress) limits
  2. Sprints
  3. Story points
  4. 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?

  1. 6 defects/KLOC
  2. 2000 defects/KLOC
  3. 5 defects/KLOC
  4. 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:

  1. Regression testing
  2. Smoke testing
  3. Load testing
  4. 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?

  1. 45 defects/KLOC
  2. 200 defects/KLOC
  3. 5 defects/KLOC
  4. 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:

  1. 3
  2. 2
  3. 16
  4. 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:

  1. Deploy to production
  2. Write documentation
  3. Write a failing test
  4. 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?

  1. 13
  2. 1
  3. 3
  4. 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:

  1. Scope creep
  2. Technical debt
  3. Cohesion
  4. 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:

  1. Milestone path only
  2. Critical path
  3. Shortest path
  4. 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:

  1. Generalisation only
  2. Association only
  3. «include»
  4. «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:

  1. High cohesion
  2. Low cohesion
  3. No interface
  4. 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:

  1. Corrective maintenance
  2. Adaptive maintenance
  3. Preventive maintenance
  4. 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:

  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

Previous Page 2 of 5 Next

Practise NSCT: Software Engineering MCQs

More Computer Science chapters