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

Given the following statements : (1) To implement Abstract data type, a programming language require a syntactic unit to encapsulate type definition.

Given the following statements : (1) To implement Abstract data type, a programming language require a syntactic unit to encapsulate type definition. (2) To implement ADT, a programming language requires some primitive operations that are built in the language processor. (3) C++, Ada, Java 5.0, C#2005 provide support for parameterized ADT Which one of the following options is correct?
  1. A(1), (2) and (3) are false
  2. B(1) and (2) are true; (3) is false
  3. C(1) is true; (2) and (3) are false
  4. D(1), (2) and (3) are true
Show answerHide answer

Correct answer: (D) (1), (2) and (3) are true

Explanation

Language requirements for ADTs: a syntactic unit in which to encapsulate the type definition, and some primitive operations built into the language processor. Ada provides packages that simulate ADTs, C++ provides data abstraction through classes, and Java's data abstraction is similar to C++. C++, Ada, Java 5.0 and C# 2005 support parameterized ADTs. So (1), (2) and (3) are true. Hence, the answer is (d).

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

This is question 77 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.