Tag: testing

Questions Related to testing

  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 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. Let's go through each option to understand why it is correct or incorrect:

Option A) The system shall be user friendly - This option is not testable. "User-friendly" is a subjective term and can mean different things to different people. It is difficult to objectively verify or validate if a system is user-friendly.

Option B) The safety-critical parts of the system shall contain 0 faults - This option is not testable. While it is desirable for safety-critical parts to have zero faults, it is impossible to prove that there are absolutely no faults in a system. Testing can help identify and mitigate faults, but it cannot guarantee zero faults.

Option C) The response time shall be less than one second for the specified design load - This option is testable. The requirement specifies a measurable and objective criterion (response time less than one second) that can be validated through testing. The system can be tested to see if it meets this requirement.

Option D) The system shall be built to be portable - This option is not testable. "Portable" is a vague term and can have different interpretations. It is difficult to objectively verify or validate if a system is built to be portable.

The correct answer is C) The response time shall be less than one second for the specified design load. This option is testable because it specifies a measurable and objective criterion that can be validated through testing.

In prioritizing what to test, the most important objective is to

  1. find as many faults as possible.

  2. obtain good test coverage

  3. test whatever is easiest to test.

  4. test high risk areas


Correct Option: D
  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. 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
  1. syntax testing

  2. equivalence partitioning

  3. stress testing

  4. modified condition/decision coverage


Correct Option: C
  1. Boundary value analysis

  2. Usability testing

  3. Performance testing

  4. Security testing


Correct Option: A
  1. Statement testing

  2. Path testing

  3. Data flow testing

  4. State transition testing


Correct Option: D

Data flow analysis studies:

  1. possible communications bottlenecks in a program.

  2. the rate of change of data values as a program executes

  3. the use of data on paths through the code

  4. the intrinsic complexity of the code.


Correct Option: C