Docsity

Data Structures and Abstract Data Types Exam Questions, Exams of Advanced Education

Toggle sidebar
bg1
CHAPTER 7 - DATA STRUCTURES
AND ABSTRACT DATA TYPES EXAM
Data Structure - Correct Answers -*Implementation* of an Abstract Data Type. A
collection of elementary data types such as *integer*, *real*, *Boolean* etc.
Files - Correct Answers -Consists of a number of *records*. A record contains a number
of *fields*, each holding an *item of data*.
Text File - Correct Answers -Contains *human readable characters* (decoded from
binary).
Binary File - Correct Answers -Can contain records with *different types of field*,
occupying a *different number of bytes* etc. Data is stored as a *string of 1s and 0s* &
the format has to be known by the program.
Queue - Correct Answers -A *First In, First Out* (FIFO) data structure. The first item
added is the first item removed.
Abstract Data Type (ADT) - Correct Answers -A data type whose properties &
operations are specified independently of any particular programming language. This
results in *data abstraction*.
Array - Correct Answers -A *finite*, *ordered set of elements* of the same type. Can
work with multiple dimensions. Arrays are *static data structures*
Stack - Correct Answers -A *Last In, First Out* (LIFO) data structure. The last item
added is the first item removed.
Static Data Structure - Correct Answers -*Fixed in size* and cannot increase in size or
free up memory while the program is running. Eg. the size of an array has to be decared
in advance.
Dynamic Data Structure - Correct Answers -A collection of data in memory that has the
ability to *grow or shrink in size*. This is done with the *aid of the heap*.
pf2

Partial preview of the text

Download Data Structures and Abstract Data Types Exam Questions and more Exams Advanced Education in PDF only on Docsity!

CHAPTER 7 - DATA STRUCTURES

AND ABSTRACT DATA TYPES EXAM

Data Structure - Correct Answers -Implementation of an Abstract Data Type. A collection of elementary data types such as integer, real, Boolean etc. Files - Correct Answers -Consists of a number of records. A record contains a number of fields, each holding an item of data. Text File - Correct Answers -Contains human readable characters (decoded from binary). Binary File - Correct Answers -Can contain records with different types of field, occupying a different number of bytes etc. Data is stored as a string of 1s and 0s & the format has to be known by the program. Queue - Correct Answers -A First In, First Out (FIFO) data structure. The first item added is the first item removed. Abstract Data Type (ADT) - Correct Answers -A data type whose properties & operations are specified independently of any particular programming language. This results in data abstraction. Array - Correct Answers -A finite, ordered set of elements of the same type. Can work with multiple dimensions. Arrays are static data structures Stack - Correct Answers -A Last In, First Out (LIFO) data structure. The last item added is the first item removed. Static Data Structure - Correct Answers -Fixed in size and cannot increase in size or free up memory while the program is running. Eg. the size of an array has to be decared in advance. Dynamic Data Structure - Correct Answers -A collection of data in memory that has the ability to grow or shrink in size. This is done with the aid of the heap.

Heap - Correct Answers -A portion of memory from which space is automatially allocated or de-allocated as required.