Part I: Vocabulary from Chapter 1 of ADTs, Data Structures, and Problem Solving with C++ Flashcards

1
Q

Abstract Data Type (ADT)

A

A data type whose implementation is hidden from the user and is accessed only through a defined interface.

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

Data Structure

A

A way to organize and store data in a computer so that it can be used efficiently.

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

Encapsulation

A

The principle of restricting access to the details of an object’s implementation while only exposing necessary functionality.

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

Dynamic Memory Allocation

A

The process of allocating memory at runtime using pointers and functions like new and delete in C++.

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

Pointer

A

A variable that stores the memory address of another variable.

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

Reference Variable

A

An alias for another variable, created using & in C++.

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

Stack vs. Heap

A

The stack is used for static memory allocation (e.g., local variables), while the heap is used for dynamic memory allocation.

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

Function Prototype

A

A declaration of a function that specifies its return type and parameters but not its implementation.

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