MCQs / Computer Science / NSCT: Software Engineering

NSCT: Software Engineering MCQs — Computer Science (page 4)

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.

76. A human mistake that introduces a defect in code, which later causes wrong behaviour, follows the chain:

  1. Fault → failure → error
  2. Error → fault → failure
  3. Bug → test → release
  4. Failure → error → fault

Answer: B) Error → fault → failure

Explanation: The failure is what users observe. Lesson 5.5 · Software Engineering

Discuss this question

77. The Waterfall model is best suited when:

  1. The customer is unavailable for feedback forever
  2. Requirements are well understood and stable
  3. Requirements change every week
  4. The team is building a quick prototype

Answer: B) Requirements are well understood and stable

Explanation: Waterfall handles change poorly. Lesson 5.1 · Software Engineering

Discuss this question

78. RAD (Rapid Application Development) is suitable when:

  1. Hardware must be designed first
  2. There is no customer involvement
  3. The system is huge and safety-critical
  4. Time is short and requirements are well modularised

Answer: D) Time is short and requirements are well modularised

Explanation: RAD relies on prototyping and reuse. Lesson 5.1 · Software Engineering

Discuss this question

79. A form accepts a quantity from 1 to 10 (inclusive). Using boundary value analysis, which set of test values is best?

  1. 0, 1, 10, 11
  2. 1, 10
  3. 5
  4. 2, 9

Answer: A) 0, 1, 10, 11

Explanation: Test just below, on, and just above each boundary. Lesson 5.5 · Software Engineering

Discuss this question

80. A major risk of the prototyping model is that:

  1. Users give feedback
  2. Requirements become clearer
  3. Development starts early
  4. Customers may treat the throw-away prototype as the final product

Answer: D) Customers may treat the throw-away prototype as the final product

Explanation: Quick-and-dirty prototypes are not built for production. Lesson 5.1 · Software Engineering

Discuss this question

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

  1. 5
  2. 9
  3. 7
  4. 35

Answer: C) 7

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

Discuss this question

82. A risk has a probability of 0.25 and an impact of Rs. 400,000. What is its risk exposure?

  1. Rs. 200,000
  2. Rs. 100,000
  3. Rs. 1,600,000
  4. Rs. 400,000

Answer: B) Rs. 100,000

Explanation: Risk exposure = probability × impact. Lesson 5.5 · Software Engineering

Discuss this question

83. Project tasks: A (2 days); B (6 days, after A); C (3 days, after A); D (4 days, after C); E (2 days, after B & D). Which is the critical path?

  1. E–D–C–B–A
  2. A–C–D–E
  3. A–B–E
  4. A–B–C–D–E

Answer: B) A–C–D–E

Explanation: It is the longest path (11 days). Lesson 5.5 · Software Engineering

Discuss this question

84. Which model makes risk analysis a central activity in every cycle?

  1. Spiral model
  2. Code-and-fix
  3. Big-bang
  4. Waterfall

Answer: A) Spiral model

Explanation: Boehm's spiral has a risk-analysis quadrant in each loop. Lesson 5.1 · Software Engineering

Discuss this question

85. Being able to trace each requirement to its design, code and test cases is called:

  1. Coupling
  2. Elicitation
  3. Traceability
  4. Cohesion

Answer: C) Traceability

Explanation: It supports change impact analysis. Lesson 5.3 · Software Engineering

Discuss this question

86. A form accepts a loan amount from 1000 to 50000 (inclusive). Using boundary value analysis, which set of test values is best?

  1. 1000, 50000
  2. 1001, 49999
  3. 999, 1000, 50000, 50001
  4. 25500

Answer: C) 999, 1000, 50000, 50001

Explanation: Test just below, on, and just above each boundary. Lesson 5.5 · Software Engineering

Discuss this question

87. "The system shall generate a monthly sales report" is a:

  1. Functional requirement
  2. Test case
  3. Non-functional requirement
  4. Design constraint

Answer: A) Functional requirement

Explanation: It states what the system must do. Lesson 5.3 · Software Engineering

Discuss this question

