Static analysis tools - Software Testing MCQs

Static analysis tools - Software Testing MCQs


1. Static analysis is not useful & cost effective way of testing. True or False

a) True
b) False

View Answer / Hide Answer

ANSWER: b) False

Comment: Static analysis helps to find defects in documents by reviewing them so defects does not transmit to next phase.




2. The defects found in static testing and dynamic testing are same. True or false.

a) True
b) False

View Answer / Hide Answer

ANSWER: b) False

Comment During static analysis, program is not executed yet so defects such as missing requirements,programming standard violation etc. can be found while during dynamic testing, program is actually executed so failures can be found.




3. Typical defects discovered during static analysis are

a) Referencing a variable with undefined value
b) Variables declared but used nowhere
c) Dead code
d) Programming standards and syntax violation
e) Security vulnerabilities
f) All of the above

View Answer / Hide Answer

ANSWER: f) All of the above




4. Who generally uses static analysis tools?

a) Tester
b) Developer
c) customer
d) All of the above

View Answer / Hide Answer

ANSWER: b) Developer

Comment: Static analysis tools are generally used by developer during development and unit testing




5. Most of the time compilers can be used as static analysis tools. True or false.

a) True
b) False

View Answer / Hide Answer

ANSWER: a) True

Comment: Static analysis tools are an extension of compiler technology so mostly compiler offers static analysis functionalities.




6. What is true regarding static analysis tools?

a) It compares actual and expected result
b) It can detect memory leaks
c) gives quality information about code without executing it
d) It tell about percentage of a code coverage

View Answer / Hide Answer

ANSWER: c) gives quality information about code without executing it




7. What is static analysis?

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.

View Answer / Hide Answer

ANSWER: c) The analysis of program code.


Post your comment

    Discussion

  • RE: Static analysis tools - Software Testing MCQs -Pushpak (03/06/21)
  • Best page for software testing mcq...