### testing Online Quiz - 61

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

Auto 5th car policies can be created in Q&I

1. True

2. False

Correct Option: B

Policy transfer option from one region to other region is available only in Mainframe.

1. True

2. False

Correct Option: B

Auto Recreational Vehicle policies can be created in Q&I

1. True

2. False

Correct Option: B
1. True

2. False

Correct Option: B

Earthquake policies can be created through Q&I

1. True

2. False

Correct Option: B
1. True

2. False

Correct Option: B

In Q&I we can say that the testing is complete & provide sign off if we complete testing in RC region.

1. True

2. False

Correct Option: B

How many test cases would be required to cover all the decisions in following program?READ A READ B IF A>= 10 THEN PRINT A; ELSEIF B>5 THEN PRINT B IS SMALL; ELSEIF A>B THEN PRINT A IS BIGGER THEN B; ELSE IF B>A THEN PRINT B; ELSE PRINT NULL ;END IF; END IF; END IF; END IF;

1. 8

2. 5

3. 7

4. 6

Correct Option: B

Postal rates for 'light letters' are 25p upto 10g. 35p upto 15g plus an extra 10p for each additional 25g upto 100g. Which test inputs (in grams), would be selected using EQP?

1. 8,42,82,102

2. 4,15,65,92,159

3. 10,50,75,100

4. 5,20,40,60,80

Correct Option: B

#### AI Explanation

To determine which test inputs would be selected using EQP, let's go through each option and calculate the postal rates for each weight:

Option A) 8, 42, 82, 102

• For 8 grams: The postal rate is 25p.
• For 42 grams: 35p + 10p = 45p.
• For 82 grams: 35p + 10p + 10p + 10p = 65p.
• For 102 grams: 35p + 10p + 10p + 10p + 10p + 10p = 85p.

Option B) 4, 15, 65, 92, 159

• For 4 grams: The postal rate is 25p.
• For 15 grams: The postal rate is 35p.
• For 65 grams: 35p + 10p + 10p + 10p + 10p = 75p.
• For 92 grams: 35p + 10p + 10p + 10p + 10p + 10p + 10p + 10p = 95p.
• For 159 grams: 35p + 10p + 10p + 10p + 10p + 10p + 10p + 10p + 10p + 10p + 10p + 10p + 10p + 10p + 10p + 10p + 10p + 10p + 10p + 10p = 155p.

Option C) 10, 50, 75, 100

• For 10 grams: The postal rate is 25p.
• For 50 grams: 35p + 10p + 10p = 55p.
• For 75 grams: 35p + 10p + 10p + 10p + 10p = 75p.
• For 100 grams: 35p + 10p + 10p + 10p + 10p + 10p + 10p = 95p.

Option D) 5, 20, 40, 60, 80

• For 5 grams: The postal rate is 25p.
• For 20 grams: 35p.
• For 40 grams: 35p + 10p = 45p.
• For 60 grams: 35p + 10p + 10p + 10p = 65p.
• For 80 grams: 35p + 10p + 10p + 10p + 10p + 10p = 85p.

Based on the given postal rates, the test inputs that would be selected using EQP are:

• Option A: 8, 42, 82, 102
• Option B: 4, 15, 65, 92, 159
• Option C: 10, 50, 75, 100
• Option D: 5, 20, 40, 60, 80

The correct answer is Option B, as it includes the test inputs that would be selected using EQP.

A program validates a numeric field as follows: values less than 10 are rejected, values between 10 and 21 are accepted, values greater than or equal to 22 are rejected. Which of the following covers the MOST boundary values?

1. 9,10,11,22

2. 9,10,21,22

3. 10,11,21,22

4. 10,11,20,21

Correct Option: B

#### AI Explanation

To answer this question, we need to consider the given validation criteria and determine which option covers the most boundary values.

The validation criteria are as follows:

• Values less than 10 are rejected.
• Values between 10 and 21 (inclusive) are accepted.
• Values greater than or equal to 22 are rejected.

