CTFL

CTFL practice questions, page 3 of 6, with answer review and explanations.

Question 11

Consider the following pseudo code: 1. Begin 2. Input X, Y 3. If X > Y 4. __Print (X, is greater than, Y) 5. Else 6. __Print (Y, is greater than or equal to, X) 7. EndIf 8. End What is the minimum number of test cases required to guarantee both 100% statement coverage and 100% decision coverage?

  1. Statement coverage = 3, Decision coverage = 3
  2. Statement coverage = 2, Decision coverage = 2
  3. Statement coverage = 1, Decision coverage = 2
  4. Statement coverage = 2, Decision coverage = 1

Question 12

Which of the following best describes the Black-box technique?

  1. It uses decision coverage for completeness.
  2. It ensures all possible branches in the code are tested.
  3. It is based on the internal structure of the system.
  4. It can be done without reference to the internal structure of the component or system.

Question 13

System testing is:

  1. Used to search for defects in software modules that are separately testable.
  2. The responsibility of the users of a system.
  3. Concerned with the behavior of a whole system/product as defined by the scope of a development project.
  4. Triggered by modifications, migration or retirement of the software system.

Question 14

A client-server system for a web development must support a minimum of 200 enquiries per hour. In peak times, it must be available 24 hours x 7 days due to the critical nature of the application, and must have a response time lower than 20 seconds during peak loads. Which of the following set of test types would be most appropriate to verify the non-functional requirements expressed in this statement?

  1. Performance, Usability, Regression.
  2. System, Load, Fail-over.
  3. Performance, Load, Stress.
  4. Load, Volume and Component.

Question 15

When an organization considers the use of testing tools, they should:

  1. Use a tool in order to help define a good test process because the tool will force process repeatability and therefore enforce good test process.
  2. Always start by bringing in automated test execution tools as these tools have the greatest return on investment and therefore should be introduced first.
  3. Perform analysis of the test process and then assess whether it can be supported through the introduction of tool support.
  4. Allow the developers to select the testing tools because tools are technical and developers have the appropriate skills to advise on test tool selection and configuration.