Software Engineering MCQs (Set-3)

Cyclomatic complexity estimates how many?

A Requirements sources
B User roles
C Independent paths
D Release versions

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

Branch coverage requires executing what?

A Every input value
B Every user story
C Every design pattern
D Each decision outcome

Decision-table testing checks which combinations?

A Developers and stakeholders
B Conditions and resulting actions
C Files and directories
D Layers and services

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

Microservice architecture often enables what?

A One shared release date
B No network communication
C One process for all services
D Independent deployment

Layered architecture groups software by what?

A Responsibility
B Team seniority
C Release date
D Test result

Client-server architecture separates which roles?

A Designers and testers
B Requesters and providers
C Modules and classes
D Branches and tags

High cohesion usually makes what easier?

A Increasing global state
B Removing all tests
C Combining unrelated modules
D Changing related behavior

According to dependency inversion, modules should depend on?

A Concrete details
B Global variables
C Abstractions
D Release schedules

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?

In project risk analysis, exposure is commonly?

A Cost plus duration
B Probability times impact
C Scope times quality
D People divided by tasks

Under CPM, tasks on the critical path have what total float?

A One day
B Maximum float
C Zero
D Unknown by definition

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

In earned-value analysis, schedule variance equals?

A EV − PV
B AC − EV
C PV − AC
D EV + PV

Function-point estimation focuses on what?

A Lines of source code
B User-visible functionality
C Number of developers
D Compiler warnings

Approved configuration baselines serve as what?

A Uncontrolled draft
B Test execution log
C Reference configuration
D Staffing forecast

Change control is used to do what?

A Compile every branch
B Assign user accounts
C Write product code
D Evaluate proposed changes

Reproducible builds depend on what?

A Controlled build inputs
B Unrecorded local edits
C Changing tool versions
D Different source each time

In Git, a release tag identifies what?

A Uncommitted files
B Specific commit
C A future requirement
D A user account

Static analysis can find issues without what?

A Source code
B A build configuration
C Program execution
D Any requirements

Statement coverage is the ratio of?

A Passed tests / total tests
B Branches / decisions
C Assertions / requirements
D Executed / total statements

Mutation testing evaluates what?

A Test-suite fault detection
B Project budget accuracy
C User-interface consistency
D Developer productivity

Availability is often calculated as?

A Failures / requests
B Uptime / total time
C Tests / requirements
D Latency / throughput

With MTBF 400 hours and MTTR 4 hours, availability is near?

A 90%
B 95%
C 99%
D 99.9%