CTFL 3.1.1: Recognize types of work products that can be examined by static testing
K1Syllabus section 3.1.1
3 original PrepBench practice questions for learning objective 3.1.1 of the CTFL 4.0 syllabus. Try the examples below and check each answer against its syllabus reference.
Practice questions
Question 1
Which statement about the work products that static testing can examine is correct?
- Any work product with a formal syntax, since static testing is always performed with a tool
- Any work product that can be executed, since its behaviour must be observable
- Almost any readable work product — requirements, code, test plans, contracts, models
- Work products the team produced itself, since third-party material is out of scope
Show answer
- Any work product with a formal syntax, since static testing is always performed with a toolA formal syntax is needed only for static analysis; a review requires just readability.
- Any work product that can be executed, since its behaviour must be observableBeing executable is the precondition for dynamic testing, not for static testing.
- Correct answer: Almost any readable work product — requirements, code, test plans, contracts, modelsAlmost any readable work product qualifies, whoever produced it.
- Work products the team produced itself, since third-party material is out of scopeThird-party work products such as contracts are named among the examinable ones.
Almost any work product can be examined using static testing; the examples given include requirement specification documents, source code, test plans, test cases, product backlog items, test charters, project documentation, contracts and models. Any work product that can be read and understood can be the subject of a review; only static analysis needs a structure against which it can be checked.
Syllabus section 3.1.1
Question 2
Which work product may be unsuitable for static testing?
- Executable code supplied by a third party
- Source code written by the team itself
- A model of the system produced during design
- A test charter written for an exploratory session
Show answer
- Correct answer: Executable code supplied by a third partyThird-party executable code may be unsuitable when it is hard to interpret and legal terms prevent tool analysis.
- Source code written by the team itselfSource code is named among the work products that can be examined by static testing.
- A model of the system produced during designModels are named among the examinable work products and have the structure static analysis needs.
- A test charter written for an exploratory sessionTest charters are named among the work products that can be examined by static testing.
Almost any work product can be examined using static testing; the examples given include requirement specification documents, source code, test plans, test cases, product backlog items, test charters, project documentation, contracts and models. The work products that are not appropriate are those difficult for human beings to interpret and that should not be analyzed by tools, such as third-party executable code that may not be analyzed for legal reasons.
Syllabus section 3.1.1
Question 3
What does a work product need in order to be examined by static analysis rather than review?
- It must be readable and understandable by the reviewers taking part
- It must be executable, so that the tool can observe its behaviour
- It must be free of legal restrictions on analysing third-party material
- It must have a structure against which it can be checked, such as a formal syntax
Show answer
- It must be readable and understandable by the reviewers taking partBeing readable and understandable is what qualifies a work product for a review.
- It must be executable, so that the tool can observe its behaviourStatic analysis does not execute the work product; that is dynamic testing.
- It must be free of legal restrictions on analysing third-party materialLegal restrictions explain one exclusion from static testing, not what analysis needs.
- Correct answer: It must have a structure against which it can be checked, such as a formal syntaxStatic analysis needs a checkable structure, such as a formal syntax.
Any work product that can be read and understood can be the subject of a review. For static analysis, however, work products need a structure against which they can be checked, for example models, or code or text with a formal syntax.
Syllabus section 3.1.1
Original PrepBench practice material, not official exam questions or exam dumps. PrepBench is independent and is not affiliated with or endorsed by ISTQB®.