edited by
1,184 views
1 votes
1 votes

Match the following types of variables with the corresponding programming languages :

$\begin{array}{clcl} \text{(a)} & \text{Static variable} & \text{(i)} & \text{Local variables in Pascal} \\  \text{(b)} & \text{Stack dynamic}& \text{(ii)} & \text{All variables in APL} \\   \text{(c)} & \text{Explicit heap dynamic}& \text{(iii)} & \text{Fortran 77} \\   \text{(d)} & \text{Implicit heap dynamic}& \text{(iv)} & \text{All Objects in JAVA} \\  \end{array}$

$\textbf{Codes :}$

  1. $\text{(a)-(i), (b)-(iii), (c)-(iv), (d)-(ii)}$
  2. $\text{(a)-(iv), (b)-(i), (c)-(iii), (d)-(ii)}$
  3. $\text{(a)-(iii), (b)-(i), (c)-(iv), (d)-(ii)}$
  4. $\text{(a)-(ii), (b)-(i), (c)-(iii), (d)-(iv)}$
edited by

1 Answer

0 votes
0 votes

FORTRAN I, II, and IV contain only static variables

All objects in Java are explicit heap-dynamic variables and are destroyed by 'garbage collection'

Languages such as APL, ALGOL 68, and LISP use implicit heap-dynamic variables.

So, a- iii, c- iv, d-ii

Hence correct option is C

Answer:

Related questions

1 votes
1 votes
1 answer
1
go_editor asked Aug 20, 2016
1,713 views
Which of the following is false regarding the evaluation of computer programming language:Application oriented featuresEfficiency and reliabilitySoftware developmentHardw...
0 votes
0 votes
4 answers
4
soujanyareddy13 asked May 10, 2021
1,336 views
A perceptron has input weights $W_1=-3.9$ and $W_2=1.1$ with threshold value $T=0.3.$ What output does it give for the input $x_1=1.3$ and $x_2=2.2?$$-2.65$$-2.30$$0$$1$