0

testing Online Quiz - 2

Description: testing Online Quiz - 2
Number of Questions: 20
Created by:
Tags: testing
Attempted 0/20 Correct 0 Score 0

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.

Assume postal rates for'light letters' are: $0.25 up to 10 grams $0.35 up to 50 grams $0.45 up to 75 grams $0.55 up to 100 grams

  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

AI Explanation

To answer this question, let's go through each option and determine whether it falls within the given postal rates:

Option A) 0, 9, 19, 49, 50, 74, 75, 99, 100

  • The postal rates are $0.25 up to 10 grams, $0.35 up to 50 grams, $0.45 up to 75 grams, and $0.55 up to 100 grams.
  • Option A includes weights that are not within the given ranges, such as 9 grams and 19 grams. Therefore, this option is incorrect.

Option B) 10, 50, 75, 100, 250, 1000

  • Option B includes weights that are not within the given ranges, such as 250 grams and 1000 grams. Therefore, this option is incorrect.

Option C) 0, 1, 10, 11, 50, 51, 75, 76, 100, 101

  • The postal rates are $0.25 up to 10 grams, $0.35 up to 50 grams, $0.45 up to 75 grams, and $0.55 up to 100 grams.
  • Option C includes weights that fall within the given ranges, such as 10 grams, 50 grams, 75 grams, and 100 grams. Therefore, this option is correct.

Option D) 25, 26, 35, 36, 45, 46, 55, 56

  • Option D includes weights that are not within the given ranges, such as 25 grams and 35 grams. Therefore, this option is incorrect.

The correct answer is Option C. This option is correct because it includes weights that fall within the given postal rates.

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 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.

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

Which type of test design techniques does the following statement best describe a procedure to derive test cases based on the specification of a component?

  1. White Box Techniques

  2. Black Box Techniques

  3. Glass Box Techniques

  4. Experience Based Techniques


Correct Option: B

Reviews,static analysis and dynamic testing have the same objective

  1. Identifying defects

  2. Fixing defects

  3. Both A & B

  4. None of the above


Correct Option: A

Poor software characteristics are

  1. Only Project Risks

  2. Only Product Risks

  3. Project Risks and Product Risks

  4. Project Risks or Product Risks


Correct Option: B

AI Explanation

To answer this question, we need to understand the characteristics of poor software.

Option A) Only Project Risks - This option is incorrect. Poor software characteristics are not limited to project risks alone. There are other factors that contribute to poor software.

Option B) Only Product Risks - This option is correct. Poor software characteristics primarily refer to risks or issues related to the product itself. This can include bugs, crashes, security vulnerabilities, poor performance, and usability issues.

Option C) Project Risks and Product Risks - This option is incorrect. While project risks can contribute to poor software, the main focus is on the product itself.

Option D) Project Risks or Product Risks - This option is incorrect. Poor software characteristics typically refer to product risks, but it doesn't exclude the possibility of project risks contributing to poor software as well.

The correct answer is B) Only Product Risks. This option is correct because poor software characteristics primarily refer to risks or issues related to the product itself.

Which of these is not a testing objective?

  1. Finding Defcts

  2. Gaining confidence about the level of Quality

  3. Preventing Defects

  4. Debugging Defects


Correct Option: D

Bug Life cycle order?

  1. Open,Assigned,Fixed,Closed

  2. Open,Fixed,Assigned,Closed

  3. Assigned,Open,Fixed,Closed

  4. Assigned,Open,Closed,Fixed


Correct Option: A

Which is not a Black Box Technique?

  1. Equivalence partition

  2. Decision tables

  3. Transaction Diagrams

  4. Decision Testing


Correct Option: D

With thorough testing it is possible to remove all defects from a program prior to delivery to the customer.

  1. True

  2. False


Correct Option: A

Database Testing includes?

  1. Data validity testing.

  2. Data Integritity testing

  3. Performance related to data base.

  4. Testing of Procedure,triggers and functions.

  5. 1 & 2

  6. All the above


Correct Option: F

Database Testing Tasks includes?

  1. Database Initialization

  2. Functional Testing

  3. Data Verification

  4. All the above


Correct Option: D

What are the tools used for Database Testing?

  1. DataGenerator and TestDataGenerator

  2. Load Runner and QTP

  3. Winrunner

  4. Quality Center


Correct Option: A

What is used to check data loading during database testing?

  1. Query Tracker

  2. Query Loader

  3. Query Analyser

  4. Query Modifier


Correct Option: C

Data driven test is used to test the multiple data in a data-table, using this we can easy to replace the parameters in the same time from different locations.

  1. True

  2. False


Correct Option: A
- Hide questions