ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 91 - CTAL-TTA discussion

Report
Export

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?

A.
C and Z
Answers
A.
C and Z
B.
None of the variables
Answers
B.
None of the variables
C.
AI1 fthe variables
Answers
C.
AI1 fthe variables
D.
F
Answers
D.
F
Suggested answer: D

Explanation:

Analyzing the given pseudocode for potential anomalies in data flow:

Declare C, F, Z Decimal Set Z = 32 Read F Set C = (F-Z) * 5/9 Free C, F, Z Print F

The potential anomaly is with variable F. It is used after being freed, which typically indicates an error in managing the variable's lifecycle within the code.

asked 18/09/2024
Vijay Khara
43 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first