Let's evaluate each option to see which one covers the most boundary values:

Option A) 9, 10, 11, 22

• 9 is less than 10 and should be rejected.
• 10 is between 10 and 21 and should be accepted.
• 11 is between 10 and 21 and should be accepted.
• 22 is greater than or equal to 22 and should be rejected.

This option covers 2 boundary values: 10 and 22.

Option B) 9, 10, 21, 22

• 9 is less than 10 and should be rejected.
• 10 is between 10 and 21 and should be accepted.
• 21 is between 10 and 21 and should be accepted.
• 22 is greater than or equal to 22 and should be rejected.

This option covers 2 boundary values: 10 and 21.

Option C) 10, 11, 21, 22

• 10 is between 10 and 21 and should be accepted.
• 11 is between 10 and 21 and should be accepted.
• 21 is between 10 and 21 and should be accepted.
• 22 is greater than or equal to 22 and should be rejected.

This option covers 3 boundary values: 10, 11, and 21.

Option D) 10, 11, 20, 21

• 10 is between 10 and 21 and should be accepted.
• 11 is between 10 and 21 and should be accepted.
• 20 is between 10 and 21 and should be accepted.
• 21 is between 10 and 21 and should be accepted.

This option covers 4 boundary values: 10, 11, 20, and 21.

Therefore, the option that covers the most boundary values is Option D) 10, 11, 20, 21.

1. I, II & III

2. II, III & IV

3. I, II & IV

4. I, III & IV

Correct Option: C
Explanation:

The correct answer is C. I, II & IV.

Explanation: I. It strives to ensure that quality is built into software: This statement is true as software verification and validation programs aim to ensure that quality is built into the software development process. II. It provides management with insights into the state of a software project: This statement is true as a software verification and validation program provides management with insights into the progress, quality, and state of a software project. III. It ensures that alpha, beta, and system tests are performed: This statement is not necessarily true for all software verification and validation programs. While these types of tests are commonly performed, it is not a requirement for all programs. IV. It is executed in parallel with software development activities: This statement is true as a software verification and validation program typically runs concurrently with software development activities to ensure that quality is maintained throughout the development process.

Therefore, the correct answer is C. I, II & IV.

Given the following code, which is true about the minimum number of test cases required for full statement and branch coverage: Read P Read Q IF P+Q > 100 THEN Print “Large” ENDIF If P > 50 THEN Print “P Large” ENDIF

1. 1 test for statement coverage, 3 for branch coverage

2. 1 test for statement coverage, 2 for branch coverage

3. 1 test for statement coverage, 1 for branch coverage

4. 2 tests for statement coverage, 3 for branch coverage

5. 2 tests for statement coverage, 2 for branch coverage

Correct Option: B
Explanation:

To solve this question, the user needs to know the concepts of statement coverage and branch coverage in software testing.

Statement coverage means that each statement in the code is executed at least once during testing. Branch coverage means that each possible branch or decision point in the code is executed at least once during testing.

In the given code, there are two decision points:

1. IF P+Q > 100
2. If P > 50

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

A. 1 test for statement coverage, 3 for branch coverage: This option is incorrect because it requires 3 tests for branch coverage. However, there are only two decision points in the code, so it is not possible to have three branches. Therefore, option A is incorrect.

B. 1 test for statement coverage, 2 for branch coverage: This option is correct. To achieve statement coverage, only one test case is required where P = 50 and Q = 51. This will execute all statements in the code. To achieve branch coverage, two test cases are required: one where P = 50 and Q = 51 (to cover the first decision point) and another where P = 51 and Q = 50 (to cover the second decision point). Therefore, option B is the correct answer.

C. 1 test for statement coverage, 1 for branch coverage: This option is incorrect because there are two decision points in the code that require two test cases for branch coverage. Therefore, option C is incorrect.

D. 2 tests for statement coverage, 3 for branch coverage: This option is incorrect because there are only two decision points in the code that require two test cases for branch coverage. Therefore, option D is incorrect.

