Week 8 note (Abstract Data Types) Flashcards

1
Q

Encapsulation

A

is a grouping of subprograms and the data that they manipulate

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Two kinds of abstractions in programming languages are

A

process abstraction and data abstraction.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

process abstraction

A

All subprograms are process abstractions because they provide a way for a program to specify that some process is to be done, without providing the details of how it is to be done.

All subprograms, including concurrent subprograms, and exception handlers, are process abstractions

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

An abstract data type is

A

adalah sebuah enkapsulasi yang didalamnya terdapat representasi data dari satu tipe data dan subprogram yang menyediakan operasi pada tipe data tersebut.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

An instance of an abstract data type is called

A

object

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

An abstract data type is a data type that satisfies two conditions

A
  1. The representation, or definition, of the type and the operations are contained in a single syntactic unit
  2. The representation of objects of the type is hidden from the program units that use the type, so only direct operations possible on those objects are those provided in the type’s definition
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Program units that use a specific abstract data type are called

A

clients

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Benefit of information hiding is

A

increased reliability, because clients cannot change the underlying representations of objects directly.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

data members is?

A

the data defined in a class

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

member functions is?

A

the functions defined in a class

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What is Inheritance?

A

adalah suatu teknik untuk mendefinisikan sebuah kelas baru yang dapat memiliki properti dari kelas lain, sehingga dapat memudahkan untuk membuat dan mengatur sebuah aplikasi.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly