Loading, please wait ...
Open its course - Software Quality Engineering

Unit testing

Topic Questions:
35
MCQs T/F FiB SQ
12
12
0
11
11
0
12
12
0
0
0
0
Question Type Legends

Easy

Medium

Difficult

Multiple Choice Questions for Unit testing

  • 1 According to the psychological principles of testing, who should perform the 'debugging' (pinpointing and correcting faults) of a unit?
    1. The original programmer who wrote the module
    2. A peer programmer who did not write the module
    3. The independent SQA unit head
    4. The moderator of the code inspection team

  • 2 In unit testing, what is the primary function of a 'driver' module?
    1. To represent the subordinate modules called by the unit under test
    2. To record errors found in the Software Test Report (STR)
    3. To transmit values/test cases to the module under test and display the results
    4. To ensure the code complies with standard coding style and instructions

  • 3 Who is generally responsible for organizing and carrying out unit testing?
    1. The customer's quality assurance team
    2. The software development team
    3. An independent external testing organization
    4. The project's end users during the run-in period

  • 4 Why is unit testing considered to be 'largely white-box oriented'?
    1. Because it ignores the internal logic and focuses only on external inputs
    2. Because it is performed by an independent testing agency rather than the developers
    3. Because as entities become larger (like whole programs), white-box testing becomes less feasible
    4. Because it is exclusively derived from user requirements without looking at code

  • 5 In non-incremental (big-bang) unit testing, what is the role of a 'stub' module?
    1. To transmit test case values to the module under test
    2. To provide a framework for generating random input samples
    3. To simulate the function of a module that is called by the module under test
    4. To display and compare actual results with expected results

  • 6 What two types of information are required for designing effective unit test cases?
    1. User manuals and project budgets
    2. Hardware configurations and network connectivity logs
    3. The module's source code and its functional or interface specification
    4. Customer satisfaction surveys and regression test results

  • 7 Which of the following is identified as a motivation for performing unit/module testing before testing the entire system?
    1. It eliminates the need for any subsequent integration or system testing
    2. It introduces parallelism by allowing multiple modules to be tested simultaneously
    3. It is the only testing phase that does not require a functional specification
    4. It is primarily used to prove that a module meets its intended requirements

  • 8 According to the mapping of testing levels to software activities, unit testing assesses the software with respect to which phase?
    1. Architectural Design
    2. Detailed Design
    3. Subsystem Design
    4. Implementation

  • 9 What is the primary objective of unit testing (also known as module testing) within the software development life cycle?
    1. To assess the software with respect to the user's high-level requirements
    2. To evaluate individual program units, such as procedures or methods, in isolation
    3. To focus on the final assembly of the entire software package
    4. To assess software with respect to the architectural design

  • 10 Large programs (say, programs of starts from _____ statements or more) require special unit testing treatment:
    1. 500
    2. 100
    3. 1000
    4. 50

  • 11 The goal of unit testing is to ensure that a module _____.
    1. Meet specifications
    2. Contradicts specifications
    3. Meet usability expectations
    4. No focus on specifications

  • 12 A process of testing the individual subprograms, subroutines, or procedures in a program is _____
    1. Functional testing
    2. Module testing
    3. Boundary testing
    4. white-box testing

Contact Us

support@subexpert.com
Write to Us View Help
Subject Expert Logo

Subject Expert

Learning Experience Platform

Follow Us
Facebook Switch Display Mode Enable Translation
© 2026 - Subject Expert)