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. Compliance Testing - Business rules

  2. Black box testing - Path coverage

  3. Regression testing - end users

  4. File integrity - control totals

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

File integrity verification uses control totals to detect data corruption or unauthorized changes. Control totals (sums, counts, hashes) provide a mathematical check that file contents remain intact. The other pairs are mismatched.

Multiple choice technology testing
  1. will help ensure unchanged areas of software hav not been affected

  2. will help ensure changed areas of software hav not been affected

  3. can run during user acceptance testing only

  4. will always be automated

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

Regression testing specifically targets unchanged software components to verify recent changes haven't introduced unintended side effects. It's not limited to UAT phase and can be manual, though automation is common practice.

Multiple choice technology testing
  1. Black box testing appropriate to all levels of testing

  2. Black box testing used only by developers

  3. Black box testing appropriate for system testing only

  4. A white box testing appropriate for component testing only

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

Equivalence partitioning is a standard black-box testing technique that divides input data into partitions of equivalent behaviors. It is highly versatile and applicable across all testing levels, including unit, integration, system, and acceptance testing.

Multiple choice technology
  1. creating program code

  2. finding and correcting errors in the program code

  3. Identify the task to be computerized

  4. creating the algorithm

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

Debugging is the systematic process of identifying, isolating, and fixing errors or defects in program code. It involves running tests, analyzing program behavior, and correcting logical or syntax errors. Creating program code is coding, identifying tasks is requirements analysis, and creating algorithms is algorithm design.

Multiple choice technology testing
  1. value, time out

  2. property name, value, time out in milliseconds

  3. property name, value, time out in seconds

  4. property, time out

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

The WaitProperty method in QTP/UFT takes three parameters: the property name to check, the expected value, and the timeout in milliseconds. It waits for the specified property to attain the expected value within the given timeout period.

Multiple choice technology testing
  1. Wait – makes a wait for the specified seconds with optional milliseconds

  2. Wait – makes a wait for the specified seconds only

  3. Wait – makes a wait for the specified seconds with mandatory milliseconds

  4. None of the statements are true

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

The Wait method in QTP/UFT creates a pause for the specified number of seconds. While seconds are the primary parameter, the method can also accept optional milliseconds for more precise timing control, though this is less commonly used.

Multiple choice technology testing
  1. The code is perfectly valid. It sets the specified value in the web

  2. ) name property is incorrectly defined for the link object

  3. Syntax of Description object is incorrect

  4. Defined link object is incorrectly used as an edit box object. Hence issuing a Set method is invalid

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

The code creates a Description object for a Link (micclass=Link, name=username) but then tries to use it with WebEdit(). WebEdit expects an edit box description, not a link description. The Set method is valid for WebEdit but cannot be applied to a Link object. Option A is incorrect because there's a type mismatch. Option B is incorrect because 'name' is a valid property. Option C is incorrect because the Description.Create syntax is valid.

Multiple choice technology testing
  1. perform any OS operations

  2. perform any script activities

  3. perform any file system related activities

  4. No such object supported in Quick Test

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

The File System Object (FSO) provides methods specifically for file system operations like creating, deleting, copying, and moving files and folders. It does not perform arbitrary OS operations (option A), all script activities (option B), and it is definitely supported in Quick Test Professional (option D is false).

Multiple choice technology testing
  1. 222

  2. A

  3. No value. It returns an empty string

  4. Aarthi

Reveal answer Fill a bubble to check yourself
D Correct answer
Multiple choice technology testing
  1. A,B,C and D

  2. A and C

  3. A,C and D

  4. A,B and C

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

Static testing analyzes code and documentation without execution, making it ideal for finding standards deviations (A) and maintainability issues (C). Dynamic testing during runtime better reveals requirements defects (B) and interface mismatches (D). However, all these defect types can theoretically be detected through thorough static analysis.

Multiple choice technology testing
  1. Boundary value

  2. Equivalence partition

  3. Decision table

  4. State transition

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

Equivalence partitioning groups input values into classes that should be processed identically by the system. By testing one representative value from each equivalence class, you can effectively validate the system's behavior for all values in that class, making testing more efficient while maintaining good coverage.

Multiple choice technology testing
  1. Component interaction

  2. Probe effect

  3. State transition

  4. Disaster recovery

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

Operational testing validates that the system functions correctly in its operational environment, including backup and recovery procedures. Disaster recovery testing is a key component of operational testing as it verifies the system's ability to recover from failures and resume operations, which is essential for maintaining business continuity.