Professional Documents
Culture Documents
Data Structure: Topic 1 & 2
Data Structure: Topic 1 & 2
DFC3033
Data Structure
QUESTION 1
b) Write the structure declaration to hold the following data about a saving account :
(4m)
i. Account Number (15 element character string)
ii. Account Balance (double)
iii. Interest Rate (double)
iv. Average Monthly Balance (double)
c) State the differences between linear and non-linear types of data structures.
(4m)
QUESTION 2
b) State four (4) differences between link and linked list. (4m)
i. New item which is ‘18’ is added between item two and item three.
ii. The old item which is ‘7’ is deleted from the list.
iii. New item which is ‘11’ is added in front of the first item.
(For every new figure, please use the old diagram in this question)
d) State the differences between node and node pointer in the linked list.
(4m)