.What is the difference between the following access methods?

-Sequential access;
-Direct access;

Sequential access: In sequential access, data is accessed in a linear manner, starting from the beginning and proceeding through the data in order until the desired location is reached. It is like moving through a list one item at a time.

Direct access: In direct access, data can be accessed at any given point directly without having to go through all the preceding locations. It allows random access to data or files, meaning that the retrieval of data does not depend on the order in which the data is stored.