Data Structures and Functions Flashcards

1
Q

What is an abstract data type (ADT)?

A

A blueprint for organizing and working with data that defines what operations can be performed on the data, without specifying how they are implemented.

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

What is an array?

A

A collection of items stored in a contiguous memory block, each identified by an index number.

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

What is a composite variable?

A

A variable that can hold multiple pieces of data, often grouped together under a single name.

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

What is a container in programming?

A

A data structure that holds a collection of elements, providing methods to add, remove, and access them.

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

What is a data structure?

A

A way of organizing and storing data in a computer’s memory to enable efficient retrieval, insertion, and deletion.

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

What is a linked list?

A

A sequence of elements where each element (called a node) points to the next one, forming a chain.

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

What is a linked structure?

A

Any structure made up of elements connected by links or pointers, enabling dynamic relationships among data.

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

What is a list?

A

A collection of items arranged in a linear sequence, allowing easy insertion, deletion, and access.

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

What is a queue?

A

A data structure that follows a First-In, First-Out (FIFO) order — elements are added at the back and removed from the front.

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

What is a record in programming?

A

A data structure that groups related data items under a single name, typically made up of multiple fields.

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

What is a stack?

A

A data structure that follows a Last-In, First-Out (LIFO) order — elements are added and removed from the same end (the top).

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

What is an argument in programming?

A

The actual value or data you pass into a function or subprogram when you call it.

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

What is a parameter?

A

A variable in a function definition that acts as a placeholder for the value (argument) you pass when calling the function.

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

What is a parameter list?

A

A set of parameters defined in a function or subprogram that specify the number and types of inputs the function can accept.

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

What is a reference parameter?

A

A parameter that allows a function to modify the actual variable passed to it, not just a copy.

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

What is a subprogram (also known as a function)?

A

A block of code that performs a specific task and can be reused throughout the program.

17
Q

What is a value parameter?

A

A parameter that passes a copy of the argument’s value to the function. The original variable is not modified.