ExamGecko
Question list
Search
Search

Related questions











Question 158 - CTFL-2018 discussion

Report
Export

Which of the following type of defect would NOT be typically found by using a static analysis tool?

A.
A variable is defined but is then not used
Answers
A.
A variable is defined but is then not used
B.
A variable is used in a calculation before it is defined
Answers
B.
A variable is used in a calculation before it is defined
C.
A variable has the wrong numeric value passed into it
Answers
C.
A variable has the wrong numeric value passed into it
D.
A variable is used but not declared
Answers
D.
A variable is used but not declared
Suggested answer: C

Explanation:

A variable has the wrong numeric value passed into it is the type of defect that would not be typically found by using a static analysis tool, because it is a logical or functional error that depends on the context and requirements of the software13.A static analysis tool can detect syntactic or structural errors in the code, such as missing declarations, undefined variables, unused variables, or unreachable code13. The other options represent such errors that can be typically found by using a static analysis tool.Option A is an error where a variable is defined but is then not used, which indicates a waste of memory or a possible logic flaw13.Option B is an error where a variable is used in a calculation before it is defined, which can cause unpredictable results or exceptions13.Option D is an error where a variable is used but not declared, which can cause compilation or runtime errors

asked 18/09/2024
Janina Loveria
39 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first