Computer Knowledge

Software Testing and Quality Control

2,598 Questions

Software testing and quality control questions cover testing methodologies, unit testing, and defect management. These concepts are crucial for the computer knowledge sections of competitive exams. Practice these questions to understand verification and validation processes thoroughly.

Quality control typesUnit testing purposeSoftware vulnerability testingTest planning tasksLoop testing criteriaTest harness functions

Software Testing and Quality Control Questions

Multiple choice technology testing
  1. to define object properties

  2. when parameterizing a step

  3. when creating checkpoints

  4. creating function calls

Reveal answer Fill a bubble to check yourself
D Correct answer
Explanation

Regular expressions in QTP are primarily used for three purposes: defining object properties in descriptive programming, parameterizing steps with dynamic values in object repositories, and creating checkpoints that match patterns. They are NOT used for creating function calls - that's done through standard scripting methods. Option D correctly identifies what regular expressions are NOT used for.

Multiple choice technology testing
  1. assistive property

  2. Ordinal identifier

  3. both a & b

  4. None of the above

Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation

QTP uses mandatory properties (like class, name) as the primary object identification method. When these aren't sufficient to uniquely identify an object, QTP adds assistive properties to improve identification. If that still fails, it uses ordinal identifiers (index, location, creation time). Both assistive properties and ordinal identifiers are used when mandatory properties alone are inadequate.

Multiple choice technology testing
  1. a function has a single return value

  2. an action can have more than one output parameters

  3. Function and action are one and the same

  4. many functions can be used within an action

Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation

Functions and actions are distinct concepts in modular programming. A function is designed to return a single value and can be used inline within expressions, whereas an action can have multiple output parameters and handles side effects.

Multiple choice technology testing
  1. A properly configured test environment

  2. A thoroughly specified test procedure

  3. A process for managing identified defects

  4. A test Oracle

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

A thoroughly specified test procedure is helpful but not always a strict precondition. Tests can sometimes be executed with minimal documentation or exploratory approaches. The other options (test environment, defect management, test oracle) are more universally required.

Multiple choice technology testing
  1. Code complexity analysis

  2. Profiling

  3. Network Packet sniffing

  4. spelling and Grammer checking

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

Profiling is a dynamic analysis technique that measures program behavior during execution to identify performance bottlenecks. Code complexity is static analysis, packet sniffing is network monitoring, and spelling checks are unrelated.

Multiple choice technology testing
  1. Tester skill is a critical factor in assignment of test execution tasks

  2. Tester skills are less imporatant than ensuring 100% tester utilization

  3. Tester should always focus on defect-preventing activities

  4. Tester should be evaluated based on the number of defects they find

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

Experience-based testing (like error guessing or exploratory testing) relies heavily on tester skill and intuition. The other options suggest anti-patterns: utilization over skill, defect prevention focus, or defect-count metrics.

Multiple choice technology testing
  1. Test Items

  2. Procedure steps

  3. Location

  4. Steps to reproduce

Reveal answer Fill a bubble to check yourself
D Correct answer
Explanation

IEEE 829 (Standard for Software Test Documentation) specifies the format for test incident reports. 'Steps to reproduce' is a required section that documents the exact sequence of actions to recreate the incident. Test Items and Procedure Steps are not sections in an incident report template.

Multiple choice technology testing
  1. Have we built the software right?

  2. Have we built the right software?

  3. Have we built the software?

  4. Have we built error free software?

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

Verification ensures that the software meets its specified requirements at a particular phase, focusing on whether we are building the software correctly. Validation, conversely, asks if we built the right software. Other options are incorrect or incomplete phrasing.

Multiple choice technology testing
  1. Preventive

  2. Protective

  3. Corrective

  4. Detective

Reveal answer Fill a bubble to check yourself
D Correct answer
Explanation

Quality Control (QC) activities like testing, inspection, and verification are detective in nature: they identify and detect defects AFTER they have been introduced. This is distinct from QA, which is preventive. The correct answer is 'Detective' because QC finds problems rather than preventing them.

Multiple choice technology testing
  1. is the same as equivalence partition testing

  2. tests values at the smallest incremental distance on either side of an equivalence partition boundary

  3. tests combinations of input circumstances

  4. is used in white box testing strategies

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

Boundary value testing focuses on testing at and immediately adjacent to the boundaries of equivalence partitions. This includes the boundary value itself, the smallest value just above it, and the largest value just below it. It is not the same as equivalence partitioning (which divides inputs into classes), does not test combinations of inputs (that's pair-wise testing), and is a black-box technique not specific to white-box testing.

Multiple choice technology testing
  1. Black box testing

  2. White box testing

  3. Regression testing

  4. Unit testing

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

White box testing examines internal code structures, algorithms, and data flow. Testers see source code and design tests based on internal logic. This contrasts with black box testing (A), which only tests external behavior without code access. Unit testing (D) can be white box, but white box is the broader term. Regression testing (C) refers to retesting after changes.

Multiple choice technology testing
  1. Integration testing

  2. System testing

  3. Unit testing

  4. Static testing

Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation

To solve this question, the user needs to know about different types of testing used in software development. The user needs to identify which type of testing fits the given description.

The given description matches with the concept of Unit Testing. Unit testing is a software testing technique in which individual units or components of a software application are tested in isolation from the rest of the application. It is the process of testing individual units of source code to determine whether they are fit for use.

Now, let's go through each option and explain why it is right or wrong:

A. Integration testing: Integration testing is a software testing technique that tests the interaction between software modules. It is performed after unit testing and before system testing. This option is incorrect because the given description is not talking about integration testing.

B. System testing: System testing is a software testing technique in which a complete and integrated software system is tested. It is performed after integration testing and before user acceptance testing. This option is incorrect because the given description doesn't match the concept of system testing.

C. Unit testing: This option is correct. The given description matches the concept of unit testing. Unit testing is the process of testing individual units or components of a software application for proper operation.

D. Static testing: Static testing is a software testing technique in which the code is tested without executing it. It is performed by analyzing the code or documentation. This option is incorrect because static testing doesn't involve testing the smallest testable parts of an application individually and independently.

The Answer is: C

Multiple choice technology testing
  1. Black box testing

  2. Unit testing

  3. System testing

  4. Internal acceptance testing

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

Testing levels describe testing scope at different development stages: Unit (individual components), Integration (combined components), System (complete system), and Acceptance (user requirements). Black box (A) is a testing technique based on external behavior, not a level. The other options are actual testing levels in the standard hierarchy.