E. 2 tests for statement coverage, 2 for branch coverage: This option is incorrect because only one test case is required for statement coverage. Therefore, option E is incorrect.

The Answer is: B. 1 test for statement coverage, 2 for branch coverage.

The selection of test cases for regression testing

1. Requires knowledge on the bug fixes and how it affect the system

2. Includes the area of frequent defects

3. Includes the area which has undergone many/recent code changes

4. All of the above

Correct Option: D

#### AI Explanation

To answer this question, we need to understand the concept of regression testing.

Regression testing is performed to ensure that previously developed and tested software still performs correctly after it has been changed or interfaced with other software. When selecting test cases for regression testing, it is important to consider various factors such as bug fixes, frequent defects, and recent code changes.

Let's go through each option to understand why it is correct or incorrect:

Option A) Requires knowledge on the bug fixes and how it affects the system - This option is correct because having knowledge about the bug fixes and how they affect the system is crucial in selecting the appropriate test cases for regression testing. This ensures that the fixed bugs have not introduced any new issues.

Option B) Includes the area of frequent defects - This option is correct because selecting test cases from the areas that have previously experienced frequent defects helps in identifying if any regression issues have occurred in those areas.

Option C) Includes the area which has undergone many/recent code changes - This option is correct because areas that have undergone many or recent code changes are more likely to introduce regression issues. Therefore, selecting test cases from these areas helps in detecting any regression defects.

Option D) All of the above - This option is correct because all the options mentioned above are valid considerations when selecting test cases for regression testing. Considering bug fixes, areas of frequent defects, and areas with recent code changes collectively helps in ensuring effective regression testing.

The correct answer is D) All of the above. This option is correct because all the mentioned factors are important considerations when selecting test cases for regression testing.

Complete statement and branch coverage means:

1. That you have tested every statement in the program.

2. That you have tested every statement and every branch in the program.

3. That you have tested every IF statement in the program.

4. That you have tested every combination of values of IF statements in the program

Correct Option: B

#### AI Explanation

To answer this question, we need to understand the concepts of statement coverage and branch coverage in software testing.

Statement coverage refers to the percentage of statements in a program that have been executed during testing. It ensures that every statement in the program has been executed at least once. This helps in identifying any potential errors or flaws in individual statements.

Branch coverage, on the other hand, refers to the percentage of branches in a program that have been executed during testing. A branch is a decision point in the program, such as an IF statement or a loop. Branch coverage ensures that every possible branch in the program has been taken at least once. This helps in identifying any potential errors or flaws in the decision-making logic of the program.

Now, let's go through each option to understand why it is correct or incorrect:

Option A) That you have tested every statement in the program - This option is incorrect. Statement coverage ensures that every statement has been executed, but it does not guarantee that every branch has been taken.

Option B) That you have tested every statement and every branch in the program - This option is correct. Branch coverage ensures that every branch has been taken, in addition to every statement being executed. Therefore, this option covers both statement coverage and branch coverage.

Option C) That you have tested every IF statement in the program - This option is incorrect. Testing every IF statement does not guarantee that every branch has been taken, as there may be other decision points in the program that are not IF statements.

Option D) That you have tested every combination of values of IF statements in the program - This option is incorrect. While testing every combination of values of IF statements may help achieve branch coverage, it does not guarantee statement coverage or coverage of other decision points in the program.

The correct answer is B) That you have tested every statement and every branch in the program. This option covers both statement coverage and branch coverage, ensuring that every statement and every branch in the program have been executed during testing.

In a system designed to work out the tax to be paid: An employee has £4000 of salary tax free. The next £1500 is taxed at 10%.The next £28000 is taxed at 22%.Any further amount is taxed at 40%.To the nearest whole pound, which of these is a valid Boundary Value Analysis test case?

1. £1500

2. £32001

3. £33501

4. £28000

Correct Option: C

#### AI Explanation

