Chapter 3 Static Testing Flashcards
(40 cards)
Static Analysis
A. A static testing
B. Done by the developers
C. Both A. and B
D. None of the above
C. Both A. and B
Why are static testing and dynamic testing described as complementary?
A. Because they share the aim of identifying defects and find the same types of defect.
B. Because they have different aims and differ in the types of defect they find.
C. Because they have different aims but find the same types of defect.
D. Because they share the aim of identifying defects but differ in the types of defect they find.
D. Because they share the aim of identifying defects but differ in the types of defect they find.
Ensuring that test design starts during the requirements definition phase is important to
enable which of the following test objectives?
A. Preventing defects in the system.
B. Finding defects through dynamic testing.
C. Gaining confidence in the system.
D. Finishing the project on time.
A. Preventing defects in the system.
Find the correct flow of the phases of a formal review
A. Planning, Individual Review, Initiate Review, Issue Comm & Analysis, Fixing & reporting
B. Planning, Initiate Review, Individual Review, Issue Comm & Analysis, Fixing & reporting
C. Planning, Issue Comm & Analysis, Individual Review, Initiate Review, Fixing & reporting
D. Planning, Individual Review, Initiate Review, Fixing & reporting, Issue Comm & Analysis
B. Planning, Initiate Review, Individual Review, Issue Comm & Analysis, Fixing & reporting
The Planning phase of a formal review includes the following:
A. Explaining the objective
B. Fixing defects found typically done by author
C. Defining the entry and exit criteria
D. Individual Meeting preparations
C. Defining the entry and exit criteria
Which of the following BEST describes the difference between an inspection and a walkthrough?
A. Both inspections and walkthroughs are led by the author.
B. An inspection is led by a moderator and a walkthrough is led by the author.
C. Both inspections and walkthroughs are led by a trained moderator.
D. A walkthrough is led by the author. The author is not present during inspections.
B. An inspection is led by a moderator and a walkthrough is led by the author.
Who is responsible for document all the issues, problems and open point that were
identified during the review meeting
A. Moderator
B. Scribe
C. Reviewers
D. Author
B. Scribe
Which of the following is true about Formal Review or Inspection:-
i. Led by Trained Moderator (not the author).
ii. No individual Preparations
iii. Formal Follow up process.
iv. Main Objective is to find defects
A. ii is true and i,iii,iv are false
B. i,iii,iv are true and ii is false
C. i,iii,iv are false and ii is true
D. iii is true and i,ii,iv are false
B. i,iii,iv are true and ii is false
Which of the following are types of static Testing ?
A. Ad hoc & Perspective-based
B. Inspection & Walkthrough
C. Review & Static Analysis
D. White-Box & Black Box
C. Review & Static Analysis
Data flow analysis studies:
A. Possible communications bottlenecks in a program.
B. The rate of change of data values as a program executes.
C. The use of data on paths through the code.
D. The intrinsic complexity of the code.
C. The use of data on paths through the code
Which of the following will NOT be detected by static analysis?
A. Programming standard violations.
B. Errors in requirements.
C. Undeclared variables.
D. Dead Code.
B. Errors in requirements.
What type of review requires formal entry and exit criteria, including metrics:
A. Walkthrough
B. Inspection
C. Management review
D. Post project review
B. Inspection
Of the following statements about reviews of specifications, which statement is true?
A. Reviews are not generally cost effective as the meetings are time consuming and require preparation
and follow up.
B. There is no need to prepare for or follow up on reviews.
C. Reviews must be controlled by the author.
D. Reviews are a cost effective early static test on the system.
D. Reviews are a cost effective early static test on the system.
Which of the following is a purpose of the review planning phase?
A. Log defects.
B. Explain the documents to the participants.
C. Gather metrics.
D. Allocate the individual roles.
D. Allocate the individual roles.
Who are the persons involved in a Formal Review:
i. Manager
ii. Moderator
iii. Scribe / Recorder
iv. Assistant Manager
A. i,ii,iii,iv are true
B. i,ii,iii are true and iv is false.
C. ii,iii,iv are true and i is false.
D. i,iv are true and ii, iii are false.
B. i,ii,iii are true and iv is false.
Which of the following statements regarding static testing is false:
A. Static testing requires the running of tests through the code
B. Static testing includes desk checking
C. Static testing includes techniques such as reviews and inspections
D. Static testing can give measurements such as cyclomatic complexity
A. Static testing requires the running of tests through the code
_________ reviews are often held with just the programmer who wrote the code and one or
two other programmers or testers.
A. Formal Reviews
B. Peer Reviews
C. Semi Formal Reviews
D. All of the above
B. Peer Reviews
Which of the following characteristics and types of review processes belong together?
- Led by the author
- Undocumented
- Gaining Consensus
- Led by a trained moderator or leader
- Uses entry and exit criteria
s. Inspection
t. Technical review
u. Informal review
v. Walkthrough
A. s = 4, t = 3, u = 2 and 5, v = 1
B. s = 4 and 5, t = 3, u = 2, v = 1
C. s = 1 and 5, t = 3, u = 2, v = 4
D. s = 5, t = 4, u = 3, v = 1 and 2
B. s = 4 and 5, t = 3, u = 2, v = 1
Which characteristics BEST describe a walkthrough?
A. Documented, includes peers and experts
B. Formal process, collects metrics
C. Defined roles, led by trained moderator
D. Led by the author, may be documented
D. Led by the author, may be documented
Which of the following would NORMALLY be identified by static testing?
A. Mistake
B. Defect
C. Failure
D. Error
B. Defect
As a moderator in a typical formal review, what can be one of your responsibilities?
A. Deciding on the execution of reviews
B. Documenting all the issues and problems
C. Leading the review of the documents
D. Identifying and describing the findings
C. Leading the review of the documents
What is the main purpose of Informal review? (Chapter 3) A. improve the software product
B. Detecting potential defects
C. Learning, gaining understanding, effect finding
D. Discuss, make decisions, solve technical problems
B. Detecting potential defects
Could reviews or inspections be considered part of testing?
A. no, because they apply to development documentation
B. no, because they are normally applied before testing
C. yes, because both help detect faults and improve quality
D. yes, because testing includes all non-constructive activities
C. yes, because both help detect faults and improve quality
Which of the following is a Key Characteristic of Walk Through?
A. Scenario, Dry Run, Simulations
B. Pre-Meeting Preparations
C. Formal Follow Up Process
D. Includes Metrics
A. Scenario, Dry Run, Simulations