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. lr_output_message

  2. lr_debug_message

  3. lrd_stmt

  4. lrd_fetch

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

To answer this question, the user needs to have knowledge of the functions in LoadRunner that can send messages to the output window.

Option A: lr_output_message - This function sends a message to the LoadRunner output window during script execution. This option is correct.

Option B: lr_debug_message - This function sends a debug message to the LoadRunner output window during script execution. This option is incorrect as it sends a debug message and not a regular message to the output window.

Option C: lrd_stmt - This function is used to execute SQL statements for ODBC and Oracle databases. It does not send a message to the output window. This option is incorrect.

Option D: lrd_fetch - This function retrieves data that matches the criteria specified in the SQL statement. It does not send a message to the output window. This option is incorrect.

Therefore, the answer is:

The Answer is: A

Multiple choice technology web technology
  1. Bio Authentication

  2. Optimization and acceleration of XML and XSLT

  3. Security, monitoring, threat mediation, and

  4. Process WSDL described Services

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

The XSL Accelerator Service in IBM DataPower is specifically designed to optimize and accelerate XML and XSLT transformations. It offloads CPU-intensive XSL processing from the main appliance, improving performance for XML-heavy workloads. Option A (Bio Authentication) refers to authentication mechanisms, C describes security/monitoring functions typically handled by firewall services, and D (WSDL processing) is handled by Web Service Proxy.

Multiple choice technology web technology
  1. Monitors

  2. View Log

  3. Show Probe

  4. View Status

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

Show Probe is the DataPower tool used to test and trace messages at each step of processing rules. It captures the message context after each rule execution, allowing detailed debugging and inspection. Monitors provide runtime statistics, View Log shows system logs, and View Status displays appliance health - none show step-by-step message state.

Multiple choice technology testing
  1. Branch testing

  2. Agile testing

  3. Beta testing

  4. Ad-hoc testing

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

Arc testing is another name for branch testing in software testing. It involves testing all branches in the code by ensuring that every decision point (branch) takes both true and false paths. This is distinct from agile testing, beta testing, or ad-hoc testing.

Multiple choice technology testing
  1. Boundary value analysis

  2. Equivalence partitioning

  3. Decision table testing

  4. State transition testing

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

Equivalence partitioning is a test design technique that divides input data into groups (equivalence classes) that are expected to be processed similarly. By testing one value from each equivalence class, you achieve coverage of both valid and invalid inputs and outputs. Boundary value analysis focuses on edge cases, decision tables on complex logic combinations, and state transition on system states.

Multiple choice technology testing
  1. Unit testing

  2. Regression testing

  3. Alpha testing

  4. Integration testing

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

Alpha testing is conducted at the developer's site by potential users or independent test team before releasing to external users. While unit and integration testing also happen at the developer's organization, alpha testing specifically involves user acceptance testing in a controlled environment at the development site.

Multiple choice technology testing
  1. Quality center

  2. Caliber

  3. Integrator

  4. TOAD

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

HP Quality Center (now known as ALM) is a comprehensive test management tool that includes both test case management and defect tracking capabilities. Caliber is primarily for requirements management, Integrator for integration testing, and TOAD is a database tool - none of these provide the combined test case and defect management functionality.

Multiple choice technology testing
  1. NA

  2. No Run

  3. Blocked by defect

  4. Failed

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

When a test case is deemed invalid after review (e.g., due to requirements change, duplicate, or not applicable), it is marked as 'NA' (Not Applicable) to indicate it should not be executed. 'No Run' means it hasn't been executed yet, 'Blocked by defect' indicates it cannot be run due to a known issue, and 'Failed' means it was executed but didn't pass.

Multiple choice technology performance
  1. Create - 67% Search - 16% Block0 - 17% Search Modify

  2. Create - 57% Search - 29% Block0 - 14% Search Modify

  3. Create - 57% Search - 29% Modify - 14%

  4. Create - 67% Search - 16% Modify - 17%

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

The correct run logic is Create 67%, Search 16%, Block0 17%, then Search Modify. The math checks out: 40 Create / 60 total actions = 67%, and the dependency (Modify requires Search) is satisfied by the Block0 structure. Other options either don't satisfy the Modify-Search dependency or miscalculate the percentages (57% would be incorrect for 40/60).

Multiple choice technology performance
  1. web_reg_find

  2. web_reg_save_find

  3. web_reg_save_value

  4. web_reg_save_param

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

web_reg_save_param is the classic LoadRunner function used to register a request to save dynamic data (correlation) from the server. web_reg_find checks for text, and other functions like web_reg_save_find or web_reg_save_value either do not exist or do not serve this purpose.

Multiple choice technology performance
  1. File

  2. Unique

  3. Random

  4. Sequential

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

In HP LoadRunner (or Micro Focus VuGen) Run Logic block properties, the block execution logic can be set to either 'Sequential' or 'Random' to control how the containing actions are called. 'File' and 'Unique' are parameter types, not block run logic settings.

Multiple choice technology performance
  1. General: Log

  2. General: Run Logic

  3. General: Miscellaneous

  4. . General: Additional Attributes

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

In LoadRunner's runtime settings, the Log option (under General) allows you to configure logging levels including logging only when errors occur. This is a performance testing best practice to reduce log volume while capturing critical failure information. The other options (Run Logic, Miscellaneous, Additional Attributes) control different aspects of test execution but not error-specific logging behavior.

Multiple choice technology performance
  1. lr_xml_find

  2. lr_eval_string

  3. web_image_check

  4. web_reg_find

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

The question asks which command CANNOT check for response presence. lr_eval_string evaluates a parameter's value but does not search or validate response content - it's a string substitution function. The other three (lr_xml_find, web_image_check, web_reg_find) are content verification functions that actively check for text, images, or XML elements in server responses.

Multiple choice technology performance
  1. lr_save_string

  2. lr_xml_find

  3. lr_xml_get_values

  4. lr_eval_string

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

web_reg_save_param extracts dynamic data from HTML pages to save in a parameter. In the XML-based Web Services protocol, lr_xml_get_values queries and extracts values from XML responses into parameters, making it the equivalent function. lr_save_string assigns a string directly, and lr_xml_find searches for a query match rather than saving values.

Multiple choice technology
  1. Validate

  2. Check

  3. Verify

  4. Diagnose

  5. Synchronize

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

The Verify option in Framework Manager checks packages for errors, inconsistencies, and potential issues before publication. This validation process helps identify problems early in the development cycle. Validate, Check, Diagnose, and Synchronize are not the standard package verification commands.