wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

Software Testing MCQs

Total questions: 59

Worksheet time: 30mins

Name
Class
Date
1.

Which principle of testing says defects are often concentrated in a few modules?

a)

Absence-of-errors fallacy

b)

Pesticide paradox

c)

Defect clustering

d)

Early testing

2.

Running the same test cases repeatedly will find fewer new bugs. This is called:

a)

Defect clustering

b)

Pesticide paradox

c)

Early testing

d)

Exhaustive testing

3.

Even if software is error-free, it may still fail to meet user needs. This refers to:

a)

Exhaustive testing

b)

Absence-of-errors fallacy

c)

Defect clustering

d)

Context-dependent principle

4.

Early testing is important because:

a)

Prevents regression

b)

Improves UI

c)

Fixing defects early is cheaper

d)

Increases complexity

5.

Which principle states exhaustive testing is impossible?

a)

Complete testing is not feasible

b)

Defect clustering

c)

Pesticide paradox

d)

Absence-of-errors fallacy

6.

Verification checks if the product is built ___, Validation checks if the right product is built.

a)

Incorrectly

b)

Correctly

c)

Slowly

d)

With bugs

7.

Which activity is part of validation?

a)

Code walkthrough

b)

User Acceptance Testing

c)

Static review

d)

Code inspection

8.

Which is part of verification?

a)

Reviews and walkthroughs

b)

Beta testing

c)

System testing

d)

Alpha testing

9.

Validation ensures:

a)

Product follows standards

b)

Product meets user requirements

c)

Code is fully covered

d)

Bugs are fixed

10.

Verification is usually done by:

a)

Developers and testers internally

b)

End-users

c)

Customers

d)

Operators

11.

Static testing means:

a)

Running code

b)

Reviewing without execution

c)

Beta testing

d)

Smoke testing

12.

Walkthroughs are usually led by:

a)

Moderator

b)

Author

c)

Recorder

d)

Reviewer

13.

Which role records defects during inspections?

a)

Moderator

b)

Recorder

c)

Reviewer

d)

Author

14.

Which is a formal static technique using checklists?

a)

Walkthrough

b)

Inspection

c)

Exploratory testing

d)

Regression

15.

Which of these is NOT a static testing technique?

a)

Review

b)

Walkthrough

c)

Regression testing

d)

Inspection

16.

Unit Testing focuses on:

a)

Individual modules

b)

Entire system

c)

User acceptance

d)

Integration

17.

Integration Testing focuses on:

a)

Individual functions

b)

Interaction between modules

c)

Database queries only

d)

Hardware testing

18.

System Testing ensures:

a)

End-to-end system functionality

b)

Only unit-level bugs

c)

Only UI responsiveness

d)

Only stress load

19.

Acceptance Testing validates:

a)

Code logic

b)

Load handling

c)

Customer requirements

d)

Regression defects

20.

Alpha testing is done at:

a)

Developer’s site by internal users

b)

Customer site

c)

Real-world users only

d)

Vendors

21.

Beta testing is done at:

a)

Developer site

b)

Customer environment by real users

c)

Design stage

d)

With stubs

22.

Equivalence Partitioning divides inputs into:

a)

Statements

b)

Classes expected to behave similarly

c)

Loops

d)

Branches

23.

Boundary Value Analysis tests:

a)

Random values

b)

Edge values of input ranges

c)

Midpoints only

d)

Paths

24.

Decision Table Testing is useful for:

a)

Simple inputs

b)

Multiple condition-based outcomes

c)

Loops

d)

Regression

25.

State Transition Testing is useful when:

a)

No states exist

b)

System behavior depends on past states

c)

Code is simple

d)

Only loops exist

26.

Error Guessing relies on:

a)

Decision tables

b)

Automated tools

c)

Tester’s intuition/experience

d)

Formal reviews

27.

Which is NOT a black-box technique?

a)

Equivalence Partitioning

b)

Boundary Value Analysis

c)

State Transition Testing

d)

Statement Coverage

28.

Boundary Value Analysis requires testing at:

a)

Just below, at, and just above boundaries

b)

Only valid inputs

c)

Only invalid inputs

d)

Middle range

29.

