0% 3 12345678910111213141516171819202122232425262728293031323334353637383940 Created on June 25, 2024 By Admin 2018v3.1 - Exam 4 - 75 minutes Name 1 / 40 1. Consider the following state transition diagram for a credit-card only, unattended gasoline pump: Assume that you want to develop the minimum number of tests to cover each transition in the state transition diagram. Assume further that each test must start at the beginning state, waiting for customer, and each test ends when a transition arrives at the beginning state. How many tests do you need? a) 4 b) 7 c) 1 d) Infinite Select ONE option. Explanation / Rationale Each transition must be traversed at least once. To do so, the first test can cover the happy path, a successful purchase, the next test cancels, or timeout from waiting for pumping, the next test cancels, or timeout from waiting for fuel type, and the last test the insertion of an invalid credit card. While the order is immaterial, fewer than four tests fail to cover one of the transitions inbound to waiting for customer or violates the rules about where a test starts or ends. More than four tests include tests that re-traverse already-covered transitions. Thus: a) Is correct b) Is not correct c) Is not correct d) Is not correct 2 / 40 2. Which of the following lists contains only typical exit criteria from testing? a) Reliability measures, test coverage, schedule and status about fixing defect and remaining risks b) Reliability measures, test coverage, degree of tester’s independence and product completeness c) Reliability measures, test coverage, test cost, availability of test environment, time to market and product completeness d) Time to market, remaining defects, tester qualification, availability of testable use cases, test coverage and test cost Select ONE option. Explanation / Rationale a) Is correct. See reasons from incorrect answers b) Is not correct. The “degree of tester’s independence” does not play a role in exit criteria c) Is not correct. “Availability of test environment” is an entry criterion d) Is not correct. “The Qualification of Tester” is not a typical exit criterion 3 / 40 3. In what way can testing be part of Quality Assurance? a) It ensures that requirements are detailed enough b) Testing reduces the risk of poor software quality c) It ensures that standards in the organization are followed d) It measures the quality of software in terms of number of executed test cases Select ONE option. Explanation / Rationale a) Is not correct. Static testing (reviews) contributes, but could not ensure, that requirements are detailed enough b) Is correct. Testing contributes to the achievement of quality in a variety of ways, e.g., such as reducing the risk of inadequate software quality c) Is not correct. This is quality assurance but not testing d) Is not correct. The quality cannot be measured by counting the number of executed test cases without knowing the outcome 4 / 40 4. Which of the review types below is the BEST option to choose when the review must follow a formal process based on rules and checklists? a) Informal Review b) Technical Review c) Inspection d) Walkthrough Select ONE option. Explanation / Rationale a) Is not correct. Informal review does not use a formal process b) Is not correct. Use of checklists are optional c) Is correct. Inspection is a formal process based on rules and checklists d) Is not correct. Does not explicitly require a formal process and the use of checklists is optional 5 / 40 5. Which of the following should NOT be a trigger for maintenance testing? a) Decision to test the maintainability of the software b) Decision to test the system after migration to a new operating platform c) Decision to test if archived data is possible to be retrieved d) Decision to test after “hot fixes” Select ONE option. Explanation / Rationale a) Is correct. This is maintainability testing, not maintenance testing b) Is not correct. This is a trigger for maintenance testing: Operational tests of the new environment as well as of the changed software c) Is not correct. This is the trigger for maintenance testing: testing restore/retrieve procedures after archiving for long retention periods d) Is not correct. This is the trigger for maintenance testing: Reactive modification of a delivered software product to correct emergency defects that have caused actual failures 6 / 40 6. A product owner says that your role as a tester on an Agile team is to catch all the bugs before the end of each iteration. Which of the following is a testing principle that could be used to respond to this (false) statement? a) Defect clustering b) Testing shows the presence of defects c) Absence of error fallacy d) Root cause analysis Select ONE option. Explanation / Rationale a) Is not correct. Defect clustering has to do with where defects are most likely to be found, not whether all of them can be found b) Is correct. Testing can show the presence of defects but cannot prove their absence, which makes it impossible to know if you have caught all the bugs. Further, the impossibility of exhaustive testing makes it impossible for you to catch all the bugs c) Is not correct. This principle says that you can find and remove many bugs but still release an unsuccessful software product, which is not what the product owner is asking you to ensure d) Is not correct. Root cause analysis is not a testing principle 7 / 40 7. You are testing a mobile app that allows users to find a nearby restaurant, based on the type of food they want to eat. Consider the following list of test cases, priorities (smaller number is high priority), and dependencies, in the following format: Which of the following is a possible test execution schedule that considers both priorities and dependencies? a) 01.001, 01.002, 01.003, 01.005, 01.004 b) 01.001, 01.002, 01.004, 01.003, 01.005 c) 01.003, 01.004, 01.002, 01.001, 01.002 d) 01.001, 01.002, 01.004, 01.005, 01.003 Select ONE option. Explanation / Rationale Test 01.001 must come first, followed by 01.002, to satisfy dependencies. Afterwards, 01.004 and 01.003 should be run in either order, followed by 01.005, to satisfy priority. Thus: a) Is not correct b) Is correct c) Is not correct d) Is not correct 8 / 40 8. Consider the following testing activities: 1. Selecting regression tests 2. Evaluating completeness of test execution 3. Identifying which user stories have open defect reports 4. Evaluating whether the number of tests for each requirement is consistent with the level of product risk Consider the following ways traceability can help testing: A. Improve understandability of test status reports to include status of test basis items B. Make testing auditable C. Provide information to assess process quality D. Analyze the impact of changes Which of the following best matches the testing activity with how traceability can assist that activity? a) 1D, 2B, 3C, 4A b) 1B, 2D, 3A, 4C c) 1D, 2C, 3A, 4B d) 1D, 2B, 3A, 4C Select ONE option. Explanation / Rationale Traceability assists with: • Selecting regression tests in terms of analyzing the impact of changes (1D) • Evaluating completeness of test execution which makes testing auditable (2B) • Identifying which user stories have open defect reports which improves understandability of test status reports to include status of test basis items (3A) • Evaluating whether the number of tests for each requirement is consistent with the level of product risk which provides information to assess test process quality (i.e., alignment of test effort with risk) (4C) Thus: a) Is not correct b) Is not correct c) Is not correct d) Is correct 9 / 40 9. You are engaged in planning a test effort for a new mobile banking application. As part of estimation, you first meet with the proposed testers and others on the project. The team is well-coordinated and has already worked on similar projects. To verify the resulting estimate, you then refer to some industry averages for testing effort and costs on similar projects, published by a reputable consultant. Which statement accurately describes your estimation approach? a) A simultaneous expert-based and metrics-based approach b) Primarily an expert-based approach, augmented with a metrics-based approach c) Primarily a metrics-based approach, augmented with an expert-based approach d) Primarily planning poker, checked by velocity from burndown charts Select ONE option. Explanation / Rationale a) Is not correct. The two methods are used sequentially, not simultaneously b) Is correct. The primary sources of information come from the experienced testers, who are the experts. The consultant’s industry averages augment the original estimate from published metrics c) Is not correct. The expert-based approach is the primary approach, augmented by a metrics-based approach d) Is not correct. We do not know if this project is following Agile methods, and burndown charts do not come from external consultants 10 / 40 10. You are working as a tester on an Agile team and have participated in over two dozen user story refinement sessions with the product owner and the developers on the team at the start of each iteration. As the reviews have gotten more effective at detecting defects in user stories and the product owner more proficient at correcting those defects, you and the team notice that the team’s velocity, as shown in your burndown charts, has started to increase. Which of the following is a benefit of static testing that is MOST DIRECTLY related to the team’s increased velocity? a) Increasing total cost of quality b) Reducing testing cost c) Increasing development productivity d) Reducing total cost of quality Select ONE option. Explanation / Rationale a) Is not correct. Reviews reduce, not increase, the total cost of quality b) Is not correct. Increasing velocity is a sign of increasing development productivity overall, not just testing, so B only partially applies c) Is correct. Velocity is a way of measuring productivity in Agile development d) Is not correct. The benefit mentioned here has to do with increasing overall development team productivity 11 / 40 11. Which of the following tasks is MOST LIKELY to be performed by the test manager? a) Write test summary reports based on the information gathered during testing b) Review tests developed by others c) Prepare and acquire test data d) Analyze, review, and assess requirements, specifications, and models for testability Select ONE option. Explanation / Rationale a) Is correct. One of the typical tasks of a test manager b) Is not correct. One of the typical tasks of a tester c) Is not correct. One of the typical tasks of a tester d) Is not correct. One of the typical tasks of a tester 12 / 40 12. What is decision coverage? a) The coverage of condition outcomes b) Decision coverage is a synonym for statement coverage c) The coverage of executable statements d) The coverage of decision outcomes Select ONE option. Explanation / Rationale a) Is not correct. This is the Glossary definition of condition coverage b) Is not correct. Decision coverage is a higher level of coverage and the two terms are not defined as synonyms in the Glossary c) Is not correct. This is the Glossary definition of statement coverage d) Is correct. This is the Glossary definition of coverage as applied to decisions 13 / 40 13. During a project following Agile methods, you find a discrepancy between the developer’s interpretation of an acceptance criteria and the product owner’s interpretation, which you bring up during a user story refinement session. Which of the following is a benefit of test independence exemplified by this situation? a) Recognizing different kinds of failures b) Taking primary responsibility for quality c) Removing a defect early d) Challenging stakeholder assumptions Select ONE option. Explanation / Rationale a) Is not correct. While recognizing different kinds of failures is a benefit of tester independence, in the scenario here no code yet exists that can fail, and the problem is that the developer and product owner are both assuming different things about the acceptance criteria b) Is not correct. Developers losing a sense of responsibility for quality is a drawback, not a benefit c) Is not correct. While the effect of the discovery of this disagreement is the earlier removal of the defect, prior to coding, defects can be discovered early by various people, not just independent testers d) Is correct. Challenging stakeholder assumptions is a benefit of tester independence, and here the developer and product owner are both assuming different things about the acceptance criteria 14 / 40 14. Which one of the following is the BEST definition of an incremental development model? a) Defining requirements, designing software and testing are done in phases where in each phase a piece of the system is added b) A phase in the development process should begin when the previous phase is complete c) Testing is viewed as a separate phase which takes place after development has been completed d) Testing is added to development as an increment Select ONE option. Explanation / Rationale a) Is correct. Incremental development involves establishing requirements, designing, building, and testing a system in pieces b) Is not correct. This is a sequential model c) Is not correct. This describes the waterfall model d) Is not correct. Testing alone is not an increment/additional step in the development 15 / 40 15. 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 Select ONE option. Explanation / Rationale a) Is not correct. The book provides general guidance, and is not a formal requirements document, a specification, or a set of use cases, user stories, or business processes b) Is not correct. While you could consider the list as a set of test charters, it more closely resembles the list of test conditions c) Is correct. The list of user interface best practices is the list of test conditions d) Is not correct. The tests are not focused on failures that could occur, but rather on knowledge about what is important for the user, in terms of usability 16 / 40 16. You are working as a project manager on an in-house banking software project. To prevent rework and excessive find/fix/retest cycles, the following process has been put in place for resolving a defect once it is found in the test lab: 1. The assigned developer finds and fixes the defect, then creates an experimental build 2. A peer developer reviews, unit tests, and confirmation tests the defect fix on his/her desktop 3. A tester – usually the one who found the defect – confirmation tests the defect fix in the development environment 4. Once a day, a new release with all confirmed defect fixes included, is installed in the test environment 5. The same tester from step 3 confirmation tests the defect fix in the test environment Nevertheless, a large number of defects which the testers confirmed as fixed in the development environment (in step 3) are somehow failing confirmation testing in the test environment, with the resulting rework and cycle time outcomes. You have the highest confidence in your testers and have ruled out mistakes or omissions in step 3. Which of the following is the MOST likely part of the process to check next? a) The activity of developers, who may not be adequately testing in step 2 b) The activity of testers, who may be confused about what to test in step 5 c) Configuration management, which may not be maintaining the integrity of the product in step 4 d) The activity of developers, who may not be fixing defects properly in step 1 Select ONE option. Explanation / Rationale a) Is not correct. If inadequate developer testing were the problem, the confirmation test would not pass in step 3 b) Is not correct. The same tester who successfully performed the confirmation test in step 3 is repeating it in step 5 c) Is correct. Configuration management maintains the integrity of the software. If a test that passes in step 3 fails in step 5, then something is different between those two steps. One possible difference is the test object, the option listed here. Another possible difference is the between the development environment and the test environment, but that is not an option listed here d) Is not correct. If the developers were not fixing the defect, the confirmation test would not pass in step 3 17 / 40 17. 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 Select ONE option. Explanation / Rationale a) Is not correct. A path through source code is one potential route through the code from the entry point to the exit point that could exercise a range of decision outcomes. Two different paths may exercise all but one of the same decision outcomes, and by just changing a single decision outcome a new path is followed. Test cases that would achieve decision coverage are typically a tiny subset of the test cases that would achieve path coverage. In practice, most non-trivial programs (and all programs with unconstrained loops, such as ‘while’ loops) have a potentially infinite number of possible paths through them and so measuring the percentage covered is practically infeasible b) Is not correct. Coverage of business flows can be a focus of use case testing, but use cases rarely cover a single component. It may be possible to cover the decisions within business flows, but only if they were specified in enough detail, however this option only suggests coverage of “business flows” as a whole. Even if business flows would cover some decisions, the measure “Decision Coverage” don’t measure the percentage of business flows, but the percentage of decision outcomes exercised by the business flows c) Is not correct. Achieving full decision coverage does require all ‘if’ statements to be exercised with both true and false outcomes, however, there are typically several other decision points in the code (e.g., ‘case’ statements and the code controlling loops) that also need to be taken into consideration when measuring decision coverage d) Is correct. Decision coverage is a measure of the proportion of decision outcomes exercised (normally presented as a percentage) 18 / 40 18. Which of the following is an example of a task that can be carried out as part of the test process? a) Analyzing a defect b) Designing test data c) Assigning a version to a test item d) Writing a user story Select ONE option. Explanation / Rationale a) Is not correct. Analyzing a defect is part of debugging, not testing b) Is correct. Creating test data is a test implementation task c) Is not correct. While a tester may need to identify a test item’s version for results reporting purposes, assigning a test item’s version is part of configuration management d) Is not correct. Writing a user story is not a testing activity and should be done by the product owner 19 / 40 19. You are testing an e-commerce system that sells cooking supplies such as spices, flour, and other items in bulk. The units in which the items are sold are either grams (for spices and other expensive items) or kilograms (for flour and other inexpensive items). Regardless of the units, the smallest valid order amount is 0.5 units (e.g., half a gram of cardamom pods) and the largest valid order amount is 25.0 units (e.g., 25 kilograms of sugar). The precision of the unit’s field is 0.1 units. Which of the following is a set of input values that cover the boundary values with two-point boundary values for this field? a) 0.3, 10.0, 28.0 b) 0.4, 0.5, 0.6, 24, 9, 25, 0, 25.1 c) 0.4, 0.5, 25.0 25.1 d) 0.5, 0.6, 24.9, 25.0 Select ONE option. Explanation / Rationale There are three equivalence partitions, with the boundaries as shown: • Invalid too low (0.4 and below) • Valid (0.5 to 25.0) • Invalid too high (25.1 and above) Thus: a) Is not correct. None of those four boundary values are included in this set of tests. These tests do cover the equivalence partitions b) Is not correct. All these four boundary values are included in this set of tests, but two additional values are included, one for each boundary. These are the values associated with three-point boundary value analysis c) Is correct. Each of those four two-point boundary values are included in this set of tests d) Is not correct. These four values are all included in the valid partition 20 / 40 20. You are working as a tester on an online banking system. Availability is considered one of the top products (quality) risks for the system. You find a reproducible failure that results in customers losing their connections to the bank Web site when transferring funds between common types of accounts and being unable to reconnect for between three and five minutes. Which of the following would be a good summary for a defect report for this failure, one that captures both the essence of the failure and its impact on stakeholders? a) Web server logs show error 0x44AB27 when running test 07.005, which is not an expected error message in /tmp filesystem b) Developers have introduced major availability defect which will seriously upset our customers c) Performance is slow and reliability flaky under load d) Typical funds-transfer transaction results in termination of customer session, with a delay in availability when attempting to reconnect Select ONE option. Explanation / Rationale a) Is not correct. While this information is useful for developers, it does not provide managers with a sense of the impact on product quality b) Is not correct. This summary does not provide developers or managers with the necessary information and attacks the developers c) Is not correct. This summary does not provide developers or managers with the necessary information and attacks the developers d) Is correct. This summary gives a good sense of the failure and its impact 21 / 40 21. Which of the following statements about test estimation approaches is CORRECT? a) With the metrics-based approach, the estimate is based on test measures from the project and so this estimate is only available after the testing starts b) With the expert-based approach, a group of expert users identified by the client recommends the necessary testing budget c) With the expert-based approach, the test managers responsible for the different testing activities predict the expected testing effort d) With the metrics-based approach, an average of the testing costs recorded from several past projects is used as the testing budget Select ONE option. Explanation / Rationale a) Is not correct. Estimates may be updated as more information becomes available, but estimates are needed to assist with planning before the testing starts b) Is not correct. In the expert-based approach, the experts need to be experts in testing, not in using the test object c) Is correct. Test Managers, who will be leading testers doing the testing, are considered experts in their respective areas and suitable for estimating the necessary resources needed d) Is not correct. While it is useful to know the testing costs from previous projects, a more sophisticated approach is needed than simply taking an average of past projects (the new project may not be like the previous projects, e.g., it may be far larger or far smaller than previous projects) 22 / 40 22. During an Agile development effort, a product owner discovers a previously unknown regulatory requirement that applies to most of the user stories within a particular epic. The user stories are updated to provide for the necessary changes in software behavior. The programmers on the team are modifying the code appropriately. As a tester on the team, what types of tests will you run? a) Confirmation tests b) Regression tests c) Functional tests d) Change-related tests Select ONE option. Explanation / Rationale The change in behavior may be either functional or non-functional you need to run change-related tests, some of which are confirmation tests and others are regression tests. Thus: a) Is not correct b) Is not correct c) Is not correct d) Is correct 23 / 40 23. You are working on a video game development project, using Agile methods. It is based on Greek mythology and history, and players can play key roles in scenarios such as the battles between the Greeks and Trojans. Consider the following user story and its associated acceptance criteria: As a player, I want to be able to acquire the Rod of Midas (a new magic object), so that I can turn objects and other players into gold AC1: The Rod must work on any object or player, no matter what size, which can be touched anywhere by the player holding the Rod AC2: Holding the Rod does not change the player holding it into gold AC3: Any object or player touched by the Rod transforms completely into gold within one millisecond AC4: The Rod appears as shown in Prototype O.W.RoM AC5: The transformation starts at the point of contact with the Rod and moves at a rate of one meter per millisecond You are participating in a checklist-based review session of this user story. This user story and its associated acceptance criteria contain which of the following typical defects identified by static testing in this type of work product? a) Deviation from standards b) Contradiction c) Security vulnerability d) Coverage gaps Select ONE option. Explanation / Rationale a) Is not correct. While deviation from standards is a typical, we are not given any standard with which the user stories should comply b) Is correct. Contradiction is a typical requirements defect. AC3 and AC5 conflict if the Rod is touched to an object that extends more than 1 meter in any direction from the point at which touched, since AC1 does not limit the size of the objects to be touched c) Is not correct. While security vulnerabilities are typical defects, there is nothing here related to security d) Is not correct. While test coverage gaps are typical defects, including missing tests for acceptance criteria, we are not provided with any information about which tests do and do not exist 24 / 40 24. Which of the following statements is true? a) Impact analysis is useful for confirmation testing during maintenance testing b) Confirmation testing is useful for regression testing during system design c) Impact analysis is useful for regression testing during maintenance testing d) Confirmation testing is useful for impact analysis during maintenance testing Select ONE option. Explanation / Rationale a) Is not correct. While impact analysis is useful during maintenance testing it is not necessary for confirmation testing since confirmation testing is on the intended effects of a bug fix or other change b) Is not correct. Confirmation and regression testing are two separate activities, and confirmation testing is not part of system design c) Is correct. Impact analysis can be used to select regression tests for maintenance testing d) Is not correct. Confirmation testing is not part of impact analysis, though confirmation testing will typically happen during maintenance testing 25 / 40 25. 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) A test technique based on an analysis of the specification of a component or system 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 must 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 Select ONE option. Explanation / Rationale a) Is not correct. This is error guessing b) Is not correct. This is black-box test technique c) Is correct. See reasons from incorrect answers d) Is not correct. This is exploratory testing 26 / 40 26. Which of the following is MOST likely to be an example of a PRODUCT risk? a) The expected security features may not be supported by the system architecture b) The developers may not have time to fix all the defects found by the test team c) The test cases may not provide full coverage of the specified requirements d) The performance test environment may not be ready before the system is due for delivery Select ONE option. Explanation / Rationale a) Is correct. If the expected security features are not supported by the system architecture, then the system could be seriously flawed. As the system being produced is the problem here, it is a product risk b) Is not correct. If the developers run over budget, or run out of time, that is a problem with the running of the project – it is a project risk c) Is not correct. If the test cases do not provide full coverage of the requirements, this means the testing may not fulfil the requirements of the test plan – it is a project risk d) Is not correct. If the test environment is not ready, this means the testing may not be done, or it may have to be done on a different environment and it is impacting how the project is run – it is a project risk 27 / 40 27. For which of the following situations is exploratory 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 enough knowledge of similar applications and technologies d) When an advanced knowledge of the system already exists, and evidence is to be if it should be tested intensively Select ONE option. Explanation / Rationale a) Is not correct. Exploratory testing is not suitable to speed up tests, which are already specified. It is most useful when there are few or inappropriate specified requirements or significant time pressure on testing b) Is not correct. The absence of a test charter, which may have been derived from the test analysis, is a poor precondition for the use of exploratory testing c) Is correct. Exploratory tests should be performed by experienced testers with knowledge of similar applications and technologies d) Is not correct. Explorative testing alone is not suitable to provide evidence that the test was very intensive, instead the evidence is provided in combination with other test methods 28 / 40 28. Which of the following activities is part of the main activity "test analysis" in the test process? a) Identifying any required infrastructure and tools b) Creating test suites from test scripts c) Analyzing lessons learned for process improvement d) Evaluating the test basis for testability Select ONE option. Explanation / Rationale a) Is not correct. This activity is performed during the test design activity (test design) b) Is not correct. This activity is performed during the test implementation activity (test implementation) c) Is not correct. This activity is performed during the test completion activity (test completion) d) Is correct. This activity is performed during the test analysis activity (test analysis) 29 / 40 29. Which of the following can affect and be part of the (initial) test planning? a) Budget limitations b) Test log c) Failure rate d) Use cases Select ONE options. Explanation / Rationale a) Is correct. Making decisions about what to test are documented in the test plan. This means when you are planning the test and there are budget limitations, prioritizing is needed; what should be tested and what should be omitted b) Is not correct. Test monitoring and control c) Is not correct. Common test metrics d) Is not correct. It is a part of test analysis 30 / 40 30. 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 Select ONE option. Explanation / Rationale a) Is not correct. Structure-based, or white-box techniques are based on an analysis of the architecture, detailed design, internal structure, or the code of the test object b) Is correct. Behavior-based, or black-box techniques are based on an analysis of the appropriate test basis (e.g., formal requirements documents, specifications, use cases, user stories, or business processes), which describe functional and non-functional behavior c) Is not correct. Experience-based techniques leverage the experience of developers, testers, and users to determine what should be tested d) Is not correct. Error guessing is a type of experience-based testing, which is not black-box 31 / 40 31. A daily radiation recorder for plants produces a sunshine score based on a combination of the number of hours a plant is exposed to the sun (below 3 hours, 3 to 6 hours or above 6 hours) and the average intensity of the sunshine (very low, low, medium, high). Given the following test cases: What is the minimum number of additional test cases that are needed to ensure full coverage of ALL VALID INPUT equivalence partitions? a) 1 b) 2 c) 3 d) 4 Select ONE option. Explanation / Rationale The following valid input equivalence partitions can be identified: • Hours 1. Below 3 hours 2. 3 to 6 hours 3. Above 6 hours • Intensity 4. Very low 5. Low 6. Medium 7. High The given test cases cover the following valid input equivalence partitions: Thus, the missing valid input equivalence partitions are: (2), (5) and (7). These can be covered by two test cases, as (2) can be combined with either (5) or (7). Thus: a) Is not correct b) Is correct c) Is not correct d) Is not correct 32 / 40 32. A phone ringing momentarily distracts a programmer, causing the programmer to improperly program the logic that checks the upper boundary of an input variable. Later, during system testing, a tester notices that this input field accepts invalid input values. The improperly coded logic for the upper boundary check is: a) The root-cause b) The failure c) The error d) The defect Select ONE option. Explanation / Rationale a) Is not correct. The root cause is the distraction that the programmer experienced while programming b) Is not correct. The accepting of invalid inputs is the failure c) Is not correct. The error is the mistaken thinking that resulted in putting the defect in the code d) Is correct. The problem in the code is a defect 33 / 40 33. Which of the following is a defect rather than a root cause in a fitness tracker? a) Because the author of the requirements was unfamiliar with the domain of fitness training, he therefore wrongly assumed that users wanted heartbeat in beats per hour b) The tester of the smartphone interface had not been trained in state transition testing, so missed a major defect c) An incorrect configuration variable implemented for the GPS function could cause location problems during daylight saving times d) Because the designer had never worked on wearable devices before, she as designer of the user interface therefore misunderstood the effects of reflected sunlight Select ONE option. Explanation / Rationale a) Is not correct. The lack of familiarity of the requirements author with the fitness domain is a root cause b) Is not correct. The lack of training of the tester in state transition testing was one of the root causes of the defect (the developer presumably created the defect, as well) c) Is correct. The incorrect configuration data represents faulty software in the fitness tracker (a defect), that may cause failures d) Is not correct. The lack of experience in designing user interfaces for wearable devices is a typical example of a root cause of a defect 34 / 40 34. You are testing an e-commerce system that sells cooking supplies such as spices, flour, and other items in bulk. The units in which the items are sold are either grams (for spices and other expensive items) or kilograms (for flour and other inexpensive items). Regardless of the units, the smallest valid order amount is 0.5 units (e.g., half a gram of cardamom pods) and the largest valid order amount is 25.0 units (e.g., 25 kilograms of sugar). The precision of the units’ field is 0.1 units. Which of the following is a MINIMAL set of input values that cover the equivalence partitions for this field? a) 10.0, 28.0 b) 0.4, 0.5, 25.0, 25.1 c) 0.2, 0.9, 29.5 d) 12.3 Select ONE option. Explanation / Rationale There are three equivalence partitions, with the boundaries as shown: • Invalid too low (0.4 and below) • Valid (0.5 to 25.0) • Invalid too high (25.1 and above) Thus: a) Is not correct. Only two of the equivalence partitions are covered in this set of tests b) Is not correct. Each of those four boundary values are included in this set of tests, but the question asked for equivalence partition coverage with minimal tests, so either 0.5 or 25.0 should be dropped c) Is correct. Each of these three equivalence partitions are covered in this set of tests d) Is not correct. Only one of those equivalence partitions is covered by this test 35 / 40 35. 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 Select ONE option. Explanation / Rationale a) Is correct. This explains that each use case specifies some behavior that a subject can perform in collaboration with one or more actors. It also (later) explains that tests are designed to exercise the defined behaviors (basic, exceptional and errors) b) Is not correct. Use cases normally specify requirements, and so do not ‘include’ the components that will implement them c) Is not correct. Tests based on use cases do exercise interactions between the actor and the system, but they are focused on the functionality and do not consider the ease of use of user interfaces d) Is not correct. Tests do cover the use case paths through the use case, but there is no concept of decision coverage of these paths, and certainly not of business process flows 36 / 40 36. Which of the following statements correctly describes the difference between testing and debugging? a) Testing identifies the source of defects; debugging analyzes the defects and proposes prevention activities b) Dynamic testing shows failures caused by defects; debugging eliminates the defects, which are the source of failures c) Testing removes faults; but debugging removes defects that cause the faults d) Dynamic testing prevents the causes of failures; debugging removes the failures Select ONE option. Explanation / Rationale a) Is not correct. Testing does not identify the source of defects, debugging identifies the source of defects b) Is correct. Dynamic testing can show failures that are caused by defects in the software. Debugging eliminates the defects, which are the source of failures c) Is not correct. Testing does not remove faults, but debugging removes faults, which is synonyms for defects, that may cause the failures d) Is not correct. Dynamic testing does not directly prevent the causes of failures (defects) but detects the presence of defects 37 / 40 37. Given the following state model of a battery charger software: Which of the following sequences of transitions provides the highest level of transition coverage for the model? a) OFF → WAIT → OFF → WAIT → TRICKLE → CHARGE → HIGH → CHARGE → LOW b) WAIT → TRICKLE → WAIT → OFF → WAIT → TRICKLE → CHARGE → LOW → CHARGE c) HIGH → CHARGE → LOW → CHARGE → TRICKLE → WAIT → TRICKLE → WAIT → TRICKLE d) WAIT → TRICKLE → CHARGE → HIGH → CHARGE → TRICKLE → WAIT → OFF → WAIT Select ONE option. Explanation / Rationale Given the annotated state model below: The options achieve the following transition coverage: a) Is not correct: OFF (2) WAIT (1) OFF (2) WAIT (3) TRICKLE (5) CHARGE (9) HIGH (10) CHARGE (7) LOW = 7 transitions (out of 10) b) Is not correct: WAIT (3) TRICKLE (4) WAIT (1) OFF (2) WAIT (3) TRICKLE (5) CHARGE (7) LOW (8) CHARGE = 7 transitions (out of 10) c) Is not correct: HIGH (10) CHARGE (7) LOW (8) CHARGE (6) TRICKLE (4) WAIT (3) TRICKLE (4) WAIT (3) TRICKLE = 6 transitions (out of 10) d) Is correct: WAIT (3) TRICKLE (5) CHARGE (9) HIGH (10) CHARGE (6) TRICKLE (4) WAIT (1) OFF (2) WAIT = 8 transitions (out of 10) 38 / 40 38. Which of the following is a typical test objective? a) Preventing defects b) Repairing defects c) Comparing actual results to expected results d) Analyzing the cause of failure Select ONE option. Explanation / Rationale a) Is correct. This is an objective listed b) Is not correct. This is debugging c) Is not correct. This is an activity within the test execution group of activities within the test process d) Is not correct. This is part of debugging 39 / 40 39. The following statement refers to decision coverage: “When the code contains only a single ‘if’ statement and no loops or CASE statements, and its execution is not nested within the test, any single test case we run will result in 50% decision coverage.” Which of the following statement is correct? a) The statement is true. Any single test case provides 100% statement coverage and therefore 50% decision coverage b) The statement is true. Any single test case would cause the outcome of the “if” statement to be either true or false c) The statement is false. A single test case can only guarantee 25% decision coverage in this case d) The statement is false. The statement is too broad. It may be correct or not, depending on the tested software Select ONE option. Explanation / Rationale a) Is not correct. While the given statement is true, the explanation is not. The relationship between statement and decision coverage is misrepresented b) Is correct. Since any test case will cause the outcome of the “if” statement to be either TRUE or FALSE, by definition we achieved 50% decision coverage c) Is not correct. A single test case can give more than 25% decision coverage, this means according to the statement above always 50 % decision coverage d) Is not correct. The statement is specific and always true, because each test case achieves 50 % decision coverage 40 / 40 40. 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 Select ONE option. Explanation / Rationale a) Is not correct. Statement coverage measures the percentage of statements exercised by test cases b) Is correct. Statement testing exercises the executable statements in the code. Statement coverage is measured as the number of statements executed by the tests divided by the total number of executable statements in the test object, normally expressed as a percentage c) Is not correct. The coverage does not measure pass/fail d) Is not correct. It is a metric and does not provide true/false statements 0% Restart quiz