Match the following types of variables with the corresponding programming language:
Match the following types of variables with the corresponding programming language:
A. Static variables
B. Stack dynamic
C. Explicit heap dynamic
D. implicit heap dynamic
i. Local variables in Pascal
ii. All variables in APL
iii. Fortran 77
iv. All objects in JAVA
Code: A B C D
Show answerHide answer
Correct answer: (C) (iii) (i) (iv) (ii)
Explanation
FORTRAN I, II & IV contain only static variables. All objects in Java are explicit heap dynamic variable & are destroyed by "Garbage Collector" Languages Such as APL, ALGOL 68, & LISP Use implicit heap dynamic variables. So, a-iii, b-i, c-iv, d-ii Hence, correct option is (c).