Lesson 1: Fundamental of Testing Flashcards

1
Q

Which one of the following answers describes a test condition?(Sample exam set A)

a) A distinguishing characteristic of a component or system
b) A testable aspect of a component or system identified as a basis for testing
c) The degree to which a software product provides functions which meet stated and implied
needs when the software is used under specified conditions
d) Test cases designed to execute combinations of conditions and actions resulting from them

A

a) Is not correct. Definition of feature according to glossary
b) Is correct. From glossary
c) Is not correct. Definition of functionality suitability according to glossary
d) Is not correct. Like Definition of Decision table testing according to
glossary

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Which of the following statements is a valid objective for testing?
a) The test should start as late as possible so that development had enough time to create a
good product
b) To validate whether the test object works as expected by the users and other stakeholders
c) To prove that all possible defects are identified
d) To prove that any remaining defects will not cause any failures
Select ONE option.

A

a) Is not correct. Contradiction to principle 3: “Early testing saves time and
money”
b) Is correct. This is one objective of testing
c) Is not correct. Principle #2 states that exhaustive testing is impossible,
so one can never prove that all defects were identified
d) Is not correct. To make an assessment whether a defect will cause a
failure or not, one must detect the defect first. Saying that no remaining
defect will cause a failure implicitly means that all defects were found.
This again contradicts principle #2

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

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.

A

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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Which one of the statements below describes the most common situation for a failure discovered
during testing or in production?
a) The product crashed when the user selected an option in a dialog box
b) The wrong version of a compiled source code file was included in the build
c) The computation algorithm used the wrong input variables
d) The developer misinterpreted the requirement for the algorithm
Select ONE option.

A

a) Is correct. A crash is clearly noticeable by the user
b) Is not correct. This is a defect, not a failure since there is something
wrong in the code. It may not result in a visible or noticeable failure, for
example if the changes in the source code file are only in comments
c) Is not correct. The use of wrong input variables may not result in a
visible or noticeable failure, for example if nobody uses this particular
algorithm; or if the wrong input variable has a similar value to the
correct input variable; or if the FALSE result of the algorithm is not used
d) Is not correct. This type of fault will not necessarily lead to a failure; for
example, if no one uses this special algorithm

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Mr. Test has been testing software applications on mobile devices for a period of 5 years. He has a
wealth of experience in testing mobile applications and achieves better results in a shorter time
than others. Over several months, Mr. Test did not modify the existing automated test cases and
did not create any new test cases. This leads to fewer and fewer defects being found by executing
the tests. What principle of testing did Mr. Test not observe?
a) Testing depends on the environment
b) Exhaustive testing is not possible
c) Repeating of same tests will not find new defects
d) Defects cluster together
Select ONE option.

A

a) Is not correct. Testing is context dependent, regardless of it being
manual or automated (principle #6), but does not result in detecting a
decreasing number of faults as described above
b) Is not correct. Exhaustive testing is impossible, regardless of the
amount of effort put into testing (principle #2)
c) Is correct. Principle #5 says “If the same tests are repeated over and
over again, eventually these tests no longer find any new defects. To
detect new defects, existing tests and test data may need changing,
and new tests may need to be written.” Automated regression testing of
the same test cases will not bring new findings
d) Is not correct. ”Defect cluster together” (principle #4). A small number of
modules usually contain most of the defects, but this does not mean
that fewer and fewer defects will be found

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

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.

A

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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

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.

A

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)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Match the following test work products (1-4) with the right description (A-D).
1. Test suite
2. Test case
3. Test script
4. Test charter
A. A set of test scripts to be executed in a specific test run
B. A set of instructions for the execution of a test
C. Contains expected results
D. Documentation of test activities in session-based exploratory testing
a) 1A, 2C, 3B, 4D
b) 1D, 2B, 3A, 4C
c) 1A, 2C, 3D, 4B
d) 1D, 2C, 3B, 4A
Select ONE option.

A

Glossary defines the following tests as:
• Test suite: “A set of test scripts or test procedures to be executed in
a specific test run.” (1A)
• Test case: “A set of preconditions, inputs, actions (where
applicable), expected results and post conditions, developed based
on test conditions” (2C)
• Test script: “A sequence of instructions for the execution of a test”
(3B)
• Test charter: “Documentation of test activities in session-based
exploratory testing” (4D)
Thus:
a) Is correct
b) Is not correct
c) Is not correct
d) Is not correct

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

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
Select ONE option.

A

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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

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
Select ONE option.

A

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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

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
Select ONE option.
Question #4 (1 P

A

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)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

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

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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

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
Select ONE option.

A

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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

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
Select ONE option.

A

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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

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
Select ONE option.

A

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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

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
Select ONE option.

A

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

17
Q

What is quality?
a) Activities focused on providing confidence that quality requirements will be fulfilled
b) The degree to which a component or system satisfies the stated and implied needs of its
various stakeholders
c) The degree to which a component or system protects information and data so that persons
or other components or systems have the degree of access appropriate to their types and
levels of authorization
d) The total costs incurred on quality activities and issues and often split into prevention costs,
appraisal costs, internal failure costs and external failure costs

A

a) Is not correct. This is the Glossary definition of quality assurance
b) Is correct. This is the Glossary definition of quality
c) Is not correct. This is the Glossary definition of security
d) Is not correct. This is the Glossary definition of cost of quality

18
Q

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.

A

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

19
Q

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.

A

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

20
Q

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

A

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

21
Q

Programmers often write and execute unit tests against code which they have written. During this
self-testing activity, which of the following is a tester mindset that programmers should adopt to
perform this unit testing effectively?
a) Good communication skills
b) Code coverage
c) Evaluating code defects
d) Attention to detail
Select ONE option.

A

a) Is not correct. The programmer appears to be performing unit testing on
their own code
b) Is not correct. Code coverage is useful for unit testing, but it is not a
tester mindset
c) Is not correct. The programmer’s mindset included contemplating what
might be wrong with the code, but that is not a tester’s mindset
d) Is correct. This tester mindset, attention to detail, will help programmers
find defects during unit testing

22
Q

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.

A

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

23
Q

ations Board
Select ONE option.
Question #5 (1 Point)
Programmers often write and execute unit tests against code which they have written. During this
self-testing activity, which of the following is a tester mindset that programmers should adopt to
perform this unit testing effectively?
a) Good communication skills
b) Code coverage
c) Evaluating code defects
d) Attention to detail
Select ONE option.
Question #6 (1 Point)
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.
Question #7 (1 Point)

A

a) Is not correct. While enabling required tests to be identified in an early
stage is a testing contribution to success, there is no indication in the
question that the tester did so
b) Is not correct. Ensuring processes are carried out properly is part of
quality assurance, not a testing contribution to success
c) Is correct. Reducing the risk of fundamental design defects is a testing
contribution to success. Database structure is related to design, and
performance problems can be a significant product risk
d) Is not correct. While reducing the risk of untestable functionality is a
testing contribution to success, the tester here has not identified
something untestable, but rather something that would result in
performance tests failing

24
Q

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.

A

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

25
Q

END OF ISTQB practice exam

A