### testing Online Quiz - 78

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

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 \$ which of these is a valid Boundary Value Analysis test case?

1. \$ 1500

2. \$ 32001

3. \$ 28000

4. \$ 33501

Correct Option: D

#### AI Explanation

To determine which of these options is a valid Boundary Value Analysis (BVA) test case, we need to understand the tax brackets and how they apply to the salary.

According to the given information:

• The first \$4000 of salary is tax-free.
• The next \$1500 is taxed at 10%.
• The next \$28000 is taxed at 22%.
• Any further amount is taxed at 40%.

Now, let's go through each option to see if it falls within a boundary value or not:

Option A) \$1500 - This amount falls within the first tax bracket of \$1500, which is taxed at 10%.

Option B) \$32001 - This amount exceeds the highest taxable bracket of \$28000. Therefore, it falls within the boundary of the highest tax bracket and would be taxed at 40%.

Option C) \$28000 - This amount falls within the second tax bracket of \$28000, which is taxed at 22%.

Option D) \$33501 - This amount exceeds the highest taxable bracket of \$28000. Therefore, it falls within the boundary of the highest tax bracket and would be taxed at 40%.

Based on the given information, the valid BVA test case is:

D) \$33501

This is because it falls within the boundary of the highest tax bracket and would be taxed at 40%.

Therefore, the correct answer is D) \$33501.

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% Which of these groups of numbers would fall into the same equivalence class?

1. \$5800; \$28000; \$32000

2. \$0; \$200; \$4200

3. \$5200; \$5500; \$28000

4. \$28001; \$32000; \$35000

Correct Option: A

#### AI Explanation

To determine which group of numbers falls into the same equivalence class, we need to calculate the tax amount for each salary and compare the results.

Let's go through each option:

Option A: \$5800; \$28000; \$32000

• For the first \$4000, there is no tax.
• The next \$1500 is taxed at 10%, which amounts to \$150.
• The next \$28000 is taxed at 22%, which amounts to \$6160.
• The total tax is \$150 + \$6160 = \$6310.

Option B: \$0; \$200; \$4200

• For the first \$4000, there is no tax.
• The total tax is \$0.

Option C: \$5200; \$5500; \$28000

• For the first \$4000, there is no tax.
• The next \$1500 is taxed at 10%, which amounts to \$150.
• The total tax is \$150.

Option D: \$28001; \$32000; \$35000

• For the first \$4000, there is no tax.
• The next \$1500 is taxed at 10%, which amounts to \$150.
• The next \$28000 is taxed at 22%, which amounts to \$6160.
• The total tax is \$150 + \$6160 = \$6310.

Based on these calculations, we can see that Option A and Option D have the same total tax amount of \$6310. Therefore, the correct answer is Option A.

Which of the following is NOT a characteristic of User Acceptance Testing?

1. Use of automated test execution tools.

2. Testing performed by users.

3. Testing against acceptance test criteria.

4. Integration of system with user documentation.

Correct Option: A

For software to be reliable it must:

1. Be easy to maintain.

2. Be unlikely to cause a failure.

3. Never fail under any circumstances.

4. Be written according to coding standards.

Correct Option: B
Explanation:

To answer this question, the user needs to understand the concept of software reliability.

Software reliability refers to the ability of a software system to perform its intended functions under stated conditions for a specified period of time.

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

A. Be easy to maintain: This option is not necessarily a requirement for software to be reliable. While maintainability is an important aspect of software development, it is not directly related to the system's reliability.

B. Be unlikely to cause a failure: This option is correct. Software should be designed and tested to minimize the likelihood of errors or failures. However, it is important to note that no software system can be completely immune to failure.

C. Never fail under any circumstances: This option is incorrect. It is impossible to create software that never fails under any circumstances. All software systems have limitations, and unexpected events can cause even the most reliable systems to fail.

D. Be written according to coding standards: This option is not directly related to software reliability. While coding standards can help improve the quality of software, they do not guarantee that the software will be reliable.

The Answer is: B. Be unlikely to cause a failure.

We split testing into distinct stages primarily because:

1. Each test stage has a different purpose.

2. It is easier to manage testing in stages.

3. We can run different tests in different environments.

4. The more stages we have, the better the testing.

Correct Option: A

Which of the following is likely to benefit most from the use of test tools providing test capture and replay facilities?

1. Regression testing

2. Integration testing

3. System testing

4. User acceptance testing

Correct Option: A

Which of the following statements is NOT correct?

1. A minimal test set that achieves 100% LCSAJ coverage will also achieve 100% branch coverage.

2. A minimal test set that achieves 100% path coverage will also achieve 100% statement coverage.

3. A minimal test set that achieves 100% path coverage will generally detect more faults than one that achieves 100% statement coverage.

4. A minimal test set that achieves 100% statement coverage will generally detect more faults than one that achieves 100% branch coverage.

Correct Option: D

#### AI Explanation

To answer this question, we need to understand the concepts of LCSAJ coverage, branch coverage, path coverage, and statement coverage.

LCSAJ (Linear Code Sequence and Jump) coverage is a metric that measures the coverage of code sequences and branches in a program.

Branch coverage measures the coverage of each branch in a program, ensuring that both the true and false branches of each decision point are executed at least once.

