Match the following w.r.t. programming languages : \(\begin{array}{clcl} &…
2015
Match the following w.r.t. programming languages :
\(\begin{array}{clcl} & \textbf{List – I} & & \textbf{List – II} \\ \text{(a)} & \text{JAVA} & \text{(i)} & \text{Dynamically object oriented} \\ \text{(b)}& \text{Python} & \text{(ii)} & \text{Statistically non-object oriented} \\ \text{(c)} & \text{Prolog} & \text{(iii)} & \text{Statistically object oriented} \\ \text{(d)} & \text{ADA} & \text{(iv)} & \text{Dynamically non-object oriented} \\ \end{array}\)
Codes :
- A.
(a)-(iii), (b)-(i), (c)-(iv), (d)-(ii)
- B.
(a)-(i), (b)-(iii), (c)-(ii), (d)-(iv)
- C.
(a)-(i), (b)-(iii), (c)-(iv), (d)-(ii)
- D.
(a)-(ii), (b)-(iv), (c)-(i), (d)-(iii)
Attempted by 259 students.
Show answer & explanation
Correct answer: A
Correct mapping and brief reasons:
JAVA → Statistically object oriented. Java is statically typed and built around classes and objects, so it is classified as statically object oriented.
Python → Dynamically object oriented. Python uses dynamic typing and supports object-oriented programming (classes, objects) at runtime.
Prolog → Dynamically non-object oriented. Prolog is a logic/declarative language without core object-oriented features and uses dynamic typing, so it fits the dynamically non-object oriented category.
ADA → Statically non-object oriented. Ada is statically typed. Although later versions introduced some object-oriented features, it is commonly classified primarily as a statically typed language and not primarily object-oriented in the same way as Java.
Therefore the correct matching is: (a) JAVA → statically object oriented; (b) Python → dynamically object oriented; (c) Prolog → dynamically non-object oriented; (d) ADA → statically non-object oriented.
Key idea: First decide whether a language is statically or dynamically typed, then decide whether it provides core object-oriented features.
A video solution is available for this question — log in and enroll to watch it.