Mock Exam B Flashcards
1 Which of the following provides the definition of the term test case?
a) Subset of the value domain of a variable within a component or system in which all values are expected to be treated the same based on the specification
b) A set of preconditions, inputs, actions, expected results and post conditions, developed based on test conditions
c) Work products produced during the test process for use in planning, designing, executing, evaluating, and reporting on testing
d) A source to determine an expected result to compare with the actual result of the system under test
a) Is not correct. Based on definition of equivalence partition
b) Is correct. Based on definition from Glossary
c) Is not correct. Based on Glossary definition of testware
d) Is not correct. Based on definition of test oracle
2 Which of the following is a typical objective of testing?
a) To find defects and failures
b) To validate the project plan works as required
c) Ensuring of complete testing
d) Comparing actual results with expected results
a) Is correct. One of the major objectives of testing
b) Is not correct. Validation of the project plan would be a project management activity
c) Is not correct. Contradiction to principle #2; complete/exhaustive testing is not possible
d) Is not correct. “Comparing actual results with expected results” is a test performing activity, but not a test objective
3 Which of the following is an example of a failure in a car cruise control system?
a) The developer of the system forgot to rename variables after a cut-and-paste operation
b) Unnecessary code that sounds an alarm when reversing was included in the system
c) The system stops maintaining a set speed when the radio volume is increased or decreased
d) The design specification for the system wrongly states speeds
a) Is not correct. This is an example of a mistake made by the developer
b) Is not correct. This is an example of a defect (something wrong in the code that may cause a failure)
c) Is correct. This is a deviation from the expected functionality - a cruise control system should not be affected by the radio
d) Is not correct. This is an example of a defect (something wrong in a specification that may cause a failure if subsequently implemented)
4 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
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
5 As a result of risk analysis, more testing is being directed to those areas of the system under test where initial testing found more defects than average.
Which of the following testing principles is being applied?
a) Beware of the pesticide paradox
b) Testing is context dependent
c) Absence-of-errors is a fallacy
d) Defects cluster together
a) Is not correct. ‘Beware of the pesticide paradox’ is concerned with re-running the same tests and their fault-finding effectiveness decreasing
b) Is not correct. This testing principle is concerned with performing testing differently based on the context (e.g., games vs safety-critical)
c) Is not correct. This testing principle is concerned with the difference between a tested and fixed system and a validated system. No ‘errors’ does not mean the system is fit for use
d) Is correct. If clusters of defects are identified (areas of the system containing more defects than average), then testing effort should be focused on these areas
6 Given the following test activities and tasks:
A. Test design
B. Test implementation
C. Test execution
D. Test completion
- Entering change requests for open defect reports
- Identifying test data to support the test cases
- Prioritizing test procedures and creating test data
- Analyzing discrepancies to determine their cause
Which of the following BEST matches the activities with the tasks?
a) A-2, B-3, C-4, D-1
b) A-2, B-1, C-3, D-4
c) A-3, B-2, C-4, D-1
d) A-3, B-2, C-1, D-4
The correct pairing of test activities and tasks is:
A. Test design – (2) Identifying test data to support the test cases
B. Test implementation – (3) Prioritizing test procedures and creating test data
C. Test execution – (4) Analyzing discrepancies to determine their cause
D. Test completion – (1) Entering change requests for open defect reports
Thus:
a) Is correct
b) Is not correct
c) Is not correct
d) Is not correct
7 Which of the following BEST describes how value is added by maintaining traceability between the test basis and test artifacts?
a) Maintenance testing can be fully automated based on changes to the initial requirements
b) It is possible to determine if a new test case has increased coverage of the requirements
c) Test managers can identify which testers found the highest severity defects
d) Areas that may be impacted by side-effects of a change can be targeted by confirmation testing
a) Is not correct. Traceability will allow existing test cases to be linked with updated and deleted requirements (although there is no support for new requirements), but it will not help with the automation of maintenance testing
b) Is correct. If all test cases are linked with requirements, then whenever a new test case (with traceability) is added, it is possible to see if any previously uncovered requirements are covered by the new test case
c) Is not correct. Traceability between the test basis and test artifacts will not provide information on which testers found high-severity defects, and, even if this information could be determined, it would be of limited value
d) Is not correct. Traceability can help with identifying test cases affected by changes, however areas impacted by side-effects would be the focus of regression testing
8 Which of the following qualities is MORE likely to be found in a tester’s mindset rather than in a developer’s?
a) A tester´s mindset tends to grow and mature as the tester gains experience
b) Ability to see what might go wrong
c) Good communication with team members
d) Focus on getting all things done
a) Is not correct. Both developers and testers gain from experience
b) Is correct. Developers are often more interested in designing and building solutions than in contemplating what might be wrong with those solutions
c) Is not correct. Both developers and testers should be able to communicate well
d) Is not correct. Testers shall focus on the quality, not on the quantity
9 Given the following statements about the relationships between software development activities and test activities in the software development lifecycle:
- Each development activity should have a corresponding testing activity
- Reviewing should start as soon as final versions of documents become available
- The design and implementation of tests should start during the corresponding development activity
- Testing activities should start in the early stages of the software development lifecycle
Which of the following CORRECTLY shows which are true and false?
a) True – 1, 2; False – 3, 4
b) True – 2, 3; False – 1, 4
c) True – 1, 2, 4; False – 3
d) True – 1, 4; False – 2, 3
Considering each statement:
1. Each development activity should have a corresponding testing activity. TRUE
2. Reviewing should start as soon as final versions of documents become available. FALSE – it should start as soon as drafts are available
3. The design and implementation of tests should start during the corresponding development activity. FALSE – the analysis and
design of tests should start during the corresponding development activity, not the implementation
4. Testing activities should start in the early stages of the software development lifecycle. TRUE
Thus:
a) Is not correct
b) Is not correct
c) Is not correct
d) Is correct
10 Given that the testing being performed has the following attributes:
- Based on interface specifications
- Focused on finding failures in communication
- The test approach uses both functional and structural test types
Which of the following test levels is MOST likely being performed?
a) Integration testing
b) Acceptance testing
c) System testing
d) Component testing
Considering the scenario:
1. ‘testing is based on interface specifications’ – the test basis for integration testing includes interface specifications (along with communication protocol specification), while these are not included for any of the other test levels
2. ‘testing is focused on finding failures in communication’ - failures in the communication between tested components is included as a typical failure for integration testing, but failures in communication is not included for any of the other test levels
3. ‘the test approach uses both functional and structural test types’ -functional and structural test types are both included as possible approaches for integration testing, and would also be appropriate for any of the other test levels, although they are only otherwise explicitly mentioned in the syllabus for system testing
Thus:
a) Is correct
b) Is not correct
c) Is not correct
d) Is not correct
11 Which of the following statements about test types and test levels is CORRECT?
a) Functional and non-functional testing can be performed at system and acceptance test levels, while white-box testing is restricted to component and integration testing
b) Functional testing can be performed at any test level, while white-box testing is restricted to component testing
c) It is possible to perform functional, non-functional and white-box testing at any test level
d) Functional and non-functional testing can be performed at any test level, while white-box testing is restricted to component and integration testing
a) Is not correct. It is possible to perform any of the test types (functional, non-functional, white-box) at any test level - so, although it is correct that functional and non-functional testing can be performed at system and acceptance test levels, it is incorrect to state that white-box testing is restricted to component and integration testing
b) Is not correct. It is possible to perform any of the test types (functional, non-functional, white-box) at any test level - so, it is incorrect to state that white-box testing is restricted to component testing
c) Is correct. It is possible to perform any of the test types (functional, nonfunctional, white-box) at any test level
d) Is not correct. It is possible to perform any of the test types (functional, non-functional, white-box) at any test level - so, it is incorrect to state that white-box testing is restricted to component testing and integration testing
12 Which of the following statements BEST compares the purposes of confirmation testing and regression testing?
a) The purpose of regression testing is to ensure that all previously run tests still work correctly, while the purpose of confirmation testing is to ensure that any fixes made to one part of the system have not adversely affected other parts
b) The purpose of confirmation testing is to check that a previously found defect has been fixed, while the purpose of regression testing is to ensure that no other parts of the system have been adversely affected by the fix
c) The purpose of regression testing is to ensure that any changes to one part of the system have not caused another part to fail, while the purpose of confirmation testing is to check that all previously run tests still provide the same results as before
d) The purpose of confirmation testing is to confirm that changes to the system were made successfully, while the purpose of regression testing is to run tests that previously failed to ensure that they now work correctly
a) Is not correct. Although the description of regression testing is largely correct, the description of confirmation testing (which should be testing a defect has been fixed) is not correct
b) Is correct. The descriptions of both confirmation and regression testing match the intent of those in the syllabus
c) Is not correct. Although the description of regression testing is largely correct, the description of confirmation testing (re-running all previously run tests to get the same results) is not correct, as the purpose of confirmation testing is to check that tests that previously failed now pass (the fix worked)
d) Is not correct. Although the description of confirmation testing is largely correct, the description of regression testing (re-running tests that previously failed) is not correct (this is a more detailed description of confirmation testing)
13 Which of the following statements CORRECTLY describes a role of impact analysis in Maintenance Testing?
a) Impact analysis is used when deciding if a fix to a maintained system is worthwhile
b) Impact analysis is used to identify how data should be migrated into the maintained system
c) Impact analysis is used to decide which hot fixes are of most value to the user
d) Impact analysis is used to determine the effectiveness of new maintenance test cases
a) Is correct. Impact analysis may be used to identify those areas of the system that will be affected by the fix, and so the extent of the impact (e.g., necessary regression testing) can be used when deciding if the change is worthwhile
b) Is not correct. Although testing migrated data is part of maintenance testing (see conversion testing), impact analysis does not identify how this is done
c) Is not correct. Impact analysis shows which parts of a system are affected by a change, so it can show the difference between different hot fixes in terms of the impact on the system, however it does not give any indication of the value of the changes to the user
d) Is not correct. Impact analysis shows which parts of a system are affected by a change; it cannot provide an indication of the effectiveness of test cases
14 Which of the following statements CORRECTLY reflects the value of static testing?
a) By introducing reviews, we have found that both the quality of specifications and the time required for development and testing have increased
b) Using static testing means we have better control and cheaper defect management due to the ease of detecting defects later in the lifecycle
c) Now that we require the use of static analysis, missed requirements have decreased and communication between testers and developers has improved
d) Since we started using static analysis, we find coding defects that might have not been found by performing only dynamic testing
a) Is not correct. Reviews should increase the quality of specifications, however the time required for development and testing should decrease
b) Is not correct. Detecting defects is generally easier earlier in the lifecycle
c) Is not correct. Reviews will result in fewer missed requirements and better communication between testers and developers, however this is not true for static analysis
d) Is correct. This is a benefit of static analysis
15 Which of the following statements on the use of checklists in a formal review is CORRECT?
a) As part of the review planning, the reviewers create the checklists needed for the review
b) As part of the issue communication, the reviewers fill in the checklists provided for the review
c) As part of the review meeting, the reviewers create defect reports based on the checklists provided for the review
d) As part of the review initiation, the reviewers receive the checklists needed for the review
a) Is not correct. During planning it is decided whether checklists are used. The preparation of the checklists is not part of the planning. In addition, the reviewers are neither involved in the planning, nor responsible for the creation of the checklists
b) Is not correct. During issue communication, any potential defects that have been identified in the individual review are communicated. The completion of checklists by the reviewers already takes place, if at all, during individual review
c) Is not correct. During review session, the reviewers communicate any potential defects of the work product that they did identify during the individual review. Defect reports are only created during the fixing and reporting activity
d) Is correct. Initiating the review (“Kick-off”) involves distributing the work product and other materials, like checklists