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

Multiple choice technology programming languages
  1. for

  2. while

  3. do-while

  4. no looping process checks the test condition at the end

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

The do-while loop is unique in that it checks the test condition at the end of each iteration. This guarantees the loop body executes at least once, even if the condition is initially false. For and while loops check conditions at the start.

Multiple choice technology security
  1. White-box testing is performed by an independent programmer team

  2. Black-box testing uses the bottom-up approach

  3. Black-box testing involves the business units

  4. White-box testing examines the program internal logical structures

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

White-box testing examines the internal structure, code, and logic of the application - testers have access to source code and design. Black-box testing treats the software as a opaque box, testing functionality without knowledge of internal implementation, focusing on inputs and outputs.

Multiple choice technology security
  1. Gray-box testing

  2. Black-box testing

  3. White-box testing

  4. None of these

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

Scanning source code using regular expressions to identify suspicious code patterns is a white-box testing technique. White-box testing involves examining internal code structures, logic paths, and implementation details, unlike black-box testing which only considers external inputs and outputs.

Multiple choice technology mainframe
  1. raise new defect,fix the defect,retest,close

  2. raise new defect,retest

  3. Retest to eliminate the defect

  4. raise new defect,retest,close

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

When a new defect is found, the proper workflow is: (1) raise a new defect ticket, (2) perform retesting to confirm the issue exists and gather details, then (3) close the defect. Option A incorrectly includes fixing as part of the raising process, and Option C skips the critical step of documenting the defect.

Multiple choice technology
  1. rule task

  2. single rule

  3. rule set

  4. XOM class

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

Rule scenario manager in IBM ODM uses rule sets as test artifacts to execute and validate rules. Rule sets contain multiple rules that can be tested together, unlike individual rule tasks or single rules. XOM classes are the executable object model classes, not test artifacts.

Multiple choice technology
  1. test rules

  2. author rules

  3. review rules

  4. monitor rule set

  5. rule set simulation

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

Rule Scenario Manager supports testing rules (executing scenarios to verify behavior), monitoring rule sets (tracking execution metrics and performance), and rule set simulation (running what-if scenarios). Authoring and reviewing rules are activities performed in Rule Studio, not the Scenario Manager.

Multiple choice technology testing
  1. Test Implementation and execution

  2. Test Analysis and Design

  3. Evaluating the Exit Criteria and reporting

  4. Test Closure Activities

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

The Test Analysis and Design phase includes creating test cases, designing test environment set-ups, and identifying required infrastructure and tools. This comes after test planning but before actual test implementation and execution. Test Implementation involves running tests, Evaluating Exit Criteria happens after execution, and Test Closure is the final phase.

Multiple choice technology testing
  1. Test Implementation and execution

  2. Test Analysis and Design

  3. Evaluating the Exit Criteria and reporting

  4. Test Closure Activities

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

The Test Analysis and Design phase includes creating test cases, designing test environment set-ups, and identifying required infrastructure and tools. This comes after test planning but before actual test implementation and execution. Test Implementation involves running tests, Evaluating Exit Criteria happens after execution, and Test Closure is the final phase.

Multiple choice technology testing
  1. Test Implementation and execution

  2. Test Analysis and Design

  3. Evaluating the Exit Criteria and reporting

  4. Test Closure Activities

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

The Test Analysis and Design phase includes creating test cases, designing test environment set-ups, and identifying required infrastructure and tools. This comes after test planning but before actual test implementation and execution. Test Implementation involves running tests, Evaluating Exit Criteria happens after execution, and Test Closure is the final phase.

Multiple choice technology testing
  1. i,ii,iii are true and iv is false

  2. i,,iv are true and ii is false

  3. i,ii are true and iii,iv are false

  4. ii,iii,iv are true and i is false

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

According to standard testing methodologies, tasks i, ii, and iii belong to test implementation and execution. Establishing or determining exit criteria (task iv) is a planning activity. Therefore, i, ii, and iii are true and iv is false.

Multiple choice technology testing
  1. Component Integration testing

  2. Component System Testing

  3. Component Sub System Testing

  4. Maintenance testing

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

To solve this question, the user needs to be familiar with software testing and the different types of testing that are performed in software development.

The question is asking for the name of the type of testing that is also known as Link Testing. Link Testing is a type of testing that is used to verify the proper integration of different software components.

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

A. Component Integration testing: This option is correct. Component Integration testing is another name for Link Testing. This type of testing is used to verify the proper integration of different software components.

B. Component System Testing: This option is incorrect. Component System Testing is a type of testing that focuses on testing individual components of the system.

C. Component Sub System Testing: This option is incorrect. Component Sub System Testing is not a commonly used term in software testing.

D. Maintenance testing: This option is incorrect. Maintenance testing is a type of testing that is performed to verify that changes made to the software have not introduced new defects.

Therefore, the answer is: A. Component Integration testing.

Multiple choice technology testing
  1. Options i,ii,iii,iv are true

  2. i is true and ii,iii,iv are false

  3. i,ii,iii are true and iv is false

  4. ii is true and i,iii,iv are false.

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

Verification answers 'Are we building the product right?' - checking the quality of the built product against specifications. Validation answers 'Are we building the right product?' - checking user needs. Option B correctly identifies that verification focuses on quality of the built product, while the other statements describe different activities or are incorrect.

Multiple choice technology testing
  1. No, because they apply to development documentation

  2. No, because they are normally applied before testing

  3. No, because they do not apply to the test documentation

  4. Yes, because both help detect faults and improve quality

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

Reviews and inspections are static testing techniques that examine documents and code without executing them. Like dynamic testing, they aim to detect defects and improve quality. Option D correctly recognizes that both activities serve the same fundamental purpose - finding faults early.