To determine which of the options is a valid Boundary Value Analysis test case, we need to consider the boundaries that define different tax rates.

In this system, there are three tax rates based on different salary ranges:

1. The first £4000 is tax-free.
2. The next £1500 is taxed at 10%.
3. The next £28000 is taxed at 22%.
4. Any further amount is taxed at 40%.

Based on these tax rates, we can determine the test cases for Boundary Value Analysis:

A. £1500 - This is the boundary between the tax-free range and the 10% tax range. It is a valid test case because it tests the transition from no tax to a taxed amount. B. £32001 - This is beyond the highest salary range with a fixed tax rate. It is a valid test case because it tests the system's behavior when the salary exceeds the highest tax range. C. £33501 - This is beyond the highest salary range with a fixed tax rate. It is a valid test case because it tests the system's behavior when the salary exceeds the highest tax range. D. £28000 - This is the boundary between the 22% tax range and the amount taxed at 40%. It is a valid test case because it tests the transition from a lower tax rate to a higher tax rate.

To the nearest whole pound, option C (£33501) is a valid Boundary Value Analysis test case because it tests the system's behavior when the salary exceeds the highest tax range.

What is the main difference between a walkthrough and an inspection?

1. An inspection is lead by the author, whilst a walkthrough is lead by a trained moderator

2. An inspection has a trained leader, whilst a walkthrough has no leader

3. Authors are not present during inspections, whilst they are during walkthroughs

4. A walkthrough is lead by the author, whilst an inspection is lead by a trained moderator

Correct Option: D

Given the following sets of test management terms (v-z), and activity descriptions (1-5), which one of the following best pairs the two sets? v – test control w – test monitoring x - test estimation y - incident management z - configuration control 1 - calculation of required test resources 2 - maintenance of record of test results 3 - re-allocation of resources when tests overrun 4 - report on deviation from test plan 5 - tracking of anomalous test results

1. v-3,w-2,x-1,y-5,z-4

2. v-2,w-5,x-1,y-4,z-3

3. v-3,w-4,x-1,y-5,z-2

4. v-2,w-1,x-4,y-3,z-5

Correct Option: C

#### AI Explanation

To answer this question, we need to match the activity descriptions with the corresponding test management terms. Let's go through each option to see which one is the best pairing:

Option A) v-3, w-2, x-1, y-5, z-4

• Test control (v) is paired with the re-allocation of resources when tests overrun (3) - Incorrect
• Test monitoring (w) is paired with the maintenance of the record of test results (2) - Correct
• Test estimation (x) is paired with the calculation of required test resources (1) - Incorrect
• Incident management (y) is paired with the tracking of anomalous test results (5) - Incorrect
• Configuration control (z) is paired with the report on deviation from the test plan (4) - Incorrect

Option B) v-2, w-5, x-1, y-4, z-3

• Test control (v) is paired with the tracking of anomalous test results (5) - Incorrect
• Test monitoring (w) is paired with the report on deviation from the test plan (4) - Incorrect
• Test estimation (x) is paired with the calculation of required test resources (1) - Correct
• Incident management (y) is paired with the maintenance of the record of test results (2) - Incorrect
• Configuration control (z) is paired with the re-allocation of resources when tests overrun (3) - Incorrect

Option C) v-3, w-4, x-1, y-5, z-2

• Test control (v) is paired with the re-allocation of resources when tests overrun (3) - Correct
• Test monitoring (w) is paired with the report on deviation from the test plan (4) - Correct
• Test estimation (x) is paired with the calculation of required test resources (1) - Correct
• Incident management (y) is paired with the tracking of anomalous test results (5) - Correct
• Configuration control (z) is paired with the maintenance of the record of test results (2) - Correct

Option D) v-2, w-1, x-4, y-3, z-5

• Test control (v) is paired with the maintenance of the record of test results (2) - Correct
• Test monitoring (w) is paired with the calculation of required test resources (1) - Incorrect
• Test estimation (x) is paired with the report on deviation from the test plan (4) - Incorrect
• Incident management (y) is paired with the re-allocation of resources when tests overrun (3) - Incorrect
• Configuration control (z) is paired with the tracking of anomalous test results (5) - Incorrect

