Tag: testing

Questions Related to testing

  1. Component Testing

  2. Functional Testing

  3. Non-functional Testing

  4. Acceptance Testing

  5. Both 2 & 3

  6. Both 1 & 3


Correct Option: E
  1. Unreachable Code

  2. Undeclared Variables

  3. Faults in requirements

  4. Too few comments


Correct Option: C
  1. 0,9,19,49,50,74,75,99,100

  2. 10,50,75,100,250,1000

  3. 0,1,10,11,50,51,75,76,100,101

  4. 25,26,35,36,45,46,55,56


Correct Option: C
  1. Unit Testing

  2. System Testing

  3. Independant Testing

  4. Destructive Testing


Correct Option: C

Which of the following could be used to assess the coverage achieved for structure-based(white-box) test techniques? V -Decision Outcomes Exercised W -Partitions Exercised X -Boundaries Exercised Y -Conditions or multiple conditions exercised Z -Statements Exercised

  1. V,W or Y

  2. W, X or Y

  3. V,Y or Z

  4. W,X or Z


Correct Option: C

AI Explanation

To assess the coverage achieved for structure-based (white-box) test techniques, we need to consider which aspects of the structure have been exercised. Let's go through each option to understand which ones are correct:

Option A) V, W or Y - This option is incorrect because it includes option V, which refers to "Decision Outcomes Exercised." Decision outcomes are typically associated with black-box testing techniques, not structure-based (white-box) testing.

Option B) W, X or Y - This option is incorrect because it includes option X, which refers to "Boundaries Exercised." While boundary testing is commonly used in structure-based testing, it alone does not represent the coverage achieved by structure-based techniques.

Option C) V, Y or Z - This option is correct because it includes options Y and Z, which are both applicable to structure-based testing. "Conditions or multiple conditions exercised" (option Y) and "Statements Exercised" (option Z) are key elements to consider when assessing the coverage achieved by structure-based testing.

Option D) W, X or Z - This option is incorrect because it includes option W, which refers to "Partitions Exercised." Partitions are commonly associated with equivalence partitioning, which is a black-box testing technique, not structure-based testing.

Therefore, the correct answer is C. This option includes the aspects relevant to assessing coverage achieved by structure-based (white-box) test techniques.

  1. Data-driven and keyword-driven

  2. Data-driven and capture driven

  3. Capture driven and keyhole-driven

  4. Playback-driven and keyord-driven


Correct Option: A
Explanation:

To understand this question, the user needs to know the basic concepts of test automation and the common scripting techniques.

Data-driven testing is a technique that uses data from external sources (such as spreadsheets or databases) to drive test execution. Keyword-driven testing is a technique that uses a set of keywords or actions to define test steps. Capture-driven and keyhole-driven are not commonly used scripting techniques in test automation. Playback-driven is a term that refers to the ability of a tool to record user actions and then play them back as a test script. However, it is not an advanced scripting technique.

Therefore, the correct answer is:

The Answer is: A. Data-driven and keyword-driven.

  1. Test Planning and Design

  2. Test Analysis and Control

  3. Test Planning and Control

  4. Test execution and reoprting


Correct Option: C
  1. It is cheaper than designing tests during the test phases

  2. It helps prevent defects from being introduced into code

  3. Tests designed early are more effective than tests designed later

  4. It saves time during the testing phases when testers are busy


Correct Option: B