Done CH 2 1st Year (Usman Sir) Computer Memory
Done CH 2 1st Year (Usman Sir) Computer Memory
SHORT QUESTIONS
It is any device that is capable of storing ( )محفوظ کرنے کے قابل ہوinformation temporarily
( )عارضی طور پرor permanently ()ستقل طور پر. It is just like a human brain. The computer
memory has large number of small parts called cells. Each cell can store one bit of
information i.e. either 0 or 1. Collection of 8 bits/cells is called byte. Byte is a basic unit
of storage.
Cache memory
Primary memory / Main memory
Secondary memory
Cache memory is the fastest memory. It acts as a buffer1 between the CPU and main
memory.
Primary memory is the working area of the computer. It stores data temporarily.
Secondary memory is the permanent storage area of the computer.
Byte:
“A group of 8 bits is called byte.”
A memory required ( )کی ضرورت ہےto store one alphanumeric character (e.g A, h, 6,4 %,
@) is called byte. Byte is a basic unit of storage.
1
A buffer is a data area shared by ( )اشتراک میں – مل کر استعمال کرتے ہیںhardware devices or program that operate at
( )کام کرتے ہےdifferent speeds
Modern computers have a size of 16, 32 or 64 bits. A computer that has larger word size
can transfer ( )منتقل کر سکتا ہےmore bits into processor at a time and this improve ( بہتر
)کرتی ہےperformance ( )کار کردگیof computer.
Advantages:
Disadvantages:
2
A semiconductor substance ( )مادہsuch as silicon lies between the conductor and insulator. It controls the flow of
electric current. It conducts electricity under certain conditions such as the intensity ( )شددتof current or voltage,
infrared (IR), visible light etc. A diode, integrated circuit (IC) and transistor are all made from semiconductors.
3
CPU Cycle is basic operation of CPU in which CPU fetch (retrieve) instruction from memory and then decodes and
executes instruction. Each Cycle occurs only when clock pulse (signal) is generated.
4
Access time is total time computer takes to request data, and then that request to be met.
The register can also contain the address of a memory location where data is stored
rather than the actual data itself.
The number of registers that a CPU has and the size of each register determines ( تعین
)کرتا ہےthe power and speed of a CPU.
CHARACTERISTICS:
5
In sequential ( )ترتیب وارaccess devices, the data is stored and read in linear order i.e. data is stored in adjacent
( )متصلlocations ( )مقاماتone after another in proper order without any gap.
6
In direct access devise, the data is stored and read directly i.e. data is stored at random ( )بے ترتیبlocations
7
Plastic is a specific type of polymer. Polymers can be either natural or synthetic and are created when small
molecules, also known as monomers, combine chemically to form a larger network of connected molecules.
8
Ultraviolet rays have a wavelength shorter than wavelengths of visible light and longer than those of X-rays.
i.) Briefly explain the processor internal memory and its types.
Internal processor memory:
Internal processor memories are directly accessible ( )قابل رسائto the CPU. It works very
fast. There are two types of internal processor memory, these are:
Cache memory
Registers
1. Cache memory:
Cache memory is an extremely fast static RAM (SRAM) that is built into CPU or located
( )بٹھائ – رکھی جاتی ہےnext to ( )ملحقCPU and is effective because most programs access
the same data or instructions over and over again. Caches stores repeatedly used
information. CPU accesses it quickly and more efficiently.
2. Registers:
Register is a high speed small storage area within the CPU. Register temporarily stores
information during the execution of instruction and pass ( )منتقل کرناinformation to other
parts of CPU and to main memory. For example, if two numbers are added, both
numbers must be in registers and the result is also placed in a register.
The number of registers that a CPU has and the size of each register determines ( تعین
)کرتا ہےthe power and speed of a CPU. For example, a 32-bit CPU is one in which each
register is 32-bits wide. Therefore, each CPU instruction can manipulate 32 bits of data.
ii.) Explain RAM and ROM along with their types in detail
1. Random Access Memory (RAM):
RAM stands for Random Access Memory and is called primary storage of computer. It is
also called online memory because it is the only component directly connected with
CPU. It is the working area of computer. It is Read and Write (R/W) memory. It is a
volatile memory means that all data will be lost when power goes off. It holds data and
instructions temporarily. CPU gets the information needed for processing from RAM. It
is the most common type of memory found in computers.
SDRAM
DDR SDRAM
1.2.1. SDRAM
SDRAM stands for Synchronous Random Access Memory. It is semiconductor memory
with very high speed. It is improved form of earlier DRAM. It works in synchronous ( بیک
)وقت – ایک ہی رفتار سے ہونے والےwith system data bus therefore it operates at higher
speed than non-synchronous RAM.
9
Circuit is a path through which current can flow.
2.1. PROM:
PROM is the type of ROM which is programmed only once and
then never can be changed. PROM is manufactured ( بنائ چاتی
)ہےblank ( )خالیand then it is programed once by blowing ( اڑا
)کرfuses10. Computer BIOS is an example of PROM.
2.2. EPROM:
EPROM is the type of ROM which can be erased. The data
written on EPROM can be removed by using Ultra Violet Rays
and it can be re-written. Its erasing time is about 20 minutes.
Intel 8048 chip is an example of EPROM.
2.3. EEPROM:
EEPROM is the type of ROM which can be erased and
reprogrammed within milliseconds. It has a limited number of
times for re-programming. Usually it can be re-programmed for
10,000 times. Flash drive is an example of EEPROM.
10
Fuse is a strip of wire that melts and breaks an electric circuit if the current exceeds a safe level.
It is non-volatile storage that is it retains data even after power is switched off.
The storage capacity of these devices is very high.
They are cheaper than main memory.
They can be reused as data can be erased or deleted and then re-written.
They can be sequential or random/direct access.
11
data backup is a copy of computer data taken and stored elsewhere so that it may be used to restore the original
after a data loss event
a) Magnetic tapes
b) Magnetic disks
a) Magnetic Tapes:
Magnetic tape is a sequential access storage device that is used for data collection,
backup and archiving ()محفوظ کی گی دستاویز. It is consists of thin tape coated with
magnetic material. A device that store data on magnetic tape is called tape drive.
Advantages:
A single magnetic tape cartridge can store large amount of data (up to 5
Terabyte). Large cartridges are used by big companies that require continuous
recording and backup of data.
Magnetic tape can be recorded over and reused repeatedly.
Large amount of data is stored.
Magnetic tape is inexpensive and budget friendly.
Disadvantages:
Special equipment (Tape Drive) must be purchased for recording and storing
data.
Locating ( )تالش کرناspecific record requires reading every record before it.
Updating requires coping file from original tape to blank tape and adding new
data in between while copying.
It is necessary to keep older tape equipment just to be able to read the stored
data.
b) Magnetic Disks:
A magnetic memory is plate of plastic or metal (aluminum) coated ()تہ جڑھی ہوئ – لپٹا ہوا
with magnetic material such as ferric oxide. Data is stored magnetically. Each surface of
disk has concentric ( )ہم مرکزset of circles called track and each track is subdivided in
Advantages:
Magnetic disks support direct access of data i.e. records can be located directly
therefore they are faster than magnetic tape.
Magnetic disks can be erased and refused many times.
Magnetic disks are less vulnerable ( )شکار ہونا – غیر محفوظto data corruption ( خراب
)ہونا.
Data transfer rate for a magnetic disk system is normally higher than a tape
system.
Disadvantages:
c) Optical Disks:
An optical disk is a data storage medium that can be written to and read from using a
low-powered laser beam. Most of today's optical disks are available in three forms:
compact disks (CDs), digital versatile disks (DVDs), and Blu-ray disks. Optical disks rely
on ( )پر انحصار کرتی ہےa red or blue laser to record and read data. Most of today's optical
disks are flat, circular and 12 centimeters in diameter. Data is stored on the disk in the
form of microscopic data pits ( )گڑھےand lands. Pits represent 0 as light do not reflect
from pits. The lands are the flat ( )ھموارareas representing 1 as light reflects (return
back) from lands.
Advantages:
Disadvantages:
The data access speed of optical disks is slower than magnetic disks.
Need careful ( )محتاطhandling.
Susceptible ( )حساسto scratches ()خرونچ, dust and fingerprints.
a) Flash Memory
b) Memory Cards
a. Flash Memory:
Flash memory is a non-volatile storage chip that can store and erase
data electrically. It is specific type of EEPRTOM which is erased and
programmed in large blocks.
Flash Memory Drive also known as USB Flash Drive is a data storage device that includes
Flash memory with an integrated ( )ضمuniversal serial bus (USB) interface12. USB flash
drives can be attached to the computer and remove easily.
Advantages:
It is portable.
It can store data from 128MB to 2 TB.
It is faster in read and write compared to Hard Disks.
It is small in size.
Consume less power.
It is cheaper.
Extreme changes in temperature and pressure do not affect it.
It contains no moving parts.
12
Interface is the place at which independent and often unrelated systems meet and communicate with each
other
Flash memories have limited number of write cycles that range from 3,000 to
100,000 depending on the technology used on the device.
More expensive than CD or DVD as a medium.
Due to small size these devices can be lost easily.
b. Memory Cards
Memory card also known as SD (Secure Digital) card is a non-volatile
flash memory card developed for use in portable devices such as
Mobiles, Cameras and laptops etc. It is very small and thin card. It
can be attached to devices having onboard SD Card slot13. It is used
to store data backups such as text, picture, audio and video. There
are few advantages and disadvantages of memory card:
Advantages:
Disadvantages:
13
Slots and ports are physical connection points that allow the hardware of a computer to be expanded. A port is a
socket ()خانہ. A slot is a slit ( چیراa long, narrow cut or opening) on a motherboard. Slots are usually much longer
than they are wide, and have a gap running along the length.
i) ______________ memory holds data and programs not currently in use and provides
long-term storage.
A. Byte B. KB C. Bit D. MB