The best pairing of the two sets is Option C, where:

• v (test control) is paired with 3 (re-allocation of resources when tests overrun)
• w (test monitoring) is paired with 4 (report on deviation from the test plan)
• x (test estimation) is paired with 1 (calculation of required test resources)
• y (incident management) is paired with 5 (tracking of anomalous test results)
• z (configuration control) is paired with 2 (maintenance of record of test results)

Therefore, the correct answer is Option C.

Which expression best matches the following characteristics of the review processes: 1. led by the author 2. undocumented 3. no management participation 4. led by a moderator or leader 5. uses entry and exit criteria s) inspection t) peer review u) informal review v) walkthrough

1. s = 4 and 5, t = 3, u = 2, v = 1

2. s = 4, t = 3, u = 2 and 5, v = 1

3. s = 1 and 5, t = 3, u = 2, v = 4

4. s = 4 and 5, t = 1, u= 2, v = 3

Correct Option: A

#### AI Explanation

To answer this question, we need to match the given characteristics of the review processes with the corresponding expressions.

1. Led by the author - This characteristic refers to the author of the document or code being responsible for leading the review process.

2. Undocumented - This characteristic means that the review process is not formally documented or recorded.

3. No management participation - This characteristic indicates that management does not participate in the review process.

4. Led by a moderator or leader - This characteristic suggests that the review process is led by a moderator or leader who is not the author.

5. Uses entry and exit criteria - This characteristic implies that the review process has specific entry and exit criteria that need to be met.

Let's go through each option:

Option A) s = 4 and 5, t = 3, u = 2, v = 1

• Inspection (s) matches characteristic 4 (led by a moderator or leader) and 5 (uses entry and exit criteria).
• Peer review (t) matches characteristic 3 (no management participation).
• Informal review (u) matches characteristic 2 (undocumented).
• Walkthrough (v) does not match any of the given characteristics.

Option B) s = 4, t = 3, u = 2 and 5, v = 1

• Inspection (s) matches characteristic 4 (led by a moderator or leader).
• Peer review (t) matches characteristic 3 (no management participation).
• Informal review (u) matches characteristic 2 (undocumented) and 5 (uses entry and exit criteria).
• Walkthrough (v) does not match any of the given characteristics.

Option C) s = 1 and 5, t = 3, u = 2, v = 4

• Inspection (s) matches characteristic 1 (led by the author) and 5 (uses entry and exit criteria).
• Peer review (t) matches characteristic 3 (no management participation).
• Informal review (u) matches characteristic 2 (undocumented).
• Walkthrough (v) matches characteristic 4 (led by a moderator or leader).

Option D) s = 4 and 5, t = 1, u= 2, v = 3

• Inspection (s) matches characteristic 4 (led by a moderator or leader) and 5 (uses entry and exit criteria).
• Peer review (t) matches characteristic 1 (led by the author).
• Informal review (u) matches characteristic 2 (undocumented).
• Walkthrough (v) matches characteristic 3 (no management participation).

Based on the above analysis, the correct answer is Option A. Inspection (s) matches characteristic 4 and 5, peer review (t) matches characteristic 3, informal review (u) matches characteristic 2, and walkthrough (v) does not match any of the given characteristics.

From a Testing perspective, what are the MAIN purposes of Configuration Management?: i) Identifying the version of software under test. ii) Controlling the version of testware items. iii) Developing new testware items. iv) Tracking changes to testware items. v) Analysing the need for new testware items.

1. ii, iv and v.

2. ii, iii and iv.i.

3. i, ii and iv.

4. i, iii and v.

Correct Option: C
1. Scheduling test analysis and design tasks.

2. Initiating corrective actions.

3. Monitoring progress and test coverage.

4. Measuring and analyzing results.

Correct Option: A
- Hide questions