88. 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). Which is the critical path?

  1. A–B–C–D–E
  2. A–C–E
  3. E–D–C–B–A
  4. A–B–D–E

Answer: B) A–C–E

Explanation: It is the longest path (12 days). Lesson 5.5 · Software Engineering

Discuss this question

89. In UML, a filled diamond on an association line represents:

  1. Inheritance
  2. Dependency
  3. Aggregation
  4. Composition

Answer: D) Composition

Explanation: The part cannot exist without the whole. Lesson 5.3 · Software Engineering

Discuss this question

90. "The page must load within 2 seconds" is a:

  1. Business rule
  2. Functional requirement
  3. Non-functional (performance) requirement
  4. User story only

Answer: C) Non-functional (performance) requirement

Explanation: It describes how well the system performs. Lesson 5.3 · Software Engineering

Discuss this question

91. A Scrum team completed 100 story points in 4 sprints. The backlog has 200 points in total. At the same velocity, how many more sprints are needed?

  1. 4
  2. 8
  3. 3
  4. 5

Answer: A) 4

Explanation: Velocity = 100 ÷ 4 = 25; remaining 100 ÷ 25 → 4 sprints. Lesson 5.2 · Software Engineering

Discuss this question

92. A module of 15,000 lines of code has 30 known defects. What is its defect density?

  1. 30 defects/KLOC
  2. 20 defects/KLOC
  3. 2 defects/KLOC
  4. 500 defects/KLOC

Answer: C) 2 defects/KLOC

Explanation: 30 ÷ 15 KLOC = 2. Lesson 5.5 · Software Engineering

Discuss this question

93. Beta testing is performed:

  1. Before any code is written
  2. By real users in their own environment
  3. By developers at their desks
  4. Only by automated tools

Answer: B) By real users in their own environment

Explanation: Alpha testing is done at the developer's site. Lesson 5.5 · Software Engineering

Discuss this question

94. The meeting where the team reflects on how to improve its own process is the:

  1. Sprint review
  2. Sprint retrospective
  3. Sprint planning
  4. Daily Scrum

Answer: B) Sprint retrospective

Explanation: Review demos the product; retrospective improves the process. Lesson 5.2 · Software Engineering

Discuss this question

95. The shared checklist that defines when a backlog item is finished is the:

  1. Product vision
  2. Burndown chart
  3. Definition of Done
  4. Risk plan

Answer: C) Definition of Done

Explanation: It ensures consistent quality. Lesson 5.2 · Software Engineering

Discuss this question

96. A three-tier architecture consists of:

  1. Presentation, business logic and data tiers
  2. HTML, CSS and JavaScript
  3. Client, cable and server
  4. Compiler, linker and loader

Answer: A) Presentation, business logic and data tiers

Explanation: Each tier can be scaled separately. Lesson 5.4 · Software Engineering

Discuss this question

97. Project tasks: A (5 days); B (3 days); C (4 days, after A); D (7 days, after B); E (2 days, after C & D). Which is the critical path?

  1. A–B–C–D–E
  2. A–C–E
  3. B–D–E
  4. E–D–C–B–A

Answer: C) B–D–E

Explanation: It is the longest path (12 days). Lesson 5.5 · Software Engineering

Discuss this question

98. A module of 2,000 lines of code has 8 known defects. What is its defect density?

  1. 40 defects/KLOC
  2. 8 defects/KLOC
  3. 4 defects/KLOC
  4. 250 defects/KLOC

Answer: C) 4 defects/KLOC

Explanation: 8 ÷ 2 KLOC = 4. Lesson 5.5 · Software Engineering

Discuss this question

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

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

Answer: D) 12 days

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

Discuss this question

100. A UML diagram showing classes, attributes, operations and relationships is a:

  1. Use case diagram
  2. Class diagram
  3. Timing diagram
  4. Activity diagram

Answer: B) Class diagram

Explanation: It shows the static structure. Lesson 5.3 · Software Engineering

Discuss this question

Previous Page 4 of 5 Next

Practise NSCT: Software Engineering MCQs

More Computer Science chapters