Computer Studies Assignment - 3x: File Access Methods
Computer Studies Assignment - 3x: File Access Methods
assignment -3x
File access methods
1. Sequential access
A simple access method, information in a file is accessed sequentially
one record after another.
To process the record all the 1-1 records previous to 1 must be
accessed
2. Index-sequential access
This access is a slight modification of the direct access method. it is a
combination of both the sequential access and the direct access.
The main concept is to access a file direct first and then sequential
from that point onwards.
This access method involves maintaining an index- thus a pointer to
block.
3. Direct access
Information present in a record of a file is to be accessed only if some key
value in that present in a record of a file is to be accessed only if some key value
in that record is known .
In those cases direct access is used.
It is based on the disk that is direct access device and allows random access of
any file block
FILE ORGANISATION
The process that involves how data is stored in file access and as
quickly as possible. three main ways of file organisation of:
a) Sequential
b) Index-sequential
c) Random
1. Sequential file organisation
TRANSLATORS
INTERPRETES
COMPLIES
It also translates a program from a high level language to, usually, low
level machines instructions. The translated program can be saved and
executed at a later time.
ASSEMBLERS
When using assembly language you will have to use an assembler .the
assembler will take the assembly code and convert it into the
corresponding machine code 1s and 0s(actually current flowing and
current off)
There is a one correspondence between a single assembly language
instruction and a machine code instruction in general there would be
one machine code produced per line of assembly language. This
translation or conversion is called assembling and is perfected by a
Programming concepts
In this module we will be looking at imperative languages that execute
one line after the another.
1. Strings (characters)
Are a collection of single block characters
2. Booleans
Are variables that are like on/off switches and can only equal one
of two values .
3. Character
The character data type is a single character
4. Real
Is a more advanced number system than integer allowing for
rational and irrational numbers, decimal places and negatives
d)