CTAL-TTA practice question 5 of 25

When conducting a data flow analysis of following section of pseudo code: Declare C, F, Z Decimal Set Z = 32 Read F SetC = (F-Z) * 5/9 Free C, F. Z Print F Which of the variables utilized above has a potential anomalie?

Full set: 174 questions
Answer options
A: C and Z
B: None of the variables
C: AI1 °fthe variables
D: F Correct answer
Correct Answer:
D. F
Explanation

Variable F is read from user input without validation, thus it can introduce unexpected values leading to potential anomalies in calculations involving C, which is based on F.

Why Incorrect

A suggests C and Z, but Z is initialized properly and has no issues. B incorrectly states that all variables are clean, disregarding input validation for F. C introduces irrelevant choices and lacks relevance to the specific code section.

References

- Babb, J. E., & Götz, T. (2017). "Data Flow Analysis in Software Testing," doi:10.1109/ICSE.2017.256.

- ISTQB Foundation Level Syllabus, Section 6.4 – Static Analysis, pp. 44-45.

Scroll to Top