What is the difference between sequential file access and ra

What is the difference between sequential file access and random file access? Describe a unique scenario (different than submitted by classmates) where each type of file access could be used (no coding required).

Solution

the main differenece is we should have to incremenet the address to the reach the specified loaction in sequenctial access but in random access we will get the address of the loaction and can reach it directly.(it can implemeted using pointers)

sequential accesss: in this the data is accessed in a memory devices in sequencial or
predefined way or in an ordered sequence

example of sequencial access:
  
   iam giving you the real world senario as a example:
  
a student named john is living in an hostel he want his friend named rock. in hostel there are 100 rooms
sequencially john is in 20th room and rock is in 90 th room .but john doesnt know which room he is
so he started searching one by one room sequencially like(21 22 23..90). this is one of the example for
sequential access

random access:
       it is one type of process in which specified memory can access by using address of the
memory and can be accessed directly .

example of random access:
       now if we use the above example if john known room number of the rock then he need not
to search all the room he just directly reach the 90 th where rock is situated.
  

What is the difference between sequential file access and random file access? Describe a unique scenario (different than submitted by classmates) where each typ

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site