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
16 Which of the following CORRECTLY matches the roles and responsibilities in a formal review?
a) Manager – Decides on the execution of reviews
b) Review Leader - Ensures effective running of review meetings
c) Scribe – Fixes defects in the work product under review
d) Moderator – Monitors ongoing cost-effectiveness
a) Is correct. The management decides about performing the review
b) Is not correct. The moderator, not the review leader should ensure the effective running of review meetings
c) Is not correct. The author fixes the work product under review
d) Is not correct. The manager monitors ongoing cost-effectiveness
17 The reviews being used in your organization have the following attributes:
- There is a role of a scribe
- The purpose is to detect potential defects
- The review meeting is led by the author
- Reviewers find potential defects by individual review
- A review report is produced
Which of the following review types is MOST likely being used?
a) Informal Review
b) Walkthrough
c) Technical Review
d) Inspection
Considering the attributes:
* There is a role of a scribe – specified for walkthroughs, technical reviews, and inspections; thus, the reviews being performed cannot be informal reviews
* The purpose is to detect potential defects – the purpose of detecting potential defects is specified for all types of review.
* The review meeting is led by the author – this is not allowed for inspections and is typically not the author for technical reviews, but is part of walkthroughs, and allowed for informal reviews
* Reviewers find potential issues by individual review - all types of reviews can include individual review (even informal reviews)
* A review report is produced - all types of reviews can produce a review report, although it would be less likely for an informal review
Thus:
a) Is not correct
b) Is correct
c) Is not correct
d) Is not correct
18 You have been asked to take part in a checklist-based review of the following excerpt from the requirements specification for a library system:
Librarians can:
1. Register new borrowers
2. Return books from borrowers
3. Accept fines from borrowers
4. Add new books to the system with their ISBN, author and title
5. Remove books from the system
6. Get system responses within 5 seconds
Borrowers can:
7. Borrow a maximum of 3 books at one time
8. View the history of books they have borrowed/reserved
9. Be fined for failing to return a book within 3 weeks
10. Get system responses within 3 seconds
11. Borrow a book at no cost for a maximum of 4 weeks
12. Reserve books (if they are on-loan)
All users (librarians and borrowers):
13. Can search for books by ISBN, author, or title
14. Can browse the system catalogue
15. The system shall respond to user requests within 3 seconds
16. The user interface shall be easy-to-use
You have been assigned the checklist entry that requires you to review the specification for inconsistencies between individual requirements (i.e., conflicts between requirements).
Which of the following CORRECTLY identifies inconsistencies between pairs of requirements?
a) 6-10, 6-15, 7-12
b) 6-15, 9-11
c) 6-10, 6-15, 9-11
d) 6-15, 7-12
Considering the potential inconsistencies:
* 6-10 – If librarians should get system responses within 5 seconds, it is NOT inconsistent for borrowers to get system responses within 3 seconds.
* 6-15 - If librarians should get system responses within 5 seconds, it is inconsistent for all users to get system responses within 3 seconds.
* 7-12 – If borrowers can borrow a maximum of 3 books at one time it is NOT inconsistent for them to also reserve books (if they are on-loan).
* 9-11 – If a borrower can be fined for failing to return a book within 3 weeks it is inconsistent for them to also be allowed to borrow a book at no cost for a maximum of 4 weeks – as the length of valid loans are different.
Of the potential inconsistencies, 6-15 and 9-11 are valid inconsistencies.
Thus:
a) Is not correct
b) Is correct
c) Is not correct
d) Is not correct
19 Which of the following provides the BEST description of exploratory testing?
a) A testing practice in which an in-depth investigation of the background of the test object is used to identify potential weaknesses that are examined by test cases
b) An approach to testing whereby the testers dynamically design and execute tests based on their knowledge, exploration of the test item and the results of previous tests
c) An approach to test design in which test activities are planned as uninterrupted sessions of test analysis and design, often used in conjunction with checklist-based testing
d) Testing based on the tester’s experience, knowledge, and intuition
a) Is not correct. Exploratory testing is often carried out when timescales are short, so making in-depth investigations of the background of the test object is unlikely
b) Is correct. Glossary definition
c) Is not correct. Based on the Glossary definition of session-based testing, but with test execution replaced by test analysis
d) Is not correct. Glossary definition of experience-based testing
20 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
Using notation for the following 4 options:
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
The correct pairing of descriptions with the different categories of test
techniques is:
* Black-box test techniques
Deviations from the requirements are checked (4) User stories are used as the test basis (5)
* White-box test techniques
Coverage is measured based on a selected structure of the test object (1) The processing within the test object is checked (2)
* Experience-based test techniques
Tests are based on defects’ likelihood and their distribution (3)
Thus:
a) Is correct
b) Is not correct
c) Is not correct
d) Is not correct
21 A fitness app measures the number of steps that are walked each day and provides feedback to encourage the user to keep fit.
The feedback for different numbers of steps should be:
Up to 1000 - Couch Potato!
Above 1000, up to 2000 - Lazy Bones!
Above 2000, up to 4000 - Getting There!
Above 4000, up to 6000 - Not Bad!
Above 6000 - Way to Go!
Which of the following sets of test inputs would achieve the BEST equivalence partition coverage?
a) 0, 1000, 2000, 3000, 4000
b) 1000, 2001, 4000, 4001, 6000
c) 123, 2345, 3456, 4567, 5678
d) 666, 999, 2222, 5555, 6666
The following valid equivalence partitions can be identified:
1. Up to 1000 - Couch Potato!
2. Above 1000, up to 2000 - Lazy Bones!
3. Above 2000, up to 4000 - Getting There!
4. Above 4000, up to 6000 - Not Bad!
5. Above 6000 - Way to Go!
The sets of test inputs therefore cover the following partitions:
a) Is not correct. 0 (1), 1000 (1), 2000 (2), 3000 (3), 4000 (3) – 3 partitions (out of 5)
b) Is not correct. 1000 (1), 2001 (3), 4000 (3), 4001 (4), 6000 (4) – 3 partitions (out of 5)
c) Is not correct. 123 (1), 2345 (3), 3456 (3), 4567 (4), 5678 (4) – 3 partitions (out of 5)
d) Is correct. 666 (1), 999 (1), 2222 (3), 5555 (4), 6666 (5) – 4 partitions (out of 5)
22 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:
Hours Intensity Score T1 1.5 v. low 10 T2 7.0 medium 60 T3 0.5 v. low 10
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
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:
T1 1.5 (1) Very low (4)
T2 7.0 (3) Medium (6)
T3 0.5 (1) Very low (4)
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
23 A smart home app measures the average temperature in the house over the previous week and provides feedback to the occupants on their environmental friendliness based on this temperature.
The feedback for different average temperature ranges (to the nearest °C) should be:
Up to 10°C - Icy Cool!
11°C to 15°C - Chilled Out!
16°C to 19°C - Cool Man!
20°C to 22°C - Too Warm!
Above 22°C - Hot & Sweaty!
Using BVA (only Min- and Max values), which of the following sets of test inputs provides the
highest level of boundary coverage?
a) 0°C, 11°C, 20°C, 22°C, 23°C
b) 9°C, 15°C, 19°C, 23°C, 100°C
c) 10°C, 16°C, 19°C, 22°C, 23°C
d) 14°C, 15°C, 18°C, 19°C, 21°C, 22°C
For the input equivalence partitions given, the above used boundary value technique yields the following 8 coverage items:
10°C, 11°C, 15°C, 16°C, 19°C, 20°C, 22°C, 23°C.
Hence, the options have the following boundary value coverage:
a) Is not correct. 4 out of 8 (11, 20 ,22 and 23)
b) Is not correct. 3 out of 8 (15, 19 and 23)
c) Is correct. 5 out of 8 (10, 16, 19, 22 and 23)
d) Is not correct. 3 out of 8 (15, 19 and 22)
24 Decision table testing is being performed on a speeding fine system. Two test cases have already been generated for rules R1 and R4, which are shown below:
Rules R1 R4 Conditions Speed > 50 T F School Zone T F Actions $250 Fine F F Driving license withdrawal T F
Given the following additional test cases:
Rules DT1 DT2 DT3 DT4
Input Speed 55 44 66 77
School Zone T T T F
Expected Result $250 Fine F F F T
Driving license withdrawal T F T F
Which two of the additional test cases would achieve full coverage of the complete decision table (when combined with the test cases that have already been generated for rules R1 and R4)?
a) DT1, DT2
b) DT2, DT3
c) DT2, DT4
d) DT3, DT4
The complete decision table is shown below:
Rules R1 R2 R3 R4
Inputs Speed > 50 T T F F
School Zone T F T F
Outputs $250 Fine F T F F
Driving license withdrawal T F F F
To achieve full coverage, test cases covering rules 2 and 3 are needed.
DT4 satisfies the constraints of rule 2, while DT2 satisfies the constraints of rule 3.
Thus:
a) Is not correct
b) Is not correct
c) Is correct
d) Is not correct