Path coverage measures the coverage of all possible paths through a program, ensuring that every possible combination of branches and decisions is executed at least once.

Statement coverage measures the coverage of each individual statement in a program, ensuring that every statement is executed at least once.

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

Option A) A minimal test set that achieves 100% LCSAJ coverage will also achieve 100% branch coverage. This option is correct because achieving 100% LCSAJ coverage implies that all branches in the program have been executed, hence achieving 100% branch coverage.

Option B) A minimal test set that achieves 100% path coverage will also achieve 100% statement coverage. This option is correct because achieving 100% path coverage implies that all possible combinations of branches and decisions have been executed, hence achieving 100% statement coverage.

Option C) A minimal test set that achieves 100% path coverage will generally detect more faults than one that achieves 100% statement coverage. This option is correct because achieving 100% path coverage ensures that all possible paths through a program have been executed, making it more likely to detect faults that occur on specific paths.

Option D) A minimal test set that achieves 100% statement coverage will generally detect more faults than one that achieves 100% branch coverage. This option is NOT correct. Achieving 100% statement coverage only ensures that every statement in the program has been executed at least once. It does not guarantee coverage of all branches or paths, which are often more critical for fault detection. Hence, achieving 100% branch coverage (which covers all decisions and branches) is generally more effective in fault detection than achieving 100% statement coverage.

Therefore, the correct answer is D.

Which of the following requirements is testable?

1. The system shall be user friendly.

2. The safety-critical parts of the system shall contain 0 faults.

3. The response time shall be less than one second for the specified design load.

4. The system shall be built to be portable.

Correct Option: C

#### AI Explanation

To answer this question, we need to understand what makes a requirement testable. A testable requirement is one that can be objectively verified or validated through testing. Let's go through each option to understand why it is correct or incorrect:

Option A) The system shall be user-friendly. This requirement is not testable because "user-friendly" is subjective and does not provide clear criteria for verification or validation.

Option B) The safety-critical parts of the system shall contain 0 faults. This requirement is not testable because it is practically impossible to guarantee that any system will contain zero faults. It is not feasible to test for the absence of faults.

Option C) The response time shall be less than one second for the specified design load. This requirement is testable. The response time can be objectively measured and compared against the specified criteria of being less than one second.

Option D) The system shall be built to be portable. This requirement is not testable because "portable" is not clearly defined and does not provide specific criteria for verification or validation.

The correct answer is Option C. This option is testable because the response time can be objectively measured and evaluated against the specified criteria.

Analyse the following highly simplified procedure: Ask: “What type of ticket do you require, single or return?” IF the customer wants ‘return’ Ask: “What rate, Standard or Cheap-day?” IF the customer replies ‘Cheap-day’ Say: “That will be £11:20” ELSE Say: “That will be £19:50” ENDIF ELSE Say: “That will be £9:75” ENDIF Now decide the minimum number of tests that are needed to ensure that all the questions have been asked, all combinations have occurred and all replies given.

1. 3

2. 4

3. 5

4. 6

Correct Option: A

Which of the following is NOT true of test coverage criteria?

1. Test coverage criteria can be measured in terms of items exercised by a test suite.

2. A measure of test coverage criteria is the percentage of user requirements covered.

3. A measure of test coverage criteria is the percentage of faults found.

4. Test coverage criteria are often used when specifying test completion criteria.

Correct Option: C

In prioritising what to test, the most important objective is to:

1. find as many faults as possible.

2. test high risk areas.

3. obtain good test coverage.

4. test whatever is easiest to test.

Correct Option: B

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

Which one of the following statements about system testing is NOT true?

1. System tests are often performed by independent teams.

2. Functional testing is used more than structural testing.

3. Faults found during system tests can be very expensive to fix.

4. End-users should be involved in system tests.

Correct Option: D
1. Incidents should always be fixed.

2. An incident occurs when expected and actual results differ.

3. Incidents can be analysed to assist in test process improvement.

4. An incident can be raised against documentation.

Correct Option: A

Enough testing has been performed when:

1. time runs out.

2. the required level of confidence has been achieved.

3. no more faults are found.

4. the users won’t find any serious faults.

Correct Option: B

Which of the following is NOT true of incidents?

1. Incident resolution is the responsibility of the author of the software under test.

2. Incidents may be raised against user requirements.

3. Incidents require investigation and/or correction.

4. Incidents are raised when expected and actual results differ.

Correct Option: A

Which of the following is not described in a unit test standard?

1. syntax testing

2. equivalence partitioning

3. stress testing

4. modified condition/decision coverage

Correct Option: C

Which of the following is false?

1. In a system two different failures may have different severities.

2. A system is necessarily more reliable after debugging for the removal of a fault.

3. A fault need not affect the reliability of a system.

4. Undetected errors may lead to faults and eventually to incorrect behaviour.

Correct Option: B

Which one of the following statements, about capture-replay tools, is NOT correct?

1. They are used to support multi-user testing.

2. They are used to capture and animate user requirements.

3. They are the most frequently purchased types of CAST tool.

4. They capture aspects of user behaviour.

Correct Option: B

How would you estimate the amount of re-testing likely to be required?

1. Metrics from previous similar projects

2. Discussions with the development team

3. Time allocated for regression testing

4. a & b

Correct Option: D
- Hide questions