- A. Stack follows LIFO (Last In, First Out) order, so it matches with IV.
- B. EOF (End Of File) is related to handling the end of file, which is an exception, so it matches with III.
- C. A Tree is a non-linear data structure, so it matches with II.
- D. A Queue follows FIFO (First In, First Out) order, so it matches with I.
Thus, the correct matching is A-IV, B-III, C-II, D-I.