Cyclomatic complexity estimates how many?
A Requirements sources
B User roles
C Independent paths
D Release versions
Answer: C. Independent paths. Cyclomatic complexity measures the number of linearly independent paths through a control-flow graph.
For a connected flow graph, which formula is used?
A E − N + 2P
B E + N − P
C N − E + P
D E × N × 2P
Answer: A. E − N + 2P. The standard formula is E − N + 2P, where P is the number of connected components.
Branch coverage requires executing what?
A Every input value
B Every user story
C Every design pattern
D Each decision outcome
Answer: D. Each decision outcome. Branch coverage requires each possible outcome of each decision to be exercised.
Decision-table testing checks which combinations?
A Developers and stakeholders
B Conditions and resulting actions
C Files and directories
D Layers and services
Answer: B. Conditions and resulting actions. Decision tables organize combinations of conditions and the actions they imply.
During isolated tests, a mock object can do what?
A Compile the entire system
B Replace all requirements
C Substitute a dependency
D Publish the release
Answer: C. Substitute a dependency. A mock stands in for a dependency so interactions can be tested in isolation.
Microservice architecture often enables what?
A One shared release date
B No network communication
C One process for all services
D Independent deployment
Answer: D. Independent deployment. Separately deployable services can be released independently when their contracts permit it.
Layered architecture groups software by what?
A Responsibility
B Team seniority
C Release date
D Test result
Answer: A. Responsibility. Layers organize software around related responsibilities, such as presentation or data access.
Client-server architecture separates which roles?
A Designers and testers
B Requesters and providers
C Modules and classes
D Branches and tags
Answer: B. Requesters and providers. Clients request services and servers provide them over a communication channel.
High cohesion usually makes what easier?
A Increasing global state
B Removing all tests
C Combining unrelated modules
D Changing related behavior
Answer: D. Changing related behavior. A cohesive module keeps related responsibilities together, making focused changes easier.
According to dependency inversion, modules should depend on?
A Concrete details
B Global variables
C Abstractions
D Release schedules
Answer: C. Abstractions. The principle directs high-level and low-level modules to depend on abstractions.
Requirements validation asks which question?
A Do they meet stakeholder needs?
B Does code compile fastest?
C Are all files formatted?
D Is every task estimated?
Answer: A. Do they meet stakeholder needs?. Validation checks whether requirements reflect stakeholder needs and intended use.
In project risk analysis, exposure is commonly?
A Cost plus duration
B Probability times impact
C Scope times quality
D People divided by tasks
Answer: B. Probability times impact. A simple risk-exposure estimate multiplies probability by the consequence or impact.
Under CPM, tasks on the critical path have what total float?
A One day
B Maximum float
C Zero
D Unknown by definition
Answer: C. Zero. A critical-path activity has zero total float under the calculated schedule.
PERT expected duration uses which formula?
A (O+M+P)/3
B (2O+2P)/4
C (O×M×P)/6
D (O+4M+P)/6
Answer: D. (O+4M+P)/6. PERT weights the most likely estimate four times in its three-point expected-time formula.
In earned-value analysis, schedule variance equals?
A EV − PV
B AC − EV
C PV − AC
D EV + PV
Answer: A. EV − PV. Schedule variance is earned value minus planned value.
Function-point estimation focuses on what?
A Lines of source code
B User-visible functionality
C Number of developers
D Compiler warnings
Answer: B. User-visible functionality. Function points estimate software size from user-visible functions rather than source-line counts.
Approved configuration baselines serve as what?
A Uncontrolled draft
B Test execution log
C Reference configuration
D Staffing forecast
Answer: C. Reference configuration. A baseline records an approved configuration used as a reference for controlled change.
Change control is used to do what?
A Compile every branch
B Assign user accounts
C Write product code
D Evaluate proposed changes
Answer: D. Evaluate proposed changes. Change control evaluates and records proposed changes before they are incorporated.
Reproducible builds depend on what?
A Controlled build inputs
B Unrecorded local edits
C Changing tool versions
D Different source each time
Answer: A. Controlled build inputs. Controlled source, tools, and dependencies help a build reproduce the same output.
In Git, a release tag identifies what?
A Uncommitted files
B Specific commit
C A future requirement
D A user account
Answer: B. Specific commit. A tag labels a specific commit, often to identify a release.
Static analysis can find issues without what?
A Source code
B A build configuration
C Program execution
D Any requirements
Answer: C. Program execution. Static analysis examines artifacts without executing the program.
Statement coverage is the ratio of?
A Passed tests / total tests
B Branches / decisions
C Assertions / requirements
D Executed / total statements
Answer: D. Executed / total statements. Statement coverage counts executable statements that tests execute relative to the total.
Mutation testing evaluates what?
A Test-suite fault detection
B Project budget accuracy
C User-interface consistency
D Developer productivity
Answer: A. Test-suite fault detection. Mutation testing changes code deliberately and checks whether the test suite detects the changes.
Availability is often calculated as?
A Failures / requests
B Uptime / total time
C Tests / requirements
D Latency / throughput
Answer: B. Uptime / total time. Availability is uptime divided by total observed time, usually uptime plus downtime.
With MTBF 400 hours and MTTR 4 hours, availability is near?
A 90%
B 95%
C 99%
D 99.9%
Answer: C. 99%. Using MTBF/(MTBF+MTTR), 400/404 is about 99.0%.