Static Testing - Answer
Static Testing - Answer
s) Inspection
t) Peer 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
8. Which of the following statements is NOT true:
A. Inspection is the most formal review process
B. Inspections should be led by a trained leader
C. Managers can perform inspections on management documents
D. Inspection is appropriate even when there are no written documents
E. Inspection compares documents with predecessor (source) documents
9. What can static analysis NOT find?
A. The use of a variable before it has been defined
B. Unreachable ("dead") code
C. Whether the value stored in a variable is correct
D. The re-definition of a variable before it has been used
E. Array bound violations
10. Which rule should not be followed for reviews
A. Defects and issues are identified and corrected
B. Defects and issues are identified and corrected
C. All members of the reviewing team are responsible for the result of the review
D. Each review has a clear predefined objective
11. Which of the following are good candidates for manual static testing?
A. Requirement specifications, test plan, code, memory leaks.
B. Requirement specifications, test cases, user guides.
C. Requirement specifications, user guides, performance.
D. Requirement specifications, website, code, use cases.
12. Static analysis tools are typically used by
A. Testers
B. Developers
C. Testers and Developers
D. None
13. Which of the following statements are TRUE for informal reviews?
I. Easy to get started and have some benefit
II. Have no or minimal formal process
III. The process must be documented
IV. May include "paired programming"
A. I, II and IV
B. I and III
C. III and IV
D. I, III and IV
14. Who is responsible for documenting all the issues, problems and open point that were
identified during the review meeting
A. Moderator
B. Scribe
C. Reviewers
D. Author
15. 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.
16. Which test requires the execution of the software component?
A. Formal inspection
B. Dynamic testing
C. Code walkthrough
D. Execution testing
17. Who typically use static analysis tools?
A. Customers and users
B. Developers and designers
C. Business and systems analysts
D. System and acceptance testers
18. For which of the following would a static analysis tool be MOST useful?
A. Supporting reviews.
B. Validating models of the software.
C. Testing code executed in a special test harness.
D. Enforcement of coding standards.
19. Typical defects that are easier to find in reviews than in dynamic testing are:
A. Deviations from standards,
B. Requirement defects,
C. Design defects,
D. All of the above.
20. Reviews, static analysis and dynamic testing have the same objective
A. Identifying defects.
B. Fixing defects.
C. A. and B
D. None of the above
21. Find the correct flow of the phases of a formal review
A. Planning, Review meeting, Rework, Kickoff
B. Planning, Individual preparation, Kickoff, Rework
C. Planning, Review meeting, Rework, Follow up
D. Planning, Individual preparation, Follow up, Kick off
22. One person has been dominating the current software process improvement meeting.
Which of the following techniques should the facilitator use to bring other team members
into the discussion?
A. Confront the person and ask that other team members be allowed to express their
opinions.
B. Wait for the person to pause, acknowledge the person’ s opinion, and ask for
someone else’ s opinion.
C. Switch the topic to an issue about which the person does not have a strong
opinion.
D. Express an opinion that differs from the person’ s opinion in order to encourage
others to express their ideas.
23. What is the main purpose of Informal review
A. Inexpensive way to get some benefit
B. Find defects
C. Learning, gaining understanding, effect finding
D. Discuss, make decisions, solve technical problems
24. The principle of Cyclomatic complexity, considering L as edges or links, N as nodes, P as
independent paths
A. L- N + 2P
B. N - L + 2P
C. N - L + P
D. N - L + P
25. What can static analysis NOT find?
A. The use of a variable before it has been defined
B. Unreachable ("dead") code
C. Memory leaks
D. Array bound violations
26. Which of the following is true about Formal Review or Inspection:
i. Led by Trained Moderator (not the author).
ii. No Pre Meeting 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
27. The Phases of formal review process is mentioned below arrange them in the correct
order.
i. Planning
ii. Review Meeting
iii. Rework
iv. Individual Preparations
v. Kick Off
vi. Follow Up
A. i,ii,iii,iv,v,vi
B. vi,i,ii,iii,iv,v
C. i,v,iv,ii,iii,vi
D. i,ii,iii,v,iv,vi
28. 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.
29. 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
30. A Person who documents all the issues, problems and open points that were identified
during a formal review.
A. Moderator.
B. Scribe
C. Author
D. Manager
31. Which statements correctly describe certain phases of a formal review?
A. Looking for defects occurs during kick-off phase. Fixing defects found happens
during rework phase
B. Personnel selection occurs during planning phase. Gathering metrics happens
during the review meeting phase
C. Distributing documents occurs during the planning phase. Personal review
happens during individual preparation phase
D. Personnel selection occurs during planning phase. Fixing defects found happens
during rework phase.
32. Which of the following is a Key Characteristics of Walk Through
A. Scenario, Dry Run, Peer Group
B. Pre-Meeting Preparations
C. Formal Follow Up Process
D. Includes Metrics
33. The Planning phase of a formal review includes the following :
A. Explaining the objectives
B. Selecting the personnel, allocating roles.
C. Follow up
D. Individual Meeting preparations
34. In which phase static tests are used
A. Reqirements
B. Design
C. Coding
D. All of the above
35. Which of the following are success factors for reviews?
I. Clear objectives for each review.
II. Checklists and/or roles are used to increase effectiveness of defect identification.
III. There is an emphasis on process improvement.
IV. People issues and psychological aspects are not reviewed.
A. I and III
B. II, III and IV
C. I, II and III
D. IV
36. The person who leads the review of the document(s), planning the review, running the
meeting and follow-up after the meeting
A. Reviewer
B. Author
C. Moderator
D. Auditor
37. A formal assessment of a work product conducted by one or more qualified independent
reviewer to detect defects.
A. Inspection
B. Walkthrough
C. Review
D. Non Conformance
38. A series of probing questions about the completeness and attributes of an application
system is called
A. Checklist
B. Checkpoint review
C. Decision table
D. Decision tree
39. Typical defects discovered by static analysis includes
A. Programming standard violations
B. Referring a variable with an undefined value
C. Security vulnerabilities
D. All Above
40. Which of the following are the main stages of a formal review?
A. Initiation, Preparation, Informal Review Meeting, Status, Rework, and Follow up.
B. Planning, Preparation, Technical Review, Rework, and Closure.
C. Preparation, Inspection, Rework, Closure, and Follow up.
D. Planning, Kick off, Individual Preparation, Review Meeting, Rework, and Follow
up
41. Given the Following program
IF X <>= Z
THEN Statement 2;
END
McCabe’s Cyclomatic Complexity is :
A. 2
B. 3
C. 4
D. 5
42. In a review meeting a moderator is a person who
A. Takes minutes of the meeting
B. Mediates between people
C. Takes telephone calls
D. Writes the documents to be reviewed
43. Static code analysis typically identifies all but one of the following problems. Which is
it?
A. Unreachable code
B. Undeclared variable
C. Faults in the requirements
D. Too few comments
44. What statement about static analysis is true?
A. With static analysis, defects can be found that are difficult to find with dynamic
testing.
B. Compiling is not form of static analysis
C. When properly performed, static analysis makes functional testing redundant.
D. Static analysis finds all faults.
45. Which statement about the function of static analysis tool is true?
A. Gives quality information about the code without executing it.
B. Checks expected results against actual results.
C. Can detect memory leaks.
D. Gives information about what code has and has not been exercised.
46. Which of the following are the typical defects found by static analysis tools?
(a) Variables that are never used.
(b) Security vulnerabilities.
(c) Poor performance.
(d) Unreachable code.
(e) Business processes not followed.
A. b, c and d are true; a and e are false
B. a is true; b, c, d and e are false
C. c, d and e are true; a and b are false
D. a, b and d are true; c and e are false
47. Which of the following, if observed in reviews and tests, would lead to problems (or
conflict) within teams?
A. Testers and reviewers are not curious enough to find defects.
B. Testers and reviewers are not qualified enough to find failures and faults.
C. Testers and reviewers communicate defects as criticism against persons and not
against the software product.
D. Testers and reviewers expect that defects in the software product have already
been found and fixed by the developers
48. Which of the following are the main phases of a formal review?
A. Initiation, status, preparation, review meeting, rework, follow up.
B. Planning, preparation, review meeting, rework, closure, follow up.
C. Planning, kick off, individual preparation, review meeting, rework, follow up
D. Preparation, review meeting, rework, closure, follow up, root cause analysis.
49. Which of the following statements about static analysis is FALSE?
A. Static analysis can be used as a preventive measure with appropriate process in
place.
B. Static analysis can find defects that are not easily found by dynamic testing.
C. Static analysis can result in cost savings by finding defects early.
D. Static analysis is a good way to force failures into the software.