0% found this document useful (0 votes)
58 views

Static Testing - Answer

The document contains questions and answers about software testing techniques. It discusses static analysis, reviews, static and dynamic testing. Some key points: - Static analysis involves analyzing program code without executing it, such as reviewing code for defects. Reviews should be performed on specifications, code, and test plans. - Static and dynamic testing are complementary because they have different aims and find different types of defects. Static testing includes techniques like reviews and inspections. - Reviews are effective at finding defects in requirements, design, and code. Formal reviews should be led by a trained moderator and have entry/exit criteria and a follow up process. - Static analysis tools are typically used by developers to find issues like unused

Uploaded by

Hoang thi huong
Copyright
© © All Rights Reserved
Available Formats
Download as RTF, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
58 views

Static Testing - Answer

The document contains questions and answers about software testing techniques. It discusses static analysis, reviews, static and dynamic testing. Some key points: - Static analysis involves analyzing program code without executing it, such as reviewing code for defects. Reviews should be performed on specifications, code, and test plans. - Static and dynamic testing are complementary because they have different aims and find different types of defects. Static testing includes techniques like reviews and inspections. - Reviews are effective at finding defects in requirements, design, and code. Formal reviews should be led by a trained moderator and have entry/exit criteria and a follow up process. - Static analysis tools are typically used by developers to find issues like unused

Uploaded by

Hoang thi huong
Copyright
© © All Rights Reserved
Available Formats
Download as RTF, PDF, TXT or read online on Scribd
You are on page 1/ 11

Q1

Static analysis is best described as:

A. The analysis of batch programs.


B. The reviewing of test plans.
C. The analysis of program code.
D. The use of black box testing.

Answer: C

Q2
Which of the following statements about reviews is true?

A. Reviews cannot be performed on user requirements specifications.


B. Reviews are the least effective way of testing code.
C. Reviews are unlikely to find faults in test plans.
D. Reviews should be performed on specifications, code, and test plans.

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

A. Same as static testing


B. Done by the developers
C. Both A. and B
D. None of the above

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:

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

Answer: D

Q9
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

Answer: C

Q10
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

Answer: C

Q11
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.

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?

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

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?

A. Customers and users


B. Developers and designers
C. Business and systems analysts
D. System and acceptance testers

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:

A. Deviations from standards,


B. Requirement defects,
C. Design defects,
D. All of the above.

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

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

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

A. Inexpensive way to get some benefit


B. Find defects
C. Learning, gaining understanding, effect finding
D. Discuss, make decisions, solve technical problems

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?

A. The use of a variable before it has been defined


B. Unreachable ("dead") code
C. Memory leaks
D. Array bound violations

Answer: C

Q26
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

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:

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

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

A. Scenario, Dry Run, Peer Group


B. Pre-Meeting Preparations
C. Formal Follow Up Process
D. Includes Metrics

Answer: A
Q33
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

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?

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

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

A. Programming standard violations


B. Referring a variable with an undefined value
C. Security vulnerabilities
D. All Above

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

A. Takes minutes of the meeting


B. Mediates between people
C. Takes telephone calls
D. Writes the documents to be reviewed

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?

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.

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.

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

Answer: D

Q47
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

Answer: C

Q48
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.

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

You might also like