Professional Documents
Culture Documents
What is computer?
Computer is an electronic device that processes data accurately at a very high
speed. It takes input, processes it and produces desired output.
1
Write advantages and disadvantages of computers in our life.
Advantages:
Computers make us more productive in many of our jobs.
Computers broaden ( ) our thinking.
Computers help us in better understanding and fast learning.
Computers help us in having better diagnosis ( ), proper treatment and better
health care.
With computers, we can do things efficiently and accurately.
Disadvantages:
Use of computers is resulting in unemployment ( ) due to automation.
Much of youth waste their time and energy in useless activities.
Data security and personal privacy leakage is also increasing.
Computer crime like hacking etc is also an issue.
Excessive ( ) use of computers results in health loss.
2
Mainframes can execute trillion instructions per second, i.e. TIPS
Mainframes are used by banks, airlines, mobile companies and universities.
Examples: IBM’s zEnterprize EC12, EC196 and HP16500 Series.
3. Minicomputers
Minicomputers are larger, more expensive and powerful than microcomputers.
Minicomputers support multi-users. Hundred of users can work with
minicomputers.
Minicomputers can execute billion instructions per second, i.e. BIPS
Minicomputers are used in small business applications, scientific researches
and industrial process control.
Examples: IBM system/360 and HP 3000.
Due to technology advancement, the performance of minicomputers and
microcomputers is becoming same so microcomputers are replacing
minicomputers.
4. Microcomputers
Microcomputers are the smallest and least expensive computers.
Microcomputers are single-user so they are also called personal computers
(PCs).
Microprocessors (VLSI) are used in Microcomputers.
Microcomputer can execute million instructions per second, i.e. MIPS
A microcomputer normally consists of a keyboard, mouse, monitor and system
unit.
Microcomputers are used in homes, educational institutions ( ) and small
business.
Examples: IBM PC, IBM Thinkpad, Dell XPS, HP Envy Series and Apple
Series, Toshiba Satellite Series.
3
Advantages:
We don’t have to buy and maintain a complex system.
It is low cost.
We don’t have to worry about the equipments ( ) going out-of-date
1) Hardware:
All physical components of computer system are called hardware. It
includes Monitor, keyboard, Hard disks and circuits like power supply,
cables and mother board.
2) Software:
Software is a set of programs/instructions that performs some task
on computer. It tells the computer what to do and how to do.
Programming languages are used to prepare software. Games, operating
systems etc are example of computer software.
4
Differentiate between hardware and software.
Software is set of instruction that tells computer what to do. Hardware is any
physical part of computer.
Software is debugged in case of problem. Hardware is repaired in case of
problem
Software is reinstalled if the problem is not solved. Hardware is replaced if
the problem is not solved.
Software is expensive. Hardware is cheap.
Software cannot be seen or touched. Output of software execution can be seen.
Hardware can be seen or touched.
2) Application Software:
Application software helps users to carry out their routine tasks. These
software are used to fulfill ( ) requirements of users and helps us to
do our task in efficient ( ) way. Application software run on system
software.
Examples: Media players, photo editing software, games etc…
Application software is further divided into following categories:
i) Productivity Software ii) Business Software
ii) Entertainment software iv) Educational Software
6
i. Productivity Software:
Productivity software is used to improve the way people work. It speeds
up our daily routine ( ) tasks and increases our productivity .
Before productivity software, people used to do work manually on
papers and registers etc… Productivity software have shifted us from
manual paper work to computerized and automated computer tasks.
Examples: Word processing, spread sheet, database management, graphics
software
ii. Business Software:
Business software are used to run business activities. It helps in
efficiently running business functions of company.
Examples: Accounting, payrolls, inventory, retail and ATM software.
iii. Entertainment Software:
These software are used to entertain people. These software include
games, media players and graphics software etc. media players are used
to watch movies and listen to the songs.
iv. Educational Software:
Educational software are used for learning purposes. Animated videos
are made to explain different concepts of biology, physics, chemistry
and computer itself. Such animated videos are called video tutorials.
Similarly, software like typing tutor enables us to learn typing by using
that software. Drill software takes test from student on computer etc…
Differentiate between System software and Application software.
System Software Application Software
System software are used to Application software are used to
manage system resources. fulfill user requirements.
System software provide platform Application software provide
for application software to run. interface for user to perform desired
task.
System software are general Application software are specific
purpose software. purpose software.
It executes all the time in computer. It executes as and when required.
The number of system software is The number of application
less than application software. software is much more than system
software.
System software are essential for a Application software are not
computer to work. essential for a computer to work.
7
3) Internet Applications:
i. Web Application:
Web applications run on remote server. Users can use these applications
through a web browser.
Example: Email programs like Gmail and hotmail, online banking
service, instant messaging service.
8
4) Licensed software, Open source software, Shareware software and
Freeware
a) Licensed Software:
Software license is a legal ( ) agreement. It specifies ( ) terms
of use for that software. It defines rights ( ) of software developer
and the user.
When we purchase ( ) software, we are only allowed to use that
software. We cannot resale and distribute ( ) that software to our
others. It means we are not the full owner of the software we have
purchased.
When we do not follow terms-of-use ( ), we are charged
for violating ( ) copy right law.
Example: Microsoft Windows and Microsoft office
What is firmware?
Firmware is an intermediate ( ) form between hardware and software. It
consists of software embedded ( ) in an electronic device.
Firmware is used when the programs are:
Rarely ( ) changed
Stored permanently ( ) even when power is off.
Examples: programs embedded in toys or appliances.
10
Pointing Devices:
These devices are used to control the movement of pointer (cursor) on the
screen to select items or to open computer program/file.
Examples: Mouse, Trackball, Joystick, Touch screen, light pen and Touch
Pad.
Mouse:
Mouse is an input pointing device. It is used to select various options. It is
a small hand held unit with two or more buttons.
It has a ball or optical light at the bottom. When mouse is moved over a
surface pad, it moves a small object (often an arrow) across the screen.
Trackball:
Trackball is an input pointing device. It is like a mouse turned upside
down. It has a ball and buttons. The ball is stationary ( ).
The ball is used to control the arrow on screen. It is moved with the help of
palm or finger tips. The buttons are used to select the options. Trackball is
useful for handicapped persons because it does not require movement of
arm. It is also useful where there is less space like in train etc.
Joystick:
Joystick is an input pointing device. It has a moving stick and buttons. It
is normally used for playing games and in computer aided designs (CAD).
The stick in joystick is used to control the character (an arrow or hero of a
game) on the screen and buttons are used to firing guns, applying brakes
etc…
Joystick is popular among the kids because it moves the objects on the
screen at a high speed and accuracy.
Touch Screen:
Touch screen is both an input device and an output device. It is a display
screen. The screen is sensitive to pressure. The user interacts ( )
with the computer by touching screen and selecting desired options.
Touch screen is also used in mobiles, PDA (personal digital assistant) and
satellite navigators.
Light Pen:
A light pen is an input pointing device. It consists of photo cells at its tip.
Photo cell sense the position on display when the tip of the pen is held
against the screen.
11
It is mainly used in engineering for designing purpose. It gives more
accuracy than our fingers and touch screens.
Touch Pad:
Touch pad is an input pointing device. It is used in laptop computers. It
can sense the movement of finger on the pad. Two buttons are also located
above or below it. Touch pads are used as an alternative ( ) to mouse in
laptops.
Microphone:
Microphone is an input device. It converts sound into electrical
signals/waves. These signals are passed onto the soundcard that converts
these signals to digital form and the data is stored on computer.
Digital Camera:
Digital Camera capture pictures, converts them to digital form and save
them on memory devices. The images and videos can be edited using
editing software.
Digital cameras have an LCD for viewing images. So it is an input as well
as output device.
Scanner:
Scanner is an input device. It converts hardcopy to softcopy, i.e.it transfer
material present on a paper to the computer. The scanned material is stored
in the form of digital image.
There are different types of scanner like hand held scanner, flatbed
scanner and barcode reader.
1. Hand held scanner
This scanner is held in hand and moved over the material to be
scanned. Hand held scanner should be moved with uniform speed
because uneven hand speed produces distorted ( ) result.
Hand held scanners are very useful for scanning articles from
magazines, newspapers and books.
12
Hand Held Scanner
2. Flatbed Scanner
Scanner:
Flatbed scanner has a flat glass bed. The paper is placed face down
( ) on glass bed
bed. Top cover is lowered over it to stop light from
entering. The camera moves across the glass and converts material
into digital form.
3. Barcode Reader:
It is a type of scanner that scans barcodes also called UPC ((Universal
Product Code
Code).
UPC is series of black and white lines. It holds coded information
like name of the product, company, manufacturing date, expiry date
etc…
Barcode reader is passed over the UPC code. It reads the information
hidden in bar codes and sends it to the computer.
Smeared characters
haracters Bad handwriting
13
Magnetic Stripe
Read head
Different types of Monitors are available in market like CRT (cathode ray
tubes), LCD (Liquid Crystal Display) and LED (Light Emitting Diodes).
14
Write note on following:
Cathode Ray Tubes:
Cathode ray tubes are similar to old TV sets. In cathode ray tubes, the
screen is coated with phosphor. There is an electron gun behind the
screen.
For colored CRTs, there are three guns one for each color Red, Green
and Blue.
A beam ( ) of electrons is emitted ( ) from the electron gun. When the
beam hits the phosphor, it glows ( ) up and produces light in different
colors. The combination of colors forms image on the screen.
Liquid Crystal Display (LCD) Monitors:
LCD is a thin and light weight monitor. It contains liquid crystals
between two sheets. The crystals produce colors when current is applied
on them.
The molecules of these substances are lined in such a way that the light
behind the screen is blocked or allowed and image is created.
LCDs have following advantages over Monitors:
LCDs provide a sharper image than CRTs.
LCDs emit less radiation ( ).
LCDs are lightweight, compact and portable
LCDs are more reliable and easier on the eyes than CRT.
15
2. Non Impact Printers
Non-impact printers print without striking the paper. Non-impact
printers are fast and do not produce noise while printing. Non-impact
printers are expensive. Their print quality is better.
Examples: Ink jet printers and LASER printers
17
Write note on main memory.
Main memory is directly connected with CPU and communicates directly
with CPU.
Main memory is also known as internal memory or primary memory.
It is very fast memory.
It has small capacity as compared to secondary memory.
Main memory is expensive.
Examples: RAM, ROM, Cache and Registers
All main memories are made of semiconductor chips.
18
RAM has two main types:
1) Dynamic RAM (D-RAM)
2) Static RAM (S-RAM)
L1 & L2
Cache
L3
Cache
Main Memory
(RAM)
CPU first look up in the cache memory for required data and if it is not
available in cache then it is fetched ( ) from RAM.
Cache is used to increase the speed of computer.
Cache is faster than RAM.
Cache is quite smaller in size than RAM.
It can be located inside CPU or outside the CPU. Most common forms of
Cache are L1 (level 1) cache, L2 cache and L3 cache.
L1 and L2 cache are located inside CPU. L3 cache is located on motherboard
outside CPU.
L1 cache is faster and smaller than L2 and L3 while L3 is larger and slower of
the three.
20
Explain Sequential Access Memory and Direct Access Memory
Sequential access memory:
Sequential access memories are not addressable.
The data is stored and accessed in a sequence. Each time the computer
requires any record, it starts scanning form the first record.
Sequential access memory is slow because access time for different
locations is different.
Sequential access memory is also called Serial Access memory.
Examples: Magnetic Tapes and Audio Video Tapes.
Direct access Memory:
Direct access memories are addressable memories.
Stored records have unique addresses so the data is stored and accessed
directly by their addresses.
Random access memory is fast as access time for every location is same.
Direct access memories are also called Random access memories.
Examples: Hard disk, RAM, ROM, CDs, DVDs, Floppy drives and flash
drives.
Memory Terminologies:
Bit:
Bit is the basic and smallest unit of memory in digital computers. It
represents either 0 or 1.
Byte:
A group of 8 bits is called bytes. Byte is generally used to express the
memory of the computer. A byte can store one character in computer
like ‘A’, ‘*’ etc…
The higher units of bytes are Kilo bytes (KB), megabytes (MB) etc…
Memory Word and Word size:
Memory word is a group of bits that can be processed by CPU at one
time. It is fixed size piece of data.
The number of bits in word is called word size. Speed of processor is
measured by the word size. Greater word size means greater speed.
Word size in modern computers ranges from 16 to 64 bits.
22
3) Optical Discs:
Optical Disc uses light technology to read and write binary information.
These devices have hard plastic disc. LASER beam is used to write data
on plastic disc and LASER light is used to read data from that disc.
Working:
LASER beam makes pits and lands on shiny side of plastic.
Lands represent 1 and Pits represent 0.
When we want to read data, LASER light is thrown on the disk.
If the light strikes on land, it reflects straight back to the sensor
and is considered 1. If the light strikes on pits, it is scattered (
) and is considered 0.
Examples: CDs (Compact Discs), DVDs (Digital Video Discs) and
Blue Rays.
Working:
The disk spins with the help of a motor. All the disk platters spin at the same
time. The heads move over the spinning disks. The Write head puts
23
positive/negative charges on the disk. 1 is stored as Positive charge and 0 is
stored as negative charge.
Positively charged read heads move over the disk. The point where read head
senses repulsion is considered 1 and the point where read head senses attraction
is considered 0.
What is Arithmetic and logic unit (ALU)? Describe its working with an example.
ALU is the part of the computer where the actual processing takes place. It has
logical circuitry that performs arithmetic and logical operations on two binary
numbers.
25
The two binary numbers are stored in two registers: data buffer register and
accumulator. In the end the result is stored in the accumulator register. ALU is
further divided in two units:
1) Arithmetic Unit:
It performs operations such as addition, subtraction, multiplication and
division.
2) Logical Unit:
It performs relational comparison such as greater than and less than
operations and operations like AND, OR, NOT etc…
26
What is Bus? Explain.
Bus is a set of parallel wires. It provides electrical pathways ( ). It is used
to transfer bits from one unit to another. The bits transferred may be the data,
instructions, addresses or control signals. Buses can be internal or external.
Internal Buses:
Internal Buses are located inside CPU. These buses connect registers, ALU and
CU and Cache with each other.
External Buses:
External Buses are present on mother board. These buses connect CPU to main
memory and input output (I/O) devices.
What is Bus width?
Bus width is the bits transfer capacity of a Bus. Bus with greater width can transfer
more bits at a time.
Explain types of Buses.
There are three types of Buses:
Control Bus
Address Bus
Data Bus
1) Control Bus:
Control bus is a bidirectional bus. The Information flows in both directions
It transfers control information. Control information consists of the timing
and control signals.
Some of the control lines are outputs from the microprocessor and other are
inputs to the microprocessor from I/O devices.
It connects CPU to memory and input output devices.
Control Bus widths ranges from 8 to 16 bits.
2) Address Bus:
Address bus is unidirectional bus. The information flows in only one
direction.
It transfers address information from CPU to main memory and I/O
devices.
It connects CPU to memory and input output devices.
Address bus width ranges from 16 to 32 bits. A system with 32-bit address
bus can carry 232 memory locations.
3) Data Bus:
Data bus is bidirectional bus. The Information flows in both directions.
It transfers actual data and instruction codes.
Data can be sent from CPU to memory (write operation) or from the
memory to the CPU (Read operation).
It connects CPU to memory and input/output devices.
Data Bus width ranges from 32 to 64 bits.
27
What is an instruction cycle? Explain.
It is the basic operation cycle of computer to execute instructions. It consists of
three instruction cycle steps:
1) Fetch instruction/Operation
2) Decode Instruction/Operation
3) Execute Instruction/Operation
1) Fetch instruction/operation:
In this operation Control Unit fetches an instruction from main memory. The
instruction is fetched by performing following steps:
Control unit sends an address to main memory through address from
where to fetch an instruction.
It places Read command though control bus.
The instruction is transferred from main memory to the Instruction
register.
2) Decode instruction/operation:
The instruction decoder decodes the instruction and determines what the
instruction is intended to do.
3) Execution instruction/operation:
The timing and control logic circuitry generate ( ) signals to execute the
instruction.
28
What is Instruction Format?
Instruction format is the layout and arrangement of the instruction. It consists of
two parts, an Op-Code and Operand.
Operation code specifies the type of operation to be performed. The operation
may be addition, subtraction or Move instruction or load instruction etc…
Operand is the data or memory address of data on which an operation is
performed.
Example:
Consider following instruction:
10010 00001111
The op-code 10010 is the code for add operation. The add operation is performed
on the data that is stored on address 0000111.
Describe common instruction formats.
Some common instruction formats are given below:
1. Zero Address Instruction 2. One-address instruction
3. Two Address Instruction
4) Zero Address Instruction:
This instruction does not have any address. It only has an op-code.
Op-code
Op-code Operand/Address
For example JMP instruction only requires one address to jump. LDA (load
accumulator) is also one address instruction.
Example:
JMP AX (Jump to the register AX)
JMP AX
29
ADD A B
31
2) Special Purpose Register:
These registers hold the state of program. These registers are used by Control
Unit to control the operations of CPU. Operating system also uses them to
control execution of programs.
What is motherboard?
It is also known as main board or system board. It is a circuit board that connects
all the components of computer through ports, cables or expansion slots.
32
Peripheral Devices:
All the devices that are attached to the computer motherboard are called peripheral
devices. Devices like RAM, ROM, mouse, keyboard monitor are called peripheral
devices.
Memory Slots: With the help of memory slots, RAM is connected with CPU.
RAM card is attached on these slots. RAM card is a circuit board that has series of
RAM chips. Generally there are two memory slots available on motherboard.
Disk Controller: Disk controllers control disk drives like hard disk, CDs and
Floppy disks. Disk controller helps in communication between CPU and disk
drives. Nowadays Disk controllers are integrated ( ) into disk drive itself
such as EIDE and SATA hard disks.
AGP: AGP stands for Accelerated Graphics Port. Video cards are attached on it. It
provides high speed and dedicated path-way between CPU and Graphics card. Its
bus width is 32 bits.
33
PCI: PCI stands for Peripheral Component Interface. Different cards can be
attached on it like sound card, network card or modem card etc… It is still in use
but now it is replaced by PCI express.
PCI express: PCI express is a latest ( ) standard that is designed to replace PCI
and AGP standards. It has a bus width of 32 bits. It is used in micro and laptop
computers. It provides high speed serial communication.
Ribbon Cables: This cable has several parallel wires in a flat plane. It looks like a
piece of ribbon that’s why it is called ribbon cable. It transfers bits from floppy
drive, hard drive and CD-Rom drive. Following are different types of ribbon cable
interfaces:
1) IDE interface and cable:
IDE interface is used to attach hard disk drives and CD-Rom to
motherboard while IDE interface cable transfers bits from hard disk/CD-
Rom to motherboard. In IDE interface, disk controller is integrated into disk
drive itself.
IDE stands for Integrated Drive Electronics. It was developed by Western
Digital. Compaq PCs used IDE interface hard drive for the first time. In
1994 Western Digital introduces Enhanced IDE named as EIDE.
2) SATA Interface and Cable:
SATA stands for Serial Advanced Technology Attachment. SATA interface
is used to attach hard drives and CD-Rom to mother board while SATA
interface cable transfers bits from hard disk/CD-Rom to motherboard. It is a
newer interface and has replaced EIDE. It is used with laptops and desktop
computers.
SATA interface provides faster and more efficient data transfer rate. Its
cable is also small in size and cost. SATA 1, SATA 2 and SATA 3 interfaces
provide communication rates of 1.5GB/Sec, 3 GB/Sec and 6 GB/sec.
2) Parallel Ports:
Parallel ports transfer 8 or 25 bits at a time. Parallel ports are used to connect
parallel (fast) devices. Parallel ports provide fast transfer rate. Parallel ports
are named as LPT ports (LPT 1, LPT 2, and LPT 3). Parallel ports have 25
pins. 8 pins carry 1 byte of data and 17 pins carry control signals.
3) PS/2 ports:
PS/2 stands IBM’s personal System 2 micro computer. It was used to connect
keyboard and mouse. It is a round shaped serial port.
34
4) USB ports:
USB stands for Universal Serial Bus. It provides fast serial transmission. It is
used in modern computers. It can connect up to 127 different devices like
mouse, keyboard, printer, scanner, digital camera etc… It is a plug and play
port. It automatically detects and determines what type of device is attached to
the computer.
6) HDMI port:
It stands for High Definition Multimedia Interface. It provides audio-video
interface and transmits high quality audio-video data in digital form through a
single cable. All modern computers, laptops, TVs, digital cameras, set-top
boxes, DVR, disk players have at least one HDMI port.
3. Modem Card
A Modem is a communication device. It allows computer to connect with
other computers via telephone line or some other line. Modem stands for
35
Modulator DEModulator. Modem cards can be attached on expansion slot as
well as integrated on motherboard. There are three types of modems:
Dial-up Modem: It uses telephone lines. Its transmission speed is very
slow i.e. up to 56 Kbps (Kilo bits per second). But it provides internet
connection from any location in the world and is quite cheap.
ISDN Modem: These Modems are used with ISDN (Integrated Service
Digital Network) connections. These are called integrated because it
combines voice and data services in one wire. It also uses phone lines. Its
speed is up to 128 Kbps.
DSL (Digital Subscriber Line) Modem: These modems are used with DSL
connections. DSL modems are advanced and provide fast internet speed
depending upon Internet Service Provider (ISP). Dial-up modems and ISDN
modems are now replaced by DSL modems. It also uses phone lines.
However it is expensive than dial-up and DSL modems.
Memory Chips:
Memory chips are classified into four categories.
1. SIMM:
SIMM stands for Single Inline Memory Module. SIMM have contacts, the
bunch of memory chips, on one side only. It uses 32 bit bus. Their
storage capacity is from 256 KB up to 32 MB. SIMM was used in 80s and 90s
and replaced by DIMM.
2. DIMM:
DIMM stands for Dual Inline Memory Module. DIMM have contacts, the
bunch of memory chips, on both sides so it has more storage capacity than
SIMM from 64 MB to 512 MB. It uses 64 bit bus so its data transfer speed is
higher than SIMM.
36
3. SDRAM:
SDRAM stands for Synchronous Dynamic Random Access Memory. It is an
improvement over DRAM. It retrieves ( ) data alternatively between two
sets of memory. It eliminates ( ) delays that DRAM had i.e. the delay
caused when one bank of memory addresses is shut down while another is
prepared for reading. It is called Synchronous DRAM because the memory is
synchronized ( ) with the clock speed of CPU bus. Faster the bus speed,
the faster will be the SDRAM.
4. DDR SDRAM:
DDR SDRAM stands for Double Data Rate SDRAM. It is synchronous DRAM
but has improved memory clock speed as compared to SDRAM. It reads or
writes 2 words per clock cycle. DDR 2 and DDR 3 are also available. DDR 2
can read/write 4 words per clock cycle where as DDR 3 read/write 8 words per
cycle.
37
3. Medium:
It is the path through which message is carried from source to destination.
Medium can be wired (telephone lines, copper wire, Fiber optics) or wireless
(Bluetooth, microwave, WI-FI, radio wave and satellite)
4. Receiver
The computer or electronic device, which receives the message is called
receiver. It is the destination of information. It may be a computer, cell phone,
camera or workstation. The message received is first converted into the form
readable by receiving device.
5. Protocol:
It is a set of rules that governs data communication. It represents an
agreement between communicating devices. Without a protocol, two devices
are connected but cannot communicate with each other.
Simplex Mode:
In this type of mode, data can be sent only in one direction. It is uni-
directional. One device acts as sender and the other device acts as receiver.
TV remote is an example of Simplex mode where Remote acts as sender and
TV acts as receiver and receives commands from Remote Control.
Radio and Television broad casting are other examples of Simplex Mode.
Transmission of information from a computer to printer is also in one
direction. Electronic notice boards in train stations and Airports are also its
example.
38
Case 1:
Case 2:
Synchronous Transmission
In synchronous transmission, the data is transmitted in blocks. Each block may
consist of many characters. In this transmission the time interval (gap) between
two characters is always exactly the same.
It does not use start/stop bits. It uses a clock to control the timing of sent
blocks.
39
A large amount of information can be transmitted at a single time. Synchronous
transmission is much faster than asynchronous transmission because start/stop
bits are not used and only data is sent.
What is node?
Any device that is connected to a network is called node. A node may be a
computer, printer, keyboard, scanner, a video terminal, switch or router etc…
Telephone Cable:
Telephone lines are the most common and widely ( ) used data
communication media. These are cheaper as the telephone lines have already
been placed. Telephone lines provide communication media to almost every
part of the world. However, telephone line is slow as compared to other
communication devices so its use is declining ( ). Telephone lines are
mostly made of copper.
Coaxial Cable:
Coaxial cables are used long distance transmission. It transmission speed is
higher than telephone lines about (10 Mbps to 100 Mbps).
40
It is made up of a central copper wire that is covered by plastic cladding,
metallic shield and plastic jacket. These are laid underground or on the ocean
bed.
Coaxial cables provide high quality data transmission without loss of signal or
distortion. A large cable can handle hundreds of thousands of telephone calls at
the same time.
Microwave transmission signals travel through open space like radio signals.
Microwave systems consist of transmitters which are normally installed on
high buildings, mountain tops or high towers.
41
Long distance microwave channels consist of a series of relay stations
(boosters) spaced approximately 30 miles apart. Signals are amplified at every
station. Microwave uses line of sight transmission because the signals cannot
bend and travel in straight line. So the two stations must be within sight ( ) of
one another. They provide a much faster transmission rate than telephone lines
or coaxial cables.
Communication Satellites:
Switches:
Switch connects computer in LAN. Switch is more intelligent device as
compared to hub. When switch receives data packets, it determines the source
and destination address and forward the packet to intended device only.
Like Hub, switch consists of a box having multiple input and output ports.
Router:
It connects two or more networks. Since internet is a connection of multiple
networks so routers are used in internet. When router receives the data packets,
it looks to the remote computer address and forwards to the computer/router
closer to the remote computer. It selects the best path-way based on network
42
traffic. Many routers take part ( ) in transmitting data packets from source to
destination.
Gateway:
It connects one network to another network that uses different protocols. For
Example if we connect a network of IBM mainframe computers with the
network of PCs, we might use a gateway. Gateways change the formatting ( )
of data packets according to the receiving network format.
43
Explain types of computer Network.
Based on size and coverage area, computer networks are divided into following
types.
1. Local Area Networks (LAN):
LAN connects computers within a building or a group of nearby ( ) buildings.
For example network of computers in college lab is local area network. It is used
to share printers, hard disks and applications and project tracking etc...
Characteristics:
It covers (spans ) limited physical area, building or group of nearby
buildings.
It connects computer at single place.
It consists of limited number of computers.
Its communication speed is fast. It uses high speed wired/wireless connections
like coaxial cables etc…
It is a very reliable and error free network.
The connection in LAN is permanent.
2. Metropolitan Area Network (MAN):
MAN connects computer within an entire city. It spreads over several buildings
and connects multiple LANs within a city.
Characteristics:
It is larger than LAN and smaller than a WAN. It covers an area of 5 to 50 km.
It uses fiber optic cable or microwave transmission.
It provides high speed communication.
It is used by telephone companies, cable TV companies and Internet service
providers.
Features
It is simple and easy to use.
It suitable for small networks.
It is cheap.
It requires small length of cable.
At each end of the bus, there are terminators that absorb signals. The signals
do not reflect back and this prevent errors. Terminators are attached to the
ground.
Limitations:
If central cable (bus) fails, whole network goes down.
It is not suitable for large networks.
Difficult to identify the problems.
Working:
The sender computer places data and destination address on the bus. The data and
address reaches to all computers via bus. Each computer checks the address. If the
45
address matches with its own address, the computer keeps the data otherwise it
discards ( ) it.
2. Star Topology:
All network nodes are connected to a central device called hub. Larger networks
may require many hubs. In this case hubs are connected with each other to join all
the nodes into a single large network.
Features:
It is suitable for both small and large networks.
It is easy to install and wire.
Faults are easily detected and removed.
Failure of one cable or computer does not affect whole network.
Limitations:
If central hub fails, entire network goes down.
It requires large length of cables as compared to bus topology.
It is more expensive.
Working:
The sending computer sends data and destination address to the hub. The hub
sends data to the receiving computer. All communication is carried via hub.
3. Ring Topology:
Each node is connected to the next node and the last node is connected to the first
one. So, it forms a ring or circle of nodes. Data flows in one direction.
Features:
Each node is directly connected to the ring.
It is easy to install and wire.
Data flows in one direction.
It is less expensive.
Limitations:
If the ring is broken or any one computer fails, whole network goes down.
Slower than other topologies.
Working:
Data and address moves from computer to computer. Each computer checks the
address. If the address matches with its own address, the computer keeps the data
otherwise the data moves to the next computer.
46
4. Mesh Topology:
Each node is directly connected to all the other nodes in the network.
Features:
It is most reliable network.
It manages high data traffic.
Different paths are available for the data in case any direct link is broken.
Limitations:
It is most expensive topology to implement.
Its installation (setup) and maintenance ( ) is very difficult.
Working:
Since all computers are directly connected, so the data is directly sent to the other
computer. In case the direct link is damaged or broken, data is routed from another
path.
47
Layer 6 – Presentation Layer:
Presentation layer takes data from application layer. It converts data into the
format that the other layers can understand. On the receiving end, it converts
information in the form human can understand.
What is protocol? List different protocols along with the layers and devices they
are used in and their purpose.
Definition of protocol is already given at start of this chapter.
Layers of Protocol Devices
Protocol Function
OSI Model Name Used
Application
HTTP It provides interaction between user and software Gateway
Layer
It converts data into the format that the other layers
Presentation Window
can understand. On the receiving end, it converts Gateway
Layer O.S
information in the form human can understand.
Session Starts and Stops communication session between
NetBIOS Gateway
Layer applications
Transfer Data between source process and
Transport Router and
TCP destination process, and is responsible for error
Layer Gateway
recovery and flow control.
Network Controls routing and forwarding of data between
IP Router
Layer source and destination.
Data Link X.25 Forward data from one node to the other. Provides Switches &
Layer IEEE 802 error checking facility. NICs
Physical X.25 Provides hardware such as cables and connectors Cables and
Layer IEEE 802 for sending and receiving data. Connectors
48
Explain TCP/IP protocol.
TCP stands for Transmission Control Protocol/Internet Protocol. It is a combination
of two protocols: TCP and IP. It was developed by Department of Defense (DoD). It
is used on the largest network i.e. Internet and is available on small and big
computer.
IP protocol works on network layer. It handles the data transfer from the sender to
receiver. It assigns IP address. IP address is the unique logical address of connecting
devices.
TCP protocol works on transport layer. It ensures ( ) reliable and accurate data
transfer. It involves error checking and flow control of data between sender and
receiver.
What is an IP address?
IP address is a unique address of computer (or node) on a network. It is 32-bit
address and is divided in four octets. Each octet is represented by 8-bits. The octets
are separated by dot and are converted to decimal for human understanding.
49
For Example, consider the following IP address in binary form:
11000000.10101000.00001111.10000100
192.168.15.132
Parts of IP address:
IP address has two parts:
1) Network Number: It is the network address to which computers in that
network are connected.
2) Computer Number: It is the address of computer in that network.
Computers of same network have same Network number but different computer
number.
Computers of different networks have different Network number and may have
same or different computer number.
Class A has 8-bits Network Number and 24-bits Computer Number. The first most
significant bit of network number is always 0. Class A can identify about 224
computers per network.
2) Class B Address:
Class B has 16-bits Network Number and 16-bits Computer Number. The first two
most significant bits of network number are always 10. Class B can identify more
than 65000 computers about 216 computers per network.
50
3) Class C Address:
Class C has 24-bits Network Number and 8-bits Computer Number. The first three
most significant bits of network number are always 110. Class C can identify about
28 => 256 computers per network.
Class A: 255.0.0.0
Class B: 255.255.0.0
Class C: 255.255.255.0
192.168.15.132
Its binary representation is:
11000000.10101000.00001111.10000100
255.255.255.0
11000000.10101000 .00001111.10000100
11111111. 11111111. 11111111.00000000
The bits of IP address that matches with the 1s in subnet mask are taken as network
number and remaining bits are taken as computer number. So the network number
here is:
11000000.10101000 .01111011.00000000 i.e. 192.168.15.0
51
Explain circuit switched networks and packet switched networks.
In circuit switched networks, a physical connection is established every time
between the two connecting devices. This connection can only be used by the two
connected devices. The connection remains open for the duration of the
communication. Circuit switch network provides fixed data rate channel. An
example of a circuit switched network is the telephone network.
Radio Signal:
A radio signal (radio wave) is an electromagnetic wave propagated by an antenna. The
waves have different frequencies. Radio frequency (RF) systems have two components:
Transmitter: It sends radio signals at different frequencies.
Receiver: It tunes itself to certain frequency signal and listen that signal.
RF systems also have set of rules that tell how the transmitter and receiver will
communicate, for example the transmitter and receiver must communicate at a certain
frequency.
Early radio signals were analog but today most of the radio signals are digital.
Radio Transceiver:
It is a device that can both transmit and receive radio signal. It has a common circuitry for
sending and receiving data. Cell phone is an example of transceiver that can both send and
receive radio signals.
Radio stations are transmitter only as they can only send radio signals. Similarly radio tapes
are receiver only as they can only receive radio signals.
Microwave Communication
Satellite Communication
53
Explain Short and Long Distance Wireless communication:
Based on the region covered, wireless communication can be short distance or long
distance.
A. Short distance wireless communication:
Short distance wireless communication ranges from few meters (like infra red) to a
distance of up to 50 km (WI-Max). Following are different types of short distance
wireless communications:
1) Infra Red 2) Bluetooth
3) WI-FI 4) WI-MAX
2) Bluetooth:
Its range is about 10 meters and data transfer rate is up to 723Kbps. It is low speed
and has short range as compared to WI-FI and WI-Max. It consumes low power.
Devices like mobiles, laptops, PCs and video cameras etc connect and exchange
information through Bluetooth. Wireless keyboards, mouse and printers also use
Bluetooth technology.
1) Cellular Communication:
It divides geographical region into section called cells. Each cell has a base station.
Base Station has a transceiver and controller that provides radio transmission to
mobile phones.
Each mobile phone uses a separate temporary radio frequency (channel) to talk to
base station (BS). BS can talk to many mobile users at the same time. Channel uses
pair of frequencies. One frequency (the uplink) is used by mobile phone to
communicate with base station. The other frequency (Downlink) is used by BS to
54
communicate with mobile phone. Main feature of this type of communication is the
reuse of radio frequencies at each cell.
55
2) Base Station:
Base Station communicates with many mobile phones at the same time. It has a
transceiver and antenna for sending and receiving signals from mobile phones. It is
responsible for handling data traffic and signals between mobile phones.
3) Switching Node
It performs switching and mobility management functions for mobile phones. Switching
nodes are owned and developed by mobile phone operators. These allow mobile phones
to communicate with each other and telephone landline network.
56
2) Wireless Markup Language (WML)
Wireless Markup Language is based on HTML and XML. It delivers Internet contents to
small wireless devices like mobile phones and tablets etc…WML uses less memory and
less processing power from browser than HTML. It also supports small display sizes.
Example:
When students get admission in a college, they fill admission form. This form contains raw
facts (data of student) like name, father’s name, address of student, marks obtained etc.
After collecting admission forms, merit is calculated on the basis of obtained
marks/percentage of each candidate. Then the candidates’ names are arranged in
descending order by percentage. This makes up a merit list that is information.
57
DBMS provides user-friendly access and controls between user and database. Its main
purpose is to improve data sharing, data access, decision making and increase end user
productivity.
Examples of DBMS are customer information system, Library management, Inventory
information.
4. Lack of flexibility:
With file management method, it is hard to assemble data in different formats. If format
changes a whole new file has to be made again. Database management method is flexible
and we can easily assemble data in different formats.
58
What is database planning? Describe its steps.
Database planning is a step-by-step approach to the development of database. It starts from
the concept of design and then moves to development and implementation. It saves time
and efforts and makes data entry and retrieval consistent. Following are the steps involved
in planning a database:
1) Problem Identification:
The nature and scope of the problem is identified and the problem is clearly defined.
Database developers identify the type of information needed as well as the unknowns.
2) Feasibility study:
The purpose of feasibility study is to fine one or more solutions of the problem and to
suggest the most desirable and economic solution. More than one solution is
generated from which one solution is proposed. Feasibility study includes:
1) Investigate the problem
2) Find out all the possible solution
3) Study all the solutions to determine their feasibility
4) List issues with each solution
5) Select the preferred solution
6) Document the results in feasibility report
3) Requirement Analysis:
The purpose of requirement analysis is to obtain thorough and detailed understanding
of the problem. It is important to create a complete and accurate representation of all
the requirements. Requirements analysis includes following:
1) Entities required, (i.e. the number of tables)
2) Fields required for each entity in table
3) Key field in each table 4) Data types of the fields
5) Relationship between entities 6) Queries
7) Forms Designs 8) Reports
59
Fields:
Attributes of an entity are stored in computer as fields. Each field stores one attribute.
Example: Name of student will be stored in one field and his age in other field.
Characters:
Characters are grouped together to form fields. For example student name Ali is made
of three characters.
Record:
A collection of related fields treated as a single unit is called a record. . It is also
known as tuple/row. It is a combination of attributes/fields. For example:
Fields
Table/Relation:
A database table is a file that contains data about a single entity. For example a
student table contains all the records of students.
File:
A file is a collection of records. For example a stock file contains record for items of a
stock.
View:
It is made up of rows and columns. It may display information that is restricted to a
part of table. It may also present selected data from several tables at a time.
Data Types:
Every Field in table is assigned a data type. Data types available in a database are:
1) Character: It is used to store text, or combination of text and numbers.
2) Integer: It is used to store whole numbers such as 34, 2073 etc…
3) Real Numbers: It is used to store numbers that have fractional part such as 73.89.
4) Boolean Data: It is used for TRUE or FALSE values. NULL values are not allowed.
5) Date and Time: It is used for storing date and time.
DOCTOR Table:
Doctor Id Name CNIC Gender Phone No Sp
x-123 Fahad 3723-7213 Male 0333-0000 3
x-124 Samreen 3740-7235 Female 0312-0132 2
x-125 Khalid 3712-4597 Male 051-12365 3
SPECIALTY Table:
Specialty Id Specialty Name
1 Heart Specialist
2 Dentist
3 ENT specialist
4 Urologist
61
4) Physical Data Modeling represents an application and database-specific
implementation of logical data model.
Define relationship.
A relationship is a link or association between entities. For example, there is a relationship
between doctor and patient, i.e. Doctor treats patient. The relationship is identified by
diamond symbol. The relationship between doctor and patient is represented as:
1) Unary Relationship:
When the relation/association is maintained within a single entity then such relation is
called unary relationship or recursive relationship. Example: The Employee Manages
Employee.
Employee Manages
2) Binary Relationship:
When the relation/association is made between two entities then such a relation is called
binary relationship. Example: Doctor treats Patients.
62
i. One-to-one:
One entity instance has only one with other entity instance. These are marked as 1:1.
Example: Person and Id card has one-to-one relationship. One person can only have
one ID card. Similarly an ID card belongs to only one student.
1 1
Person Has Passport
ii. One-to-many:
One entity-instance has many relations with other entity-instances. These are marked
as 1:N, where N means more than one
Example: Mother and children have one-to-many relationship. A mother can have
more than one child but every child has only one mother.
1 N
Mother Has Children
iii. Many-to-Many:
Many entity-instances have many relations with the other entity-instances. It is
marked as N:N.
Example: Teacher and Class entities have Many-to-Many relationship because a
teacher can teach more than one classes. Similarly a class is taught by more than one
teacher.
N N
Teacher Teaches Class
Representation Method:
Examples:
63
Mother II Has I< Children
What is normalization and normal form? How many normal forms are available?
Normalization is a process of producing simple and more reliable data structure. The
process of normalization goes through different Normal forms like 1NF, 2NF and 3NF
etc…
A normal form is state of tables that can be determined by applying some set of rules.
There are five normal forms namely First normal form (1NF), Second normal form (2nF)
and so on..
64
Third Normal Form (3NF):
The table is in third normal form if it contains no transitive functional dependencies.
Transitive functional dependencies exist when a non-key attribute determine other non-
key attributes.
Transitive functional dependency is removed by making a new table and shifting
dependant attributes there. The determinate column acts as foreign key in original table.
What is table?
Table is a combination of rows and columns. It holds actual record of same nature. Rows
represent records, while Columns represent fields of each record.
In access, Table can be defined in three ways:
1) Design View
2) Using Wizard
3) By entering Data
Data is entered in table using Datasheet View. Datasheet view shows data in the form of
rows and columns.
65
What is the standard notation of describing a Table/Entity?
Consider following Book table:
Book ID Title Author Date Published
Describe queries.
Queries are used to gather selected information from database. It can access
data from more than one table at a time.
66
Results of queries are shown as Data sheet view. Queries can also be accessed
through forms or reports.
We can make parameter queries that ask user to enter desired value. It then displays
result which matches that value.
We can also apply criteria on different fields.
Consider following query. On execution, it asks user to enter Member Name and then gather
required information of that member:
The result is shown in datasheet view. However, same query can be accessed through form or
reports. In following figure, the same query is accessed through form.
67
6) Make Table query:
Make table query retrieves records from a table and copies them into a new table.
2) Referential Integrity:
It states that if a foreign key exist in a table, its value must match to a primary key in
another table. It is a constraint on foreign key. Database cascading deletion and
cascading update option helps maintain referential integrity.
68
Date/Time: This field is used to store date and time in fixed formats. The date is
represented by whole number and time in decimal portion.
Currency: This field is used to store currency data. It has special fixed format with four
decimal places to prevent rounding errors.
Yes/No: This field can either store Yes or No. -1 represents Yes (True) and 0
represents No (False).
What is Office Button? What tasks are performed from office button?
Office button is located on the top left corner of the access window. When we click this
button it provides list of different tasks such as saving, opening, new file creation and
printing etc… We can select the desired option.
69
What is query design grid? Explain its usage.
The grid that you use to design a query or applying filter in query Design view is called
query design grid. It has following options, 1) Criteria 2) Show 3) Sort 4) Table and Field.
In criteria option we can apply particular criteria as per our requirement. Show option is
used to show/hide any field in query result. Sort filter option is to sort data against a
particular field. Field name shows the selected field and table name shows the table from
which field is selected.
2) Columnar Layout: Columnar layout displays data in the form of columns. The
headings (labels) are placed on the left side while data is placed on right side.
3) Justified Layout: Justified layout uses full width of the page to display records. The
data is spread across full width of the page.
4) Datasheet layout: This layout displays data in datasheet layout the same way data is
shown in tables.
1) Tabular Layout: This layout displays data in tabular form (rows and columns). The
headings (labels) are placed at the top while each row represents a record.
2) Columnar Layout: Columnar layout displays data in the form of columns. The
headings (labels) are placed on the left side while data is placed on right side.
3) Justified Layout: Justified layout uses full width of the page to display records. The
data is spread across full width of the page
And if we select Grouping Level option then following layouts can be used:
4) Stepped
It is similar to table of context. The grouping level field comes first and other fields
are arranged below on next line.
5) Block
Grouping level field and other fields are arranged on same line. The fields are
enclosed in blocks.
71
6) Outline:
It is similar to Stepped layout. Grouping level field and other fields are arranged on
separate line. However for every level, the Fields name is shown separately.
Tidbits
The first computer mouse was invented by Doug Engelbart in around 1964 and
was made of wood.
Robert H. Dennard invented first dynamic random access memory (DRAM) in
1968
In September 1965, IBM launched the 305 RAMAC, the first super computer
with a hard disk drive (HDD). The HDD weighed over a ton and stored 5 MB
of data.
The Intel 4004, a 4-bit central processing unit (CPU) was released by Intel
Corporation in 1971. It was the first microprocessor.
72