Sample Exam - Questions v1.3 Flashcards
https://www.istqb.org/downloads/send/54-ctfl-2018-exam-files/212-ctfl-2018-sample-exam-a.html
Which one of the following answers describes a test condition?
a) An attribute of a component or system specified or implied by requirements documentation.
b) An aspect of the test basis that is relevant to achieve specific test objectives.
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) The percentage of all single condition outcomes that independently affect a decision
outcome that have been exercised by a test suite.
b) Is correct: From glossary
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 find as many failures as possible so that defects can be identified and corrected.
c) To prove that all possible defects are identified.
d) To prove that any remaining defects will not cause any failures
b) Is correct: This is one objective of testing (syllabus chapter
1. 1.1).
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 finds, analyzes, and removes
the causes of failures in the software.
c) Testing removes defects; debugging identifies the causes of failures.
d) Dynamic testing prevents the causes of failures; debugging removes the failures.
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, not the root cause of the
defects (syllabus 1.1.2)
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.
a) Is correct: A crash is clearly noticeable by the user (syllabus
chapter 1.2.3).
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 tests will not find new defects.
d) Defects cluster together.
Select ONE option.
c.) Is correct: Syllabus 1.3: 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
In what way can testing be part of Quality Assurance?
a) It ensures that requirements are detailed enough.
b) It contributes to the achievement of quality in a variety of ways.
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.
b) Is correct: Syllabus 1.2.2. Testing contributes to the
achievement of quality in a variety of ways, e.g. such as
reducing the risk of inadequate software quality (syllabus
chapter 1.1.1).
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.
d) Is correct: This activity is performed during the test analysis
activity (syllabus chapter 1.4.2, test analysis).
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 group of test scripts with a sequence of instructions.
B. A set of instructions for the execution of a test.
C. Contains expected results.
D. An instruction of test goals and possible test ideas on how to test.
a) 1A, 2C, 3B, 4D.
b) 1D, 2B, 3A, 4C.
c) 1A, 2C, 3D, 4B.
d) 1D, 2C, 3B, 4A
a) 1A, 2C, 3B, 4D.
How can white-box testing be applied during acceptance testing?
a) To check if large volumes of data can be transferred between integrated systems.
b) To check if all code statements and code decision paths have been executed.
c) To check if all work process flows have been covered.
d) To cover all web page navigations.
Select ONE option.
c) Is correct: syllabus chapter 2.3.5: For acceptance testing, tests
are designed to cover all supported financial data file
structures and value ranges for bank-to-bank transfers
Which of the following statements comparing component testing and system testing is TRUE?
a) Component testing verifies the functionality of software modules, program objects, and
classes that are separately testable, whereas system testing verifies interfaces between
components and interactions between different parts of the system.
b) Test cases for component testing are usually derived from component specifications,
design specifications, or data models, whereas test cases for system testing are usually
derived from requirement specifications or use cases.
c) Component testing only focuses on functional characteristics, whereas system testing
focuses on functional and non-functional characteristics.
d) Component testing is the responsibility of the testers, whereas system testing typically is
the responsibility of the users of the system.
b) Is correct: Syllabus 2.2.1: Examples of work products that can
be used as a test basis for component testing include detailed
design, code, data model, component specifications. Syllabus
2.2.3: Examples of work products for system testing include
system and software requirement specifications (functional and
non-functional) use cases.
Which one of the following is TRUE?
a) The purpose of regression testing is to check if the correction has been successfully
implemented, while the purpose of confirmation testing is to confirm that the correction has
no side effects.
b) The purpose of regression testing is to detect unintended side effects, while the purpose of
confirmation testing is to check if the system is still working in a new environment.
c) The purpose of regression testing is to detect unintended side effects, while the purpose of
confirmation testing is to check if the original defect has been fixed.
d) The purpose of regression testing is to check if the new functionality is working, while the
purpose of confirmation testing is to check if the original defect has been fixed.
c) Is correct: Syllabus chapter 2.3.4.
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 begins 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.
a) Is correct: Syllabus chapter 2.1.1: incremental development
involves establishing requirements, designing, building, and
testing a system in pieces.
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”.
a) Is correct: This is maintainability testing, not maintenance
testing.
Which of the following options are roles in a formal review?
a) Developer, Moderator, Review leader, Tester.
b) Author, Moderator, Manager, Developer.
c) Author, Manager, Review leader, Designer.
d) Author, Moderator, Review leader, Scribe.
d) Is correct: See syllabus chapter 3.2.2
Which activities are carried out within the planning of a formal review?
a) Collection of metrics for the evaluation of the effectiveness of the review.
b) Answer any questions the participants may have.
c) Verification of input criteria for the review..
d) Evaluation of the review findings against the exit criteria.
c) Is correct: According to syllabus chapter 3.2.1: The checking
of entry criteria takes place in the planning of a formal review
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.
c) Is correct: As per syllabus 3.2.3: inspection is a formal process
based on rules and checklists.
Which TWO of the following statements about static testing are MOST true?
a) Static testing is a cheap way to detect and remove defects.
b) Static testing makes dynamic testing less challenging.
c) Static testing allows early validation of user requirements.
d) Static testing makes it possible to find run-time problems early in the lifecycle.
e) When testing safety-critical system, static testing has less value because dynamic testing
finds the defects better.
Select TWO options.
a) Is correct: Syllabus chapter 3.1.2: defects found early are often
much cheaper to remove than defects detected later in the
lifecycle.
c) Static testing allows early validation of user requirements.
You will be invited to a review. The work product to be reviewed is a description of the in-house
document creation process. The aim of the description is to present the work distribution between
the different roles involved in the process in a way that can be clearly understood by everyone.
You will be invited to a checklist-based review. The checklist will also be sent to you. It includes the
following points:
i. Is the person who performs the activity clearly identified for each activity?
ii. Is the entry criteria clearly defined for each activity?
iii. Is the exit criteria clearly defined for each activity?
iv. Are the supporting roles and their scope of work clearly defined for each activity?
In the following we show an excerpt of the work result to be reviewed, for which you should use the
checklist above:
“After checking the customer documentation for completeness and correctness, the software
architect creates the system specification. Once the software architect has completed the system
specification, he invites testers and verifiers to the review. A checklist describes the scope of the
review. Each invited reviewer creates review comments - if necessary - and concludes the review
with an official review done-comment.”
Which of the following statements about your review is correct?
a) Point ii) of the checklist has been violated because it is not clear which condition must be
fulfilled in order to invite to the review.
b) You notice that in addition to the tester and the verifier, the validator must also be invited.
Since this item is not part of your checklist, you do not create a corresponding comment.
c) Point iii) of the checklist has been violated as it is not clear what marks the review as
completed.
d) Point i) of the checklist has been violated because it is not clear who is providing the
checklist for the invitation to the review.
a) Is not correct: It is described that the software architect must
have completed the system specification.
b) Is not correct: In syllabus chapter 3.2.4 ‘checklist-based’, last
sentence it is documented that you should also look for defects
outside the checklist.
c) Is not correct: It is described: every reviewer did his review
done comment.
d) Is correct: It is described that a checklist is available, but who
provides the checklist?
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) Procedure to derive and/or select test cases based on an analysis of the specification,
either functional or non-functional, of a component or system without reference to its
internal structure.
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 has
to 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.
c) Is correct: Defined in glossary V.3.2
Which one of the following options is categorized as a black-box test technique?
a) A technique based on analysis of the architecture.
b) A technique checking that the test object is working according to the technical design.
c) A technique based on the knowledge of past faults, or general knowledge of failures.
d) A technique based on formal requirements.
d) Is correct: Syllabus 4.1.2: Black-box test techniques are based
on an analysis of the appropriate test basis (e.g. formal
requirements documents, specifications, use cases, user
stories).
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.
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 (syllabus chapter 4.3).
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.
b) Is correct: Syllabus 4.3.1: 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.
Which statement about the relationship between statement coverage and decision coverage is
true?
a) 100% decision coverage also guarantees 100% statement coverage.
b) 100% statement coverage also guarantees 100% decision coverage.
c) 50% decision coverage also guarantees 50% statement coverage.
d) Decision coverage can never reach 100%.
a) Is correct: The statement is true. Achieving 100% decision
coverage guarantees 100% statement coverage (syllabus
chapter 4.3.3 third paragraph).
For which of the following situations is explorative 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 sufficient knowledge of similar applications and
technologies.
d) When an advanced knowledge of the system already exists and evidence is to be provided
that it should be tested intensively.
c) Is correct: Exploratory tests should be performed by
experienced testers with knowledge of similar applications and
technologies (syllabus chapter 4.4 and 1.4.2).