QUESTION 18 What is an abstract data type (ADT)? a.It is a data type that is pro
ID: 3717820 • Letter: Q
Question
QUESTION 18 What is an abstract data type (ADT)? a.It is a data type that is provided by the compiler D. An ADT is a data type described by pre-defined user operations, such as "insert data at rear" without ?? indicating how each operation is implemented; i.e., separating the interface from the implementation. C. It is a data type that can only be created by the pre-processor d. It is only used to implement a Linked list, stack, or queue QUESTION 19 What is the first thing you should define when working with a recursive function? a. The name of the function. . The base case or how the function will terminate . What color the font is in your editor. d.The return type.Explanation / Answer
18)
B. An ADT is a data type described by predefined user operations,such "insert data at rear" without indicating how each operation is implemented;i.e.,seperating the interface from the implementation.
The process of providing only the essentials and hiding the details is known as abstraction.
The user of data type need not know that data type is implemented, for example, we have been using int, float, char data types only with the knowledge with values that can take and operations that can be performed on them without any idea of how these types are implemented.
19)
B. The base case and how the program terminates.
The base case is very important for recursive functions.If we didnt decide a perfect base case.then the program will undergo unlimited iterations.
The base case decides when the function terminates.
Hence the base case is very important for recursive function