Computer Knowledge
Software Testing and Quality Control
2,292 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
-
Integration testing
-
System testing
-
Penetration testing
-
Unit testing
C
Correct answer
Explanation
Penetration testing involves simulating real-world attacks to identify security weaknesses before deployment. This active testing approach is typically performed by security teams during the testing and rollout phase to validate defenses.
-
Its a TCS proprietary methodology
-
Its a security framework
-
Its about security testing
-
Its a product from TCS
B
Correct answer
Explanation
TCS ASAP is a proprietary security framework that provides structured methodology for application security assessment. It defines processes, engagement models, and best practices for integrating security into the software development lifecycle.
-
User Analysis stage
-
Task Analysis stage
-
Testing Stage
-
Development Stage
C
Correct answer
Explanation
Heuristic evaluation is a usability testing method performed by experts to identify design flaws. While best conducted iteratively throughout the design lifecycle, it functions as an evaluation and testing process to critique interfaces and prototypes before public release.
-
Black box security testing
-
White box security testing
-
Gray box security testing
-
Blue box security testing
A
Correct answer
Explanation
AppScan operates as a black-box tool, testing applications from the outside by sending HTTP requests and analyzing responses without accessing source code or internal state. It simulates an external attacker's perspective.
-
Inform the user population about the test
-
Inform the QA and system administers about the test
-
Backup the database
-
Shut down the configured SMPT servers
A,B,C
Correct answer
Explanation
Before testing, you must communicate (notify users and administrators so they're aware of potential disruptions), protect data (backup the database to enable recovery if the test causes issues), and document (though not listed here, documentation is also critical). SMTP servers should remain running unless specifically testing email handling. The question tests standard test preparation protocols.
-
ASAP Team
-
Development Team
-
Testing Team
-
Project Management
B
Correct answer
Explanation
Security vulnerabilities are defects in code that must be fixed by the team that owns the codebase. The Development Team writes and maintains the application code, so they bear responsibility for implementing remediation. Testing teams (including specialized security teams like ASAP) identify issues but do not fix them.
-
Integration testing
-
System testing
-
Penetration testing
-
Unit testing
C
Correct answer
Explanation
During the testing and rollout phase, the ASAP team conducts penetration testing to identify exploitable vulnerabilities in the running application. Penetration testing simulates real-world attacks by attempting to actively exploit security flaws. Unit testing is done by developers during coding, system and integration testing are QA activities - penetration testing is the specialized security testing performed by the ASAP team.
-
Its a TCS proprietary methodology
-
Its a security framework
-
Its about security testing
-
Its a product from TCS
B
Correct answer
Explanation
TCS ASAP is a security framework that provides a structured methodology for integrating security throughout the application development lifecycle. While it is TCS proprietary (option A) and involves security testing activities (option C), neither captures the full scope - it's an overarching framework providing structure, processes, and guidance, not just a testing service or product.
-
During testing
-
During development
-
During design
-
During all phases of application development
D
Correct answer
Explanation
Application security must be considered throughout the entire software development lifecycle, not just at one phase. Thinking about security only during testing, development, or design is insufficient because vulnerabilities can be introduced at any stage. A holistic approach from requirements through deployment ensures security is built in rather than bolted on later.
-
Ounce
-
DevInspect
-
Fortify
-
PMD
D
Correct answer
Explanation
PMD is a well-known open source static code analysis tool for Java that checks for common programming flaws and unused code. It uses a ruleset-based approach to identify potential problems like unused variables, empty catch blocks, or inefficient object creation. Ounce and Fortify are commercial static analysis tools, while DevInspect is not a recognized static analyzer.
-
White-box testing is performed by an independent programmer team
-
Black-box testing uses the bottom-up approach
-
Black-box testing involves the business units
-
White-box testing examines the program internal logical structures
D
Correct answer
Explanation
White-box testing (also called glass-box or clear-box) examines internal program structures, code, logic flows, and algorithms. Black-box testing treats software as a opaque box, testing only inputs and outputs without seeing internal code. The color refers to visibility - white means you can see inside, black means you cannot.
-
Grey-box testing
-
Black-box testing
-
White-box testing
-
None of these
C
Correct answer
Explanation
Scanning source code with regex patterns to identify suspicious functions, inputs, or outputs is inherently a white-box testing technique - it requires access to and analysis of internal code. Black-box testing examines only external behavior without code access, and gray-box testing combines partial internal knowledge with external testing.
-
retesting
-
regression testing
-
Web based testing
-
GUI testing
B
Correct answer
Explanation
QTP/UFT is primarily designed for regression testing, which involves repeatedly running existing automated tests to verify that previously working functionality still works after code or configuration changes. While it can do GUI testing and web testing, its main strength and industry use case is automating regression test suites.
-
object identification
-
objest properties
-
object verification
-
objects
B
Correct answer
Explanation
The Object Spy feature in QTP/UFT is used to view and analyze the properties, methods, and hierarchy of test objects and runtime objects in the application under test. While it helps with object identification, its primary purpose is to inspect object properties and methods, not to perform identification or verification operations.
-
Checkpoint
-
All the above
-
Output Value
-
Compare the object property
A
Correct answer
Explanation
A checkpoint compares a specified property's current value during test execution with its expected stored value. Output values capture data for later use, while 'Compare the object property' is not a standard QTP feature.