MCQs / Computer Science / NSCT: Software Engineering
NSCT: Software Engineering MCQs — Computer Science (page 5) 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.
101. A module of 5,000 lines of code has 25 known defects. What is its defect density? 25 defects/KLOC 5 defects/KLOC 200 defects/KLOC 50 defects/KLOC Answer: B) 5 defects/KLOC
Explanation: 25 ÷ 5 KLOC = 5. Lesson 5.5 · Software Engineering
Discuss this question
102. A control-flow graph has 14 edges and 10 nodes. What is its cyclomatic complexity? 6 4 8 24 Answer: A) 6
Explanation: V(G) = E − N + 2 = 14 − 10 + 2 = 6. Lesson 5.5 · Software Engineering
Discuss this question
103. A risk has a probability of 0.5 and an impact of Rs. 80,000. What is its risk exposure? Rs. 80,000 Rs. 160,000 Rs. 50,000 Rs. 40,000 Answer: D) Rs. 40,000
Explanation: Risk exposure = probability × impact. Lesson 5.5 · Software Engineering
Discuss this question
104. A control-flow graph has 12 edges and 9 nodes. What is its cyclomatic complexity? 3 5 21 7 Answer: B) 5
Explanation: V(G) = E − N + 2 = 12 − 9 + 2 = 5. Lesson 5.5 · Software Engineering
Discuss this question
105. A form accepts a marks from 0 to 100 (inclusive). Using boundary value analysis, which set of test values is best? 0, 100 1, 99 -1, 0, 100, 101 50 Answer: C) -1, 0, 100, 101
Explanation: Test just below, on, and just above each boundary. Lesson 5.5 · Software Engineering
Discuss this question
106. A risk has a probability of 0.3 and an impact of Rs. 200,000. What is its risk exposure? Rs. 120,000 Rs. 666,666 Rs. 60,000 Rs. 200,000 Answer: C) Rs. 60,000
Explanation: Risk exposure = probability × impact. Lesson 5.5 · Software Engineering
Discuss this question
107. A compiler that passes source code through lexer, parser, optimiser and code generator is an example of: Peer-to-peer Blackboard Microservices Pipe-and-filter architecture Answer: D) Pipe-and-filter architecture
Explanation: Data flows through a chain of processing stages. Lesson 5.4 · Software Engineering
Discuss this question
108. The "O" in SOLID stands for the principle that classes should be: Owned by one developer Optimised for speed Object oriented only Open for extension but closed for modification Answer: D) Open for extension but closed for modification
Explanation: Add behaviour without changing tested code. Lesson 5.4 · Software Engineering
Discuss this question
109. A valid input range is 1 to 100. Boundary value analysis would test: Random values 50 only 1 and 100 only 0, 1, 100, 101 Answer: D) 0, 1, 100, 101
Explanation: Errors often occur at the edges. Lesson 5.5 · Software Engineering
Discuss this question
110. Dividing inputs into groups expected to behave the same and testing one value from each is: Equivalence partitioning Boundary value analysis Mutation testing Path testing Answer: A) Equivalence partitioning
Explanation: It reduces the number of test cases. Lesson 5.5 · Software Engineering
Discuss this question
111. Testing a website with 10,000 simultaneous users to see if it slows down is: Regression testing Usability testing Unit testing Load testing Answer: D) Load testing
Explanation: Stress testing goes beyond normal limits. Lesson 5.5 · Software Engineering
Discuss this question
112. COCOMO is used to estimate: Database size Software effort and cost Screen resolution Network speed Answer: B) Software effort and cost
Explanation: It uses lines of code (KLOC). Lesson 5.5 · Software Engineering
Discuss this question
113. A hospital needs safety-critical software with strict documentation and validation at every stage. The most suitable model is: Big-bang V-model Extreme prototyping only Code-and-fix Answer: B) V-model
Explanation: The V-model emphasises verification and validation. Lesson 5.1 · Software Engineering
Discuss this question
114. Halfway through a sprint, a stakeholder demands a new urgent feature. In Scrum, the usual response is: Developers drop current work immediately The sprint is extended to 8 weeks The Scrum Master codes it personally The Product Owner adds it to the product backlog for a future sprint Answer: D) The Product Owner adds it to the product backlog for a future sprint
Explanation: Sprint scope is protected; the PO decides priorities. Lesson 5.2 · Software Engineering
Discuss this question
115. The correct order of SDLC phases is: Coding, testing, requirements, design Design, requirements, testing, coding Testing, coding, design, deployment Requirements, design, implementation, testing, deployment, maintenance Answer: D) Requirements, design, implementation, testing, deployment, maintenance
Explanation: Each phase feeds the next. Lesson 5.1 · Software Engineering
Discuss this question
116. A bar chart showing tasks against time with their start and end dates is a: Use case diagram Pie chart Gantt chart Histogram of defects Answer: C) Gantt chart
Explanation: Used for project scheduling. Lesson 5.5 · Software Engineering
Discuss this question
117. A function contains 2 independent decision points (if/while). What is its cyclomatic complexity? 3 2 4 5 Answer: A) 3
Explanation: V(G) = decisions + 1 = 3. Lesson 5.5 · Software Engineering
Discuss this question
Previous Page 5 of 5
Practise NSCT: Software Engineering MCQs
More Computer Science chapters