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. Sprint planning meeting

  2. Product review meeting

  3. Sprint review meeting

  4. Sprint retrospective meeting

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

Scrum has five events: Sprint, Sprint Planning, Daily Scrum, Sprint Review, and Sprint Retrospective. 'Product Review' is not a formal Scrum event - the correct term is Sprint Review.

Multiple choice technology testing
  1. Scrum Team

  2. Backup Administrator

  3. Scrum Master

  4. Product Owner

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

The Product Owner is solely responsible for managing the Product Backlog in Scrum. They own, prioritize, and ensure the Product Backlog is visible, transparent, and clear to the Scrum Team.

Multiple choice technology testing
  1. A. Specify Releases, Specify Requirements, Plan Tests, Execute Tests, Run Tests

  2. B. Specify Releases, Specify Requirements, Plan Tests, Execute Tests, Track Defects.

  3. C. Specify Releases, Specify Requirements, Plan Tests, Execute Tests, Analyze Tests

  4. D: Specify Releases, Specify Requirements, Plan Tests, Analyze Tests, Track Defects.

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

The five phases of test management in HP Quality Center are: (1) Specify Releases - define release cycles, (2) Specify Requirements - document what needs to be tested, (3) Plan Tests - design test cases, (4) Execute Tests - run the tests, and (5) Track Defects - log and manage bugs. 'Run Tests' is redundant with 'Execute Tests', and 'Analyze Tests' is not one of the core five phases.

Multiple choice technology testing
  1. The paragraph is ambiguous in terms of supported cards.

  2. The paragraph indicates potential performance problems.

  3. The paragraph is unclear in terms of advance limits.

  4. The paragraph indicates potential usability problems.

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

The requirement is unclear because 'at least 500 dollers' [sic] is ambiguous - it could mean exactly 500, 500 minimum, or more. It doesn't specify if higher amounts are allowed or if there's a maximum. The supported cards list (American Express, Visa, Japan Credit Bank, Eurocard, Master Card) is explicit and unambiguous. There's no indication of performance or usability issues in this paragraph.

Multiple choice technology testing
  1. Grammatical Ananlysis of a requirement specification

  2. Performace Simulation of the network and database design

  3. security Risk analysis of the application code and database design.

  4. AUTOMATED UNIT TESTING WITH j-Unit test frameworks.

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

In a sequential lifecycle model, the earliest artifact available for static analysis is the requirements specification document. Grammatical analysis (checking for completeness, consistency, ambiguity) can be applied immediately after requirements are written. Performance simulation, security analysis, and unit testing all require designs or code to exist first, which come later in the sequential model.

Multiple choice technology testing
  1. Control Flow analysis

  2. Data flow analysis

  3. Coding standards analysis

  4. Cyclomatic complexity analysis

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

Set-Use pairs are fundamental to data flow analysis, which tracks how variables are assigned (set) and subsequently used (referenced) through a program. This analysis identifies potential defects like using uninitialized variables, variables used after being freed, or redundant computations. Control flow analysis examines execution paths, coding standards check style, and cyclomatic complexity measures structural complexity.

Multiple choice technology testing
  1. Improper Handling of large and small values.

  2. Improper Handling of configuration combinations

  3. Improper Handling of classes of inputs

  4. Improper Handling of typical workflows

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

Use cases focus on user interactions and typical workflows through the system. They are designed to capture how actors accomplish their goals step-by-step, making them ideal for identifying workflow-related defects. Boundary value analysis handles large/small values, configuration testing handles combinations, and equivalence partitioning handles input classes - these are different testing techniques.

Multiple choice technology testing
  1. A test environment description and test instructions.

  2. A set of inputs, execution preconditions, and expected outcomes.

  3. A test plan, test inputs, and logging instructions.

  4. Execution instructions and a function description to determine correct outcome.

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

A test case is formally defined as a set of inputs, execution preconditions, and expected outcomes. This definition captures the essential elements: what you put into the system (inputs), what state the system must be in (preconditions), and what should happen (expected outcomes). Option A is incomplete, while options C and D include elements not part of the standard test case definition.

Multiple choice technology testing
  1. Non-functional testing.

  2. Structure-based testing (white box).

  3. Static testing.

  4. Functional testing (black box).

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

Static testing is the practice of testing software without executing the code. This includes reviews, inspections, walkthroughs, and static analysis tools. Options A and D refer to types of dynamic testing (where code runs), while option B (white-box testing) requires code execution to examine internal structure.

Multiple choice technology testing
  1. A goal of acceptance testing is to stress-test the system.

  2. A goal of acceptance testing is to establish confidence in the system.

  3. Acceptance testing is performed by technical staff.

  4. Acceptance testing is only used to address functionality issues within the system

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

Acceptance testing's primary goal is to establish confidence that the system meets business requirements and is ready for deployment. It is typically performed by users or customers, not technical staff (making C wrong). Option A is incorrect because stress testing is a separate performance testing activity. Option D is wrong because acceptance testing addresses both functional and non-functional requirements.

Multiple choice technology testing
  1. To help the developer to compare differences between files and databases.

  2. To reduce the quantity of component tests needed to be run.

  3. To make it easier for developers to peer-test each other’s code.

  4. To simplify running unit tests when related components are not available yet.

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

A Test Harness is a tool that provides stubs, drivers, or mock objects to simulate missing components, allowing unit tests to run in isolation when dependent components are unavailable. Options A, B, and C describe different tools (comparison tools, coverage analyzers, peer review systems) not specific to test harnesses.

Multiple choice technology testing
  1. A test environment description and test instructions

  2. A set of inputs, execution preconditions, and expected outcomes

  3. A test plan, test inputs, and logging instructions.

  4. Execution instructions and a function description to determine correct outcome

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

To answer this question, the user needs to know what a test case is and its elements. A test case is a set of steps or conditions that are used to test a specific aspect of a software program. It includes a set of inputs, execution preconditions, and expected outcomes.

Now, let's go through each option and explain why it is right or wrong:

A. A test environment description and test instructions: This option is incorrect. While a test case may include test instructions, it is not limited to only that. A test environment description is not an essential element of a test case.

B. A set of inputs, execution preconditions, and expected outcomes: This option is correct. A test case includes a set of inputs, execution preconditions, and expected outcomes. Inputs are the data that is entered into the system as part of the test case, execution preconditions are the conditions that must be met before the test case can be run, and expected outcomes are the results that are expected from the test case.

C. A test plan, test inputs, and logging instructions: This option is incorrect. A test case is a part of a test plan, but it is not the test plan itself. The test inputs are an essential element of a test case, but logging instructions are not necessary.

D. Execution instructions and a function description to determine correct outcome: This option is incorrect. While execution instructions are a part of a test case, they are not the only element. A function description to determine the correct outcome is not a necessary part of a test case.

Therefore, the answer is: B. A set of inputs, execution preconditions, and expected outcomes.

Multiple choice technology testing
  1. Agile testing methodology

  2. Effective use of tools

  3. Configuration management

  4. Requirements traceability matrix

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

Configuration management provides unique identification and version control for all documents and software items, allowing the test group to reference them unambiguously. This ensures everyone is working with the correct version. Options A, B, and D are important practices but don't directly address unambiguous referencing.