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
-
monitor just the Database server
-
monitor just the Application server
-
monitor all system components present in your AUT
-
use the performance summary instead of monitoring individual components
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.
-
Throughput
-
Windows Resources
-
Time to First Buffer Breakdown
-
Transaction Performance Summary
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.
-
lr_set_debug_message
-
lr_debug_message
-
lr_extended_Log
-
lr_set_extended_log
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.
-
HTTP Request
-
Junit Request
-
WebService (SOAP) Request
-
Web Socket Sampler
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.
-
BeanShell Assertions
-
Response Assertions
-
XPath Assertions
-
All of the above
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.
-
Database via JDBC
-
JMS
-
Mail Server
-
Unix
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.
-
Samplers
-
Assertions
-
Thread Group
-
Logical Controllers
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.
-
Pre-processors
-
Post-processors
-
Listeners
-
Assertions
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.
-
Avoid correlation error
-
Avoid Text Not Found Error
-
Both of these
-
None of these
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.
-
Web_create_xml_param
-
Web_reg_save_param
-
Web_create_html_param
-
Web_create_html_param_ex
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.
-
lr_continue_on_error (0) for start and lr_continue_on_error (1) to end
-
lr_continue_on_error (1) for start and lr_continue_on_error (0) to end
-
lr_continue_on_error (1) for start and lr_continue_on_error (1) to end
-
lr_continue_on_error (0) for start and lr_continue_on_error (0) to end
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.
-
statement testing
-
equivalence partitioning
-
error- guessing
-
usability testing
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.
-
It reduces time to market.
-
It finds more defect than other method
-
It is cheap
-
It is helpful to testers.
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.
B
Correct answer
Explanation
Unit testing tests individual components in isolation first. Integration testing then tests how those components work together. Integration testing cannot happen before unit testing because you need working units to integrate.