What is an array?
An ordered, finite set of elements of a single type.
How is a 1D array typically indexed?
Zero-indexed (first element is at position 0).
What is a 2D array?
An array that can be visualized as a table with rows and columns.
How do you access an element in a 2D array?
Specify [row, column] or [y, x] depending on convention.
What is a 3D array?
An array that can be visualized as multiple 2D arrays (like a multi-page spreadsheet).
How do you access an element in a 3D array?
Specify [array_number, row, column] or [z, y, x].
What is a record?
A data structure made up of fields, commonly representing a row in a database.
How are records declared?
Using a record structure that defines each field’s data type.
How do you access a field in a record?
Using recordName.fieldName syntax.
What is a list?
An ordered collection of items that can contain elements of different data types.
How do lists differ from arrays?
Lists are stored non-contiguously in memory and can hold mixed data types.
What does the isEmpty() function do for a list?
Checks if the list is empty.
What does the append(value) function do?
Adds a new value to the end of the list.
What does the remove(value) function do?
Removes the first occurrence of the specified value.
What does the search(value) function do?
Searches for a value in the list and returns a boolean.
What does the length() function do?
Returns the number of items in the list.
What does the index(value) function do?
Returns the position of the first occurrence of the value.
What does the insert(position, value) function do?
Inserts a value at the specified position in the list.
What does the pop() function do?
Removes and returns the last value in the list.
What does the pop(position) function do?
Removes and returns the value at the specified position.
What is a tuple?
An ordered, immutable set of values of any type.
How are tuples different from lists?
Tuples are immutable (cannot be changed after creation).
How are tuples initialized?
Using regular parentheses () instead of square brackets [].
What is a linked list?
A dynamic data structure where each node contains data and a pointer to the next node.