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 performance
  1. monitor just the Database server

  2. monitor just the Application server

  3. monitor all system components present in your AUT

  4. use the performance summary instead of monitoring individual components

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

Comprehensive monitoring across all components in the Application Under Test is critical because bottlenecks can occur anywhere in the system. Focusing only on the database or application server risks missing issues in other layers like web servers, cache servers, or authentication services. The performance summary provides aggregated data but cannot replace component-level monitoring needed for root cause analysis.

Multiple choice technology performance
  1. Throughput

  2. Windows Resources

  3. Time to First Buffer Breakdown

  4. Transaction Performance Summary

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

Time to First Buffer (TTFB) Breakdown graph shows how much time is spent on the network versus the server for each web page component. It helps identify whether slowness is due to network latency or server processing time. Throughput shows data transfer rates, Windows Resources monitors server health, and Transaction Performance Summary shows overall transaction response times without the component-level server/network breakdown.

Multiple choice technology testing
  1. lr_set_debug_message

  2. lr_debug_message

  3. lr_extended_Log

  4. lr_set_extended_log

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

In LoadRunner, the lr_set_debug_message() function is used to enable or disable debug message generation during test execution. This allows you to control debug output dynamically at runtime without restarting the test.

Multiple choice technology performance
  1. HTTP Request

  2. Junit Request

  3. WebService (SOAP) Request

  4. Web Socket Sampler

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

HTTP Request, JUnit Request, and WebService (SOAP) Request are all core JMeter samplers. Historically, WebSocket Sampler required a plugin and was not part of the core distribution, which is why it's marked as 'not valid' in this context. Note: Modern JMeter versions (4.x+) include WebSocket support, but this question reflects an earlier version.

Multiple choice technology performance
  1. BeanShell Assertions

  2. Response Assertions

  3. XPath Assertions

  4. All of the above

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

JMeter offers several assertion types to validate responses. BeanShell Assertions, Response Assertions, and XPath Assertions are all standard assertions in JMeter. Thus, all listed options are correct assertions, making 'All of the above' the correct choice.

Multiple choice technology performance
  1. Database via JDBC

  2. JMS

  3. Mail Server

  4. Unix

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

JMeter can performance test various server types: databases via JDBC (using JDBC Request sampler), JMS servers (using JMS Point-to-Point or Publish/Subscribe samplers), and Mail Servers (using Mail Reader and SMTP samplers). 'Unix' is not a server type - it's an operating system that hosts servers, but not something you performance test directly.

Multiple choice technology performance
  1. Samplers

  2. Assertions

  3. Thread Group

  4. Logical Controllers

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

In JMeter, the two controller types that drive test processing are Samplers (which send requests to servers) and Logic Controllers (which control the execution flow of samplers). Assertions validate responses but don't drive processing. Thread Group is a container element, not classified as a controller in this context.

Multiple choice technology performance
  1. Pre-processors

  2. Post-processors

  3. Listeners

  4. Assertions

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

Post-processor elements run after a sampler executes and are specifically designed to process response data and extract values for use in subsequent requests. Examples include Regular Expression Extractor, JSON Extractor, and CSS Selector Extractor. Pre-processors run BEFORE requests, Listeners only view results, and Assertions validate responses.

Multiple choice technology testing
  1. Avoid correlation error

  2. Avoid Text Not Found Error

  3. Both of these

  4. None of these

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

web_set_max_html_param_len() is used to set the maximum length for HTML parameters during correlation. When dynamic values in HTML responses exceed the default limit, correlation fails - this function prevents those correlation errors by extending the buffer size. It does not handle Text Not Found errors, which are a different issue.

Multiple choice technology testing
  1. Web_create_xml_param

  2. Web_reg_save_param

  3. Web_create_html_param

  4. Web_create_html_param_ex

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

The three main correlation functions in LoadRunner are web_reg_save_param() for basic correlation, web_create_html_param() for HTML-based correlation, and web_create_html_param_ex() for extended HTML correlation with more options. web_create_xml_param() exists but is less commonly used for standard HTML correlation. The question asks for the three functions, not four.

Multiple choice technology testing
  1. lr_continue_on_error (0) for start and lr_continue_on_error (1) to end

  2. lr_continue_on_error (1) for start and lr_continue_on_error (0) to end

  3. lr_continue_on_error (1) for start and lr_continue_on_error (1) to end

  4. lr_continue_on_error (0) for start and lr_continue_on_error (0) to end

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

lr_continue_on_error(0) starts the continue-on-error mode, allowing the script to run even if errors occur. lr_continue_on_error(1) ends the continue-on-error mode and returns to default error handling. Option A correctly shows 0 for start and 1 for end. Using 0 for both would leave it enabled indefinitely.

Multiple choice technology testing
  1. statement testing

  2. equivalence partitioning

  3. error- guessing

  4. usability testing

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

Equivalence partitioning is a black-box testing technique that divides input data into groups expected to be processed similarly. It examines inputs and outputs without knowledge of internal code structure, which is the definition of black-box testing.

Multiple choice technology testing
  1. It reduces time to market.

  2. It finds more defect than other method

  3. It is cheap

  4. It is helpful to testers.

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

Agile testing focuses on rapid, iterative cycles and early feedback, which inherently reduces the time it takes to release software to the market. Other options are incorrect because Agile is not inherently cheaper or guaranteed to find more defects than other methods.