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

Static code analysis typically identifies all but one of the following problems.Which is it?

  1. Unreachable Code

  2. Undeclared Variables

  3. Faults in requirements

  4. Too few comments


Correct Option: C

if the temperature below 18 degrees,the heating is switched on.When the temperature reaches 21 deg,the heating is switched off.What is the minimum set of test input values to cover all valid equivalence partitions??

  1. 15,19,25

  2. 17,18,20,21

  3. 18,20,22

  4. 16,26


Correct Option: A

AI Explanation

To determine the minimum set of test input values to cover all valid equivalence partitions, we need to consider the different temperature ranges and conditions mentioned in the question.

Based on the information given, we can identify the following equivalence partitions:

  1. Below 18 degrees (heating switched on)
  2. Between 18 and 21 degrees (heating switched off)
  3. Above 21 degrees (heating switched off)

To cover all valid equivalence partitions, we need to select test input values that represent each partition.

Let's analyze each option to see if it covers all the partitions:

Option A: 15, 19, 25

  • 15 is below 18 degrees (heating switched on)
  • 19 is between 18 and 21 degrees (heating switched off)
  • 25 is above 21 degrees (heating switched off)

Option B: 17, 18, 20, 21

  • 17 is below 18 degrees (heating switched on)
  • 18 is between 18 and 21 degrees (heating switched off)
  • 20 is between 18 and 21 degrees (heating switched off)
  • 21 is above 21 degrees (heating switched off)

Option C: 18, 20, 22

  • 18 is between 18 and 21 degrees (heating switched off)
  • 20 is between 18 and 21 degrees (heating switched off)
  • 22 is above 21 degrees (heating switched off)

Option D: 16, 26

  • 16 is below 18 degrees (heating switched on)
  • 26 is above 21 degrees (heating switched off)

Based on the analysis, Option A covers all the valid equivalence partitions. It includes a temperature below 18 degrees (heating switched on), a temperature between 18 and 21 degrees (heating switched off), and a temperature above 21 degrees (heating switched off).

Therefore, the correct answer is Option A: 15, 19, 25.

  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

Which of the following encourages objective testing?

  1. Unit Testing

  2. System Testing

  3. Independant Testing

  4. Destructive Testing


Correct Option: C

AI Explanation

To answer this question, we need to understand the different types of testing and how they relate to objective testing.

Option A) Unit Testing - This option is incorrect because unit testing focuses on testing individual components or units of code. While unit testing is important for ensuring the correctness of individual units, it does not necessarily encourage objective testing of the entire system.

Option B) System Testing - This option is incorrect because system testing focuses on testing the entire system as a whole to ensure that all components work together correctly. While system testing is important for validating the system's behavior and functionality, it does not specifically encourage objective testing.

Option C) Independent Testing - This option is correct because independent testing refers to the practice of having a separate team or individual perform testing activities to ensure objectivity and reduce bias. By having an independent party carry out the testing, it encourages a more objective evaluation of the system.

Option D) Destructive Testing - This option is incorrect because destructive testing involves intentionally causing failures or faults in the system to assess its resilience and ability to recover. While destructive testing can be valuable in certain scenarios, it does not necessarily encourage objective testing.

The correct answer is C) Independent Testing. This option is correct because independent testing helps ensure objectivity in the testing process by involving a separate team or individual who can provide an unbiased evaluation of the system.

Which of the following are advanced scripting techniques for test execution tools?

  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.

Which of the following is an activity in the fundamental test process?

  1. Test Planning and Design

  2. Test Analysis and Control

  3. Test Planning and Control

  4. Test execution and reoprting


Correct Option: C

What is the main benefit of designing tests early in the life cycle?

  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