Multiple choice

An Abstract Data type (ADT) is

  1. same as an abstract class

  2. a data type that cannot be instantiated

  3. a data type for which only the operations defined on it can be used, but none else

  4. all of the above

Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation

Abstract Data type :- It is defined as a user defined data type, specified by keyword 'abstract' & defines the variables & functions, these operations can only use the variables of this data type. So option (3) which says that Abstract data type for which only operations defined on it can be used is correct. Eg. stack data type Here operations defined are push & pop. So we can apply only these 2 operations on it.