1.2 Computer
1.2 Computer
1.PRIMARY STORAGE
4.VIRTUAL MEMORY
5.SECONDARY STORAGE
8.UNITS OF DATA
9.DATA CAPACITY
11.BINARY ADDITION
12.HEXADECIMAL
13.BINARY SHIFTS
14.CHARACTERS
15.IMAGES
16.SOUND
17.COMPRESSION
• Memory is the component of the computer that holds
data, programs and instructions that are currently in
use.
• Also known as main area where computer data etc.
are stored.
• The need of primary storage:
• It is built inside the computer therefore data can be
1.PRIMARY read from and written extremely quick
STORAGE • This gives processor fast access to the data and
instructions that the primary memory holds
• There are two types of primary memory
• 1. RAM 2.ROM
• Primary memory is comparatively limited in size
especially when compared to secondary storage.
• In modern pc primary storage is generally around
8GB in size.
Is non volatile meaning memory keeps content even if
pc is shut down
Is a type of primary memory
Can be read from but not written
This makes ROM ideal for storing data and instructions
•
7.SUITABLE Speed across medium: how quickly can data be
transferred to and from medium
MULTIPLICATION DIVISION
• Moves to the left • Move to the right
• To multiply by 2 move I to • To divide by 2 move I to the
the left by 4 than 2 to the right by 4 then 2 to the right
left if 8 three to the left and if 8 three to the right and so
so on on
• If answer in decimal we
discard it.
14.CHARACTERS
COMPUTERS USE BINARY TO STORE DATA SO EACH CHARACTER IS STORED IN
THE FORM OF BINARY. ALL CHARACTERS A COMPUTER USES ARE CALLED
CHARACTER SET.
TWO STANDARD CHARACTER SETS ARE ASCII AND UNICODE
AMERICAN STANDARD CODE FOR INFORMATION CHANGE OR ASCII HAS 128
CHARACTERS, 7 BITS , TAKES LESS STORAGE SPACE .
UNICODE IS AN IMPROVED VERSION AS ASCII WOULDN’T COVER ALL
CHARACTERS AND HAS A WIDER RANGE OVER 65 000 AND A 16 BIT PATTERN
HOWEVER TAKES UP MORE SPACE WHICH LEADS TO EXTRA USAGE OF DATA
NOT NEEDED AND COULD BE USED ONLY FOR A WIDER RANGE LIKE TO USE
CHARACTERS SET INCLUDING CHINESE FRENCH ETC.
Digital images are made up of pixels
• Each pixel is represented by a binary number
• Colour depth is a range of colours available therefore more complicated binary
number each pixel
• The more the pixel the more the possible colours
• The more colour depth the larger the image will be.
• Image size is number of pixels contained
• Image file size can be estimated by multiplying image height size , width size and
colour depth .
• Resolution is how tightly packed the pixels are and how many pixels used
• Metadata
15. IMAGES • Files contain extra data called metadata. Metadata includes data about the file
itself, such as:
• file type
• date created
• author
• An image file also includes metadata about the image data itself, such as:
• the height and width of the image - this defines how many rows and columns the
pixels are to be arranged in
• the resolution
• the colour depth
• Without this metadata, the image data would not be correctly interpreted, meaning
the image could not be correctly displayed.
computers work in binary. All data must be converted into binary in order for a computer to
process it. Sound is no exception. To do this, sound is captured - usually by a microphone - and
then converted into a digital signal. An analogue-to-digital converter will capture a sound wave at
regular time intervals. This recording is known as a sample
• Sample rate is the number of samples recorded in any given period of time. The higher the
sample rate, the closer the recorded signal is to the original. Sample rate is measured in hertz
• the higher the sample rate, the larger the resulting file. As a result, sound files are often a
compromise between quality and size of file. An audio file is usually recorded at 44.1 kilohertz.
This is high enough for good sound quality while keeping file size down to sensible levels.
• Bit depth
• Bit depth refers to the number of bits used to record each sample. Just as with images, the
higher the bit depth, the more accurately a sound can be recorded, but the larger the file size.
Typical bit depths are 16 bit and 24 bit.
16.SOUND
• Bit rate
• Bit rate is simply a measure of how much data is processed for each second of sound. Bit rate
is calculated by:
• As with sample rate, the higher the bit rate, the better quality of the recorded sound.
• Key fact
• Bit depth refers to the number of bits used to record each sample. Bit rate is a measure of how
much data is processed for each second of sound.
• Samples are taken multiple times to improve accuracy as sound can not
be fully accurate but a close estimation when converted.
17.COMPRESSION
• Modern computers often generate files of very large sizes. For example, audio files often run to megabytes, while high definition
video can be gigabytes in size. Such files require lots of storage space, and, because of their size, are difficult to transmit. These
problems can be overcome by using compression.
• lossy compression
• lossless compression
• Lossy compression
• With lossy compression, some data is removed and discarded, thereby reducing the overall amount of data and the size of the file.
• An image can be compressed by reducing its colour depth. This reduces the range of colours that the image contains. In practice this results in an averaging of shades of
colours. For example, a very light shade of green could be averaged with a not so light shade - the very light shade might be discarded, and the pixels affected by it re-
coloured with the darker shade.
• Similarly, an audio file can be compressed by reducing the bit depth of the samples. MP3 is a lossy audio file format.
• the JPEG file format works on this principle, which is why JPEG files tend to be smaller in size
• the MPEG file format compresses audio and video, making it more suitable for streaming media
• Lossless compression
• There are some files that we would not want to lose data from. For example:
• text files
• spreadsheets
• financial records
• emails
• With lossless compression, files are reduced in size without the loss of data. However, lossless compression does not usually achieve the same file size reduction as lossy
compression.