Question 49Asked in UGC NET Computer Science, June 2016 (Paper II & III, Selected Questions)

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
  1. A(i) (iii) (iv) (ii)
  2. B(iv) (i) (iii) (ii)
  3. C(iii) (i) (iv) (ii)
  4. D(ii) (i) (iii) (iv)
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).

From UGC NET Computer Science PYQ, June 2016 (Paper II & III, Selected Questions)

This is question 49 of UGC NET Computer Science PYQ, June 2016 (Paper II & III, Selected Questions). See all questions of this paper with answers, or attempt the paper as a timed online test to get your score and all-India rank.