Chapter 4 Test Techniques Flashcards
Which of the following is NOT a black box technique:
A. Equivalence partitioning
B. State transition testing
C. LCSAJ
D. Boundary value analysis
C. LCSAJ
Postal rates for ‘light letters’ are 25p up to 10g, 35p up to 50g plus an extra 10p for each additional 25g up to 100g.
Which test inputs (in grams) would be selected using equivalence partitioning?
A. 8, 42, 82, 102
B. 4, 15, 65, 92, 159
C. 10, 50, 75, 100
D. 5, 20, 40, 60, 80
B. 4, 15, 65, 92, 159
What is checklist-based testing?
A. A test technique in which tests are derived based on the tester’s knowledge of past faults, or general knowledge of failures.
B. Procedure to derive and/or select test cases based on an analysis of the specification, either functional or non-functional, of a component or system without reference to its internal structure.
C. An experience-based test technique whereby the experienced tester uses a list of items to be noted, checked, or remembered, or a set of rules or criteria against which a product has to be verified.
D. An approach to testing where the testers dynamically design and execute tests based on their knowledge, exploration of the test item and the results of previous tests.
C. An experience-based test technique whereby the experienced tester uses a list of items to be noted, checked, or remembered, or a set of rules or criteria against which a product has to be verified.
Which one of the following options is categorized as a black-box test technique?
A. A technique based on analysis of the architecture.
B. A technique checking that the test object is working according to the technical design.
C. A technique based on the knowledge of past faults, or general knowledge of failures.
D. A technique based on formal requirements.
D. A technique based on formal requirements.
Which one of the following is the description of statement coverage?
A. It is a metric, which is the percentage of test cases that have been executed.
B. It is a metric, which is the percentage of statements in the source code that have been executed.
C. It is a metric, which is the number of statements in the source code that have been executed by test cases that are passed.
D. It is a metric, that gives a true/false confirmation if all statements are covered or not.
B. It is a metric, which is the percentage of statements in the source code that have been executed.
Which statement about the relationship between statement coverage and decision coverage is true?
A. 100% decision coverage also guarantees 100% statement coverage.
B. 100% statement coverage also guarantees 100% decision coverage.
C. 50% decision coverage also guarantees 50% statement coverage.
D. Decision coverage can never reach 100%.
A. 100% decision coverage also guarantees 100% statement coverage.
For which of the following situations is explorative testing suitable?
A. When time pressure requires speeding up the execution of tests already specified.
B. When the system is developed incrementally and no test charter is available.
C. When testers are available who have sufficient knowledge of similar applications and technologies.
D. When an advanced knowledge of the system already exists and evidence is to be provided that it should be tested intensively
C. When testers are available who have sufficient knowledge of similar applications and technologies.
Which of the following BEST matches the descriptions with the different categories of test techniques?
- Coverage is measured based on a selected structure of the test object.
- The processing within the test object is checked.
- Tests are based on defects’ likelihood and their distribution.
- Deviations from the requirements are checked.
- User stories are used as the test basis.
Black - Black-box test techniques
White - White-box test techniques
Experience - Experience-based test techniques
A. Black – 4, 5 White – 1, 2 Experience – 3
B. Black – 3 White – 1, 2 Experience – 4, 5
C. Black – 4 White – 1, 2 Experience – 3, 5
D. Black – 1, 3, 5 White – 2 Experience – 4
A. Black – 4, 5 White – 1, 2 Experience – 3
Which of the following statements BEST describes how test cases are derived from a use case?
A. Test cases are created to exercise defined basic, exceptional and error behaviors performed by the system under test in collaboration with actors.
B. Test cases are derived by identifying the components included in the use case and creating integration tests that exercise the interactions of these components.
C. Test cases are generated by analyzing the interactions of the actors with the system to ensure the user interfaces are easy to use.
D. Test cases are derived to exercise each of the decision points in the business process flows of the use case, to achieve 100% decision coverage of these flows.
A. Test cases are created to exercise defined basic, exceptional and error behaviors performed by the system under test in collaboration with actors.
Which of the following BEST describes the concept behind error guessing?
A. Error guessing requires you to imagine you are the user of the test object and guess mistakes the user could make interacting with it.
B. Error guessing involves using your personal experience of development and the mistakes you made as a developer.
C. Error guessing involves using your knowledge and experience of defects found in the past and typical mistakes made by developers.
D. Error guessing requires you to rapidly duplicate the development task to identify the sort of mistakes a developer might make.
C. Error guessing involves using your knowledge and experience of defects found in the past and typical mistakes made by developers.
Prior to an iteration planning session, you are studying a user story and its acceptance criteria, deriving test conditions and associated test cases from the user story as a way of applying the principle of early QA and test. What test technique are you applying?
A. White-box
B. Black-box
C. Experience-based
D. Error guessing
B. Black-box
Which of the following is a true statement about exploratory testing?
A. More experienced testers who have tested similar applications and technologies are likely to do better than less experienced testers at exploratory testing
B. Exploratory testing does not identify any additional tests beyond those that would result from formal test techniques
C. The time required to complete an exploratory testing session cannot be predicted in advance
D. Exploratory testing can involve the use of black-box techniques but not white-box techniques
A. More experienced testers who have tested similar applications and technologies are likely to do better than less experienced testers at exploratory testing
You are testing a mobile app that allows customers to access and manage their bank accounts.
You are running a test suite that involves evaluating each screen and each field on each screen against a general list of user interface best practices, derived from a popular book on the topic, that maximize attractiveness, ease-of-use, and accessibility for such apps. Which of the following options BEST categorizes the test technique you are using?
A. Specification-based
B. Exploratory
C. Checklist-based
D. Error guessing
C. Checklist-based
Consider a mobile app that allows customers to access and manage their bank accounts.
A user story has just been added to the set of features that checks customers’ social media accounts and bank records to give personalized greetings on birthdays and other personal milestones.
Which of the following test techniques could a PROGRAMMER use during a unit test of the code to ensure that coverage of situations when the greetings ARE supposed to occur and when the greetings ARE NOT supposed to occur?
A. Statement testing
B. Exploratory testing
C. State transition testing
D. Decision testing
D. Decision testing
- Which of the following descriptions of decision coverage is CORRECT?
A. Decision coverage is a measure of the percentage of possible paths through the source code exercised by tests.
B. Decision coverage is a measure of the percentage of business flows through the component exercised by tests.
C. Decision coverage is a measure of the ‘if’ statements in the code that are exercised with both the true and false outcomes.
D. Decision coverage is a measure of the proportion of decision outcomes in the source code exercised by tests.
D. Decision coverage is a measure of the proportion of decision outcomes in the source code exercised by tests.