edited by
1,501 views
1 votes
1 votes

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 parameterised ADT

Which one of the following options is correct?

  1. i, ii and iii are false
  2. i, ii are true, iii is false
  3. i is true, ii and iii are false
  4. i, ii and iii are true
edited by

1 Answer

0 votes
0 votes
Language Requirements for ADTs
• A syntactic unit in which to encapsulate the type definition
• A method of making type names and subprogram headers visible to clients, while hiding
actual definitions
• Some primitive operations must be built into the language processor

• Ada provides packages that simulate ADTs
• C++ data abstraction is provided by classes
• Java’s data abstraction is similar to C++
• Ada, C++, Java 5.0, and C# 2005 support parameterized ADTs
• C++, C#, Java, Ada, and Ruby provide naming encapsulations

So, A, B, C are true.

Hence answer is D
Answer:

Related questions

1 votes
1 votes
1 answer
1
go_editor asked Aug 20, 2016
1,688 views
Which of the following is false regarding the evaluation of computer programming language:Application oriented featuresEfficiency and reliabilitySoftware developmentHardw...
1 votes
1 votes
1 answer
2
go_editor asked Aug 20, 2016
1,168 views
Match the following types of variables with the corresponding programming languages :$\begin{array}{clcl} \text{(a)} & \text{Static variable} & \text{(i)} & \text{Local v...
0 votes
0 votes
4 answers
4
soujanyareddy13 asked May 10, 2021
1,284 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$