0

testing Online Quiz - 78

Description: testing Online Quiz - 78
Number of Questions: 20
Created by:
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.

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

Therefore, the correct answer is:

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

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

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
  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
  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
  1. syntax testing

  2. equivalence partitioning

  3. stress testing

  4. modified condition/decision coverage


Correct Option: C
  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
  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
  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