Which TWO of the following could be identified using Dynamic Analysis?
A) Objects having too much or too little visibility into parent classes.
B) Repetition of code within a single component or module.
C) System memory not released when it is no longer needed.
D) Pointers in a program that are no longer accurate and must not be used. E. Code that cannot be reached and so will not be executed.
Dynamic analysis involves evaluating a system or component based on its behavior during execution. This type of analysis is particularly useful for identifying issues related to memory usage and pointer management. The focus is on runtime behaviors that can't be detected through static analysis alone.
Identifiable Issues via Dynamic Analysis:
System Memory Not Released (Memory Leaks):
System memory not released when it is no longer needed (Option C) can be identified through dynamic analysis. Tools and techniques used in dynamic analysis can track memory allocation and deallocation during program execution, revealing instances where memory is allocated but not freed properly.
Pointers in a Program (Dangling Pointers):
Pointers in a program that are no longer accurate and must not be used (Option D) can also be identified through dynamic analysis. This includes issues like dangling pointers (pointers that refer to memory that has been freed) or wild pointers (uninitialized pointers). Dynamic analysis tools can detect when pointers are used incorrectly or point to invalid memory locations during runtime.
Explanation of Incorrect Options:
A . Objects having too much or too little visibility into parent classes: This is more related to design and structure, typically identified via static analysis or code reviews rather than dynamic analysis.
B . Repetition of code within a single component or module: This is a code quality issue often detected through static code analysis or manual code review.
E . Code that cannot be reached and so will not be executed: This is typically identified through static analysis tools that perform code coverage analysis or by manual code inspection.
Although specific references from the provided documents were not found directly related to dynamic analysis, the general understanding and standard practices of software testing support the answer given. For example, the ISTQB syllabus and various testing literature highlight memory management and pointer issues as typical concerns addressed through dynamic analysis.
Sources:
General knowledge on dynamic analysis in software testing.
ISTQB-CTAL-TTA Syllabus and standard practices in software testing.
Ollie
4 days agoEloisa
9 days agoDick
14 days ago