Static Testing - Answer
Static Testing - Answer
Answer: C
Q2
Which of the following statements about reviews is true?
Answer: D
Q3
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.
Answer: D
Q4
`Entry criteria' should address questions such as
I. Are the necessary documentation, design and requirements information available that will allow testers
to operate the system and judge correct behaviour.
II. Is the test environment-lab, hardware, software and system administration support ready?
III. Those conditions and situations that must prevail in the testing process to allow testing to continue
effectively and efficiently.
IV. Are the supporting utilities, accessories and prerequisites available in forms that testers can use
A. I, II and IV
B. I, II and III
C. I, II, III and IV
D. II, III and IV.
Answer: A
Q5
Static Analysis
Answer: C
Q6
In formal review, Rework: fixing defects found typically done by _________
A. Moderator
B. Author
C. Reviewer
D. Recorder
Answer: B
Q7
Which expression best matches the following characteristics or review processes:
1. Led by author
2. Undocumented
3. No management participation
4. Led by a trained moderator or leader
5. Uses entry exit criteria
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
Answer: B
Q8
Which of the following statements is NOT true:
Answer: D
Q9
What can static analysis NOT find?
Answer: C
Q10
Which rule should not be followed for reviews
Answer: C
Q11
Which of the following are good candidates for manual static testing?
Answer: B
Q12
Static analysis tools are typically used by
A. Testers
B. Developers
C. Testers and Developers
D. None
Answer: B
Q13
Which of the following statements are TRUE for informal reviews?
Answer: A
Q14
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
Answer: B
Q15
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.
Answer: D
Q16
Which test requires the execution of the software component?
A. Formal inspection
B. Dynamic testing
C. Code walkthrough
D. Execution testing
Answer: B
Q17
Who typically use static analysis tools?
Answer: B
Q18
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.
Answer: D
Q19
Typical defects that are easier to find in reviews than in dynamic testing are:
Answer: D
Q20
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
Answer: A
Q21
Find the correct flow of the phases of a formal review
Answer: C
Q22
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.
Answer: B
Q23
What is the main purpose of Informal review
Answer: A
Q24
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
Answer: A
Q25
What can static analysis NOT find?
Answer: C
Q26
Which of the following is true about Formal Review or Inspection:
Answer: B
Q27
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
Answer: C
Q28
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.
Answer: B
Q29
Which of the following statements regarding static testing is false:
Answer: A
Q30
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
Answer: B
Q31
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.
Answer: D
Q32
Which of the following is a Key Characteristics of Walk Through
Answer: A
Q33
The Planning phase of a formal review includes the following :
Answer: B
Q34
In which phase static tests are used
A. Reqirements
B. Design
C. Coding
D. All of the above
Answer: D
Q35
Which of the following are success factors for reviews?
Answer: C
Q36
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
Answer: C
Q37
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
Answer: A
Q38
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
Answer: A
Q39
Typical defects discovered by static analysis includes
Answer: D
Q40
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
Answer: D
Q41
Given the Following program
IF X <>= Z
THEN Statement 2;
END
McCabe's Cyclomatic Complexity is :
A. 2
B. 3
C. 4
D. 5
Answer: A
Q42
In a review meeting a moderator is a person who
Answer: B
Q43
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
Answer: C
Q44
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.
Answer: A
Q45
Which statement about the function of static analysis tool is true?
Answer: A
Q46
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.
Answer: D
Q47
Which of the following, if observed in reviews and tests, would lead to problems (or conflict) within teams?
Answer: C
Q48
Which of the following are the main phases of a formal review?
Answer: C
Q49
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.
Answer: D