Decision Table Testing is especially strong for:

a)

GUI checks

b)

Business rules

c)

Loop testing

d)

Path testing

30.

Statement coverage ensures:

a)

Every line of code executes at least once

b)

Every condition is tested

c)

Every loop runs once

d)

All paths executed

31.

Branch coverage ensures:

a)

Each decision outcome (true/false) is executed

b)

All loops covered

c)

Only boundaries tested

d)

All inputs tested

32.

Path coverage ensures:

a)

Only simple paths

b)

All independent paths executed

c)

Only boundary paths

d)

Random paths

33.

Loop testing ensures:

a)

Branches tested

b)

Different loop iterations validated

c)

All paths

d)

Boundaries

34.

Which is strongest coverage criterion?

a)

Statement

b)

Branch

c)

Path

d)

Loop

35.

Which is NOT white-box?

a)

Branch coverage

b)

Statement coverage

c)

Path coverage

d)

Boundary value analysis

36.

Big Bang integration means:

a)

All modules combined and tested at once

b)

Top-down

c)

Bottom-up

d)

Regression only

37.

Top-down integration uses:

a)

Stubs

b)

Drivers

c)

Beta tests

d)

Scripts

38.

Bottom-up integration uses:

a)

Stubs

b)

Drivers

c)

Checklists

d)

Regression

39.

Main drawback of Big Bang approach is:

a)

Easier defect detection

b)

Hard to isolate bugs

c)

Early prototype available

d)

Saves cost

40.

Regression Testing ensures:

a)

Changes don’t break existing functionality

b)

Only new features tested

c)

Database tests

d)

Load tested

41.

Smoke Testing is used to:

a)

Check basic system stability quickly

b)

Perform stress tests

c)

Execute all cases

d)

Debug loops

42.

Stress Testing evaluates:

a)

System under extreme load

b)

User acceptance

c)

Code complexity

d)

Boundaries

43.

Ad-hoc Testing is done:

a)

With full planning

b)

Without formal plan

c)

Only automated

d)

Only by customers

44.

Exploratory Testing means:

a)

Simultaneous learning, designing, and executing tests

b)

Using regression

c)

Using path coverage

d)

Using stubs

45.

Compatibility Testing ensures:

a)

All modules integrate

b)

Code follows standards

c)

Software works on different platforms/browsers

d)

Regression only

46.

Acceptance testing is also called:

a)

Validation testing

b)

Verification testing

c)

Static testing

d)

Stress testing

47.

Alpha and Beta testing are types of:

a)

Regression

b)

Unit testing

c)

Acceptance testing

d)

Integration testing

48.

Cyclomatic complexity measures:

a)

Number of independent paths

b)

Lines of code

c)

Functions

d)

Defects

49.

Formula for cyclomatic complexity is:

a)

N - E + P

b)

E - N + 2P

c)

E + N - P

d)

N + P - E

50.

High cyclomatic complexity indicates:

a)

Hard-to-test code

b)

Easier maintenance

c)

Bug-free code

d)

Low defects

51.

Defect density =

a)

Defects per KLOC (thousand lines of code)

b)

Defects per module

c)

Defects per tester

d)

Defects per customer

52.

Defect turnaround time measures:

a)

Bug severity

b)

Time to fix a bug

c)

Density of bugs

d)

Cost of bug

53.

Which metric reflects test completeness?

a)

Defect turnaround

b)

Test coverage

c)

Defect density

d)

Cyclomatic complexity

54.

The V-Model shows:

a)

Testing activities mapped to development phases

b)

Only coding process

c)

Deployment only

d)

Maintenance

55.

Agile Testing principle is:

a)

Continuous testing during development

b)

Test after release

c)

Regression only

d)

Code-only focus

56.

ISO 9000 relates to:

a)

Quality management systems

b)

Functional testing

c)

Bug detection

d)

Regression

57.

CMMI Level 2 is:

a)

Repeatable process

b)

Initial

c)

Defined

d)

Optimizing

58.

CMMI Level 3 is:

a)

Repeatable

b)

Defined process

c)

Initial

d)

Managed

59.

CMMI Level 5 is:

a)

Repeatable

b)

Defined

c)

Managed

d)

Optimizing