Sample example b v1.1 Flashcards
https://www.istqb.org/downloads/send/54-ctfl-2018-exam-files/246-ctfl-2018-sample-questions-exam-b-v1-1-questions.html
Which of the following provides the BEST description of a test case?
a) A document specifying a sequence of actions for the execution of a test. Also known as test
script or manual test script.
b) A set of input values and expected results, with execution preconditions and execution
postconditions, developed for a particular test condition.
c) An attribute of a system specified by requirements documentation (for example reliability,
usability or design constraints) that is executed in a test.
d) An item or event of a system that could be verified by one or more test conditions, e.g., a
function, transaction, feature, quality attribute, or structural element.
b) Correct: Based on definition from Glossary.
Which of the following is a major objective of testing?
a) To prevent defects.
b) To validate the project plan works as required.
c) To gain confidence in the development team.
d) To make release decisions for the system under test.
Select ONE option.
a) Correct: One of the major objectives of testing from the
syllabus (1.1.1).
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 in km/h.
c) Correct: This is a deviation from the expected functionality - a
cruise control system should not be affected by the radio.
Which of the following is a defect rather than a root cause in a fitness tracker?
a) Because he was unfamiliar with the domain of fitness training, the author of the requirements
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 she had never worked on wearable devices before, the designer of the user interface
misunderstood the effects of reflected sunlight.
c) Correct: The incorrect configuration data represents faulty
software in the fitness tracker (a defect), that may cause
failures.
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.
d) 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.
Given the following test activities and tasks:
A. Test design
B. Test implementation
C. Test execution
D. Test completion
1. Entering change requests for open defect reports
2. Identifying test data to support the test cases
3. Prioritizing test procedures and creating test data
4. 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
A. Test design – (2) Identifying test data to support the test
cases
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.
b) 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.
Which of the following qualities is MORE likely to be found in a tester’s mindset rather than in a
developer’s?
a) Experience on which to base their efforts.
b) Ability to see what might go wrong.
c) Good communication with team members.
d) Attention to detail.
b) Correct: Developers are often more interested in designing
and building solutions than in contemplating what might be
wrong with those solutions.
Given the following statements about the relationships between software development activities and
test activities in the software development lifecycle:
1. Each development activity should have a corresponding testing activity.
2. Reviewing should start as soon as final versions of documents become available.
3. The design and implementation of tests should start during the corresponding development.
activity
4. 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, 2
c) True – 1, 2, 4; False – 3
d) True – 1, 4; False – 2, 3
- Testing activities should start in the early stages of the
software development lifecycle. TRUE - as described in the
syllabus (2.1.1).
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) Component integration testing.
b) Acceptance testing.
c) System testing.
d) Component testing.
Considering the scenario and the syllabus (2.2):
1. ‘testing is based on interface specifications’ – the test basis
for component 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 component 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 component 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, option A is correct.
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 Whitebox testing
is restricted to component and integration testing.
c) Correct: It is possible to perform any of the test types
(functional, non-functional, white-box) at any test level.
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.
b) Correct: The descriptions of both confirmation and
regression testing match the intent of those in the
syllabus
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) 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, as per syllabus (2.4.2).
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 removing 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.
d) Correct: This is a benefit of static analysis, as per
syllabus (3.1.2).
Which of the following sequences BEST shows the main activities of the work product review process?
a) Initiate review – Reviewer selection – Individual review – Issue communication and analysis –
Rework
b) Planning & preparation – Overview meeting – Individual review – Fix– Report
c) Preparation – Issue Detection – Issue communication and analysis – Rework – Report
d) Plan – Initiate review – Individual review – Issue communication and analysis – Fix defects &
report
Select ONE option.
d) Correct: This is the order of the activities as provided in the syllabus (3.2.1).
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) Correct: As stated in the syllabus (3.2.2).
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 and the syllabus (3.2.3):
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, option B is correct.
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.
Thus, of the potential inconsistencies, 6-15 and 9-11 are valid
inconsistencies, and so option B is correct.
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.
b) Correct: Glossary definition.
Which of the following BEST matches the descriptions with the different categories of test techniques?
1. Coverage is measured based on a selected structure of the test object.
2. The processing within the test object is checked.
3. Tests are based on defects’ likelihood and their distribution.
4. Deviations from the requirements are checked.
5. 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
The correct pairing of descriptions with the different categories
of test techniques, according to the syllabus (4.1.1) 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, option A is correct.
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 highest 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) 0 (1), 1000 (1), 2000 (2), 3000 (3), 4000 (3) – 3 partitions
(out of 5)
b) 1000 (1), 2001 (3), 4000 (3), 4001 (4), 6000 (4) – 3 partitions
(out of 5)
c) 123 (1), 2345 (3), 3456 (3), 4567 (4), 5678 (4) – 3 partitions
(out of 5)
d) 666 (1), 999 (1), 2222 (3), 5555 (4), 6666 (5) – 4 partitions
(out of 5)
Thus, option D is correct.
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 two-point BVA, 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
The input equivalence partitions, with two-point boundary
values, can be represented as the number of boundary values
covered by the test inputs is therefore:
a) 0°C 11°C 20°C 22°C 23°C → 4 (11, 20, 22 and
23)
b) 9°C 15°C 19°C 23°C 100°C → 3 (15, 19 and 23)
c) 10°C 16°C 19°C 22°C 23°C → 5 (10, 16, 19, 22
and 23)
d) 14°C 15°C 18°C 19°C 21°C 22°C → 3 (15, 19 and 22)
Thus, option C is correct.
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) Correct: The syllabus (4.2.5) 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).
Which of the following descriptions of statement coverage is CORRECT?
a) Statement coverage is a measure of the number of lines of source code (minus comments)
exercised by tests.
b) Statement coverage is a measure of the proportion of executable statements in the source
code exercised by tests.
c) Statement coverage is a measure of the percentage of lines of source code exercised by tests.
d) Statement coverage is a measure of the number of executable statements in the source code
exercised by tests.
b) Correct: Statement coverage is a measure of the proportion
of executable statements exercised (normally presented as a
percentage), per syllabus (4.3.1).