Which of the following is true about the characteristics of abstract data types? i) It creates a type. AND ii) It contains a set of operations
A) True, False
B) False, True
C) True, True
D) False, False
Explain
___________________________ is(are) not the component of an abstract data structure.
A) Operations
B) Storage Structures
C) Algorithms
D) None of above
Explain
Ques 1)
The correct option is Option C. Both are the characteristics of an ADT. ADT is a mathematical notation for data types and storage types.
For eg:- If we define an ADT of a linked list we define a structure with data types and it defines certain operations that can be performed on that data type. When we define the ADT for the linked list it creates it as a new data type, that contains an integer part and a link part. Hence option C is the correct option.
Ques 2)
The correct answer is Option B & C. ADT does not define how the data will be stored in the memory or what algorithm will be used or implemented on that data type. However, ADT does mention the type of Operations that ADT supports but not how they are to be implemented.
Note:- Please comment down if you face any problem. :)
Get Answers For Free
Most questions answered within 1 hours.