Understanding Computer Basics
Understanding Computer Basics
Introduction to Computer
In the modern era, computers are an essential part of our everyday existence.
That means computers are present in almost every field, making our day-to-
day tasks easier and faster. Nowadays, computers can be seen in banks, shops,
schools, hospitals, railways, and many more places, including our home. As
they are such an essential part of our lives, we must know about the basic
computer introduction. Let us start with defining the computer first:
What is a Computer?
The straightforward meaning of a computer is a machine that can calculate.
However, modern computers are not just a calculating device anymore. They
can perform a variety of tasks. In simple terms, a computer is a programmable
electronic machine used to store, retrieve, and process data.
Whatever is given to the computer as input is called 'data', while the output
received after processing is called 'information'.
When the computers were introduced, they were large and could fill an entire
room. Some computers were operated using large-sized vacuum tubes. In
1833, Charles Babbage (known as the father of the computer) invented an
early calculator, which was named as the 'difference engine'. Later in 1837, he
introduced the first mechanical, general-purpose computer 'Analytical
Engine'. Over time, computers became powerful in performance and small in
size.
Generations of Computer
There are five generations of the computer, which can be classified as below:
First Generation (1946 - 1959): During the first generation, computers were
based on electronic valves (Vacuum Tubes). Some popular computers of first-
generation are ENIAC, EDVAC, UNIVAC, etc.
Fifth Generation (1980 - Present): The fifth generation is still ongoing. The
computers are based on multiple technologies, such as ultra large scale
integration (ULSI), artificial intelligence (AI), and parallel processing
hardware. The fifth generation of computers includes Desktop, Laptop,
NoteBook, etc.
Hardware
The physical parts attached to a computer that form a whole computer are
called hardware
Input Unit: Input Units or devices are used to input the data or instructions
into the computers. Some most common input devices are mouse and
keyword.
Output Unit: Output Units or devices are used to provide output to the user
in the desired format. The most popular examples of output devices are the
monitor and the printer.
Control Unit: As its name states, this unit is primarily used to control all the
computer functions and functionalities. All the components or devices
attached to a computer interact with each other through the control unit. In
short, the control unit is referred to as 'CU'.
Arithmetic Logic Unit: The arithmetic logic unit helps perform all the
computer system's arithmetic and logical operations. In short, the arithmetic
logic unit is referred to as 'ALU'.
Memory: Memory is used to store all the input data, instructions, and output
data. Memory usually has two types: Primary Memory and Secondary
Memory.
The memory found inside the CPU is called the primary Memory, where as the
memory that is not the integral part of the CPU is called Secondary Memory.
Note: Control Unit, arithmetic logic unit, and the memory simultaneously form the
central processing unit (called CPU in short).
Functions of Computer
There are four core functions of the computer, as explained below:
Input: Whatever is given to a computer is called the input. The input data is
given to the computer using the input devices. The computer only takes data
in a binary form (raw format). The input devices help convert the entered data
in the binary form to be understandable by the computer. Data can be
inputted in various forms, such as letters, numbers, images, etc.
Typically, the following operations are performed on the data during the
processing:
Output: Anything that comes out from the computer is called the output. It is
the human-readable data and displayed on the computer screen (monitor).
Output can be stored in the storage devices if desired. The output devices
help convert the processed data of the CPU into the human-understandable
form.
Storage: The device used to store the data of a computer system is called the
storage. Storage devices help to store digital data. They can store the data
while the computer is operating and after processing. There are volatile and
non-volatile storage options. The volatile storage can store the data as long as
the power source is connected, whereas non-volatile can store the data
permanently even after the power source is disconnected.
Characteristics of Computer
The essential characteristics of the computer make it such an important part
of human lives. Let's understand the basic characteristics of computers:
Accuracy: Computers are also known for their accurate performance. They can
complete the given jobs at almost 100% accuracy. Although errors may occur
in computers, they are usually caused by incorrect input, incorrect instructions,
or bugs in chips. All of these are human errors.
Storage Capacity: Computers can easily store a massive size of data. Modern
computers come inbuilt with high storage features compared to older days.
Additional data can be stored on secondary devices like external hard disks, or
flash memory, etc. Due to incredible speed, data can be retrieved from storage
in no time.
Reliability: Computers are reliable and consistent; they can process the same
tasks any number of times without throwing any error. Computers don't get
tired like humans, so they are superior to perform rule-based, repetitive tasks.
Versatility: The variety of tasks that a computer can perform are almost
infinite. That means computers can perform different tasks back to back
without making errors; they are no longer just a computing machine. For one
moment, a computer can be used to perform data entry tasks or ticket
booking, and the very next moment, it can be used for complex mathematical
calculations or continuous astronomical observations, etc.
Classification of Computer
According to physical size, computers are classified into the following types:
Supercomputer: Supercomputers are the fastest and the most expensive type
of computer. They are large and require more space for installation. These
types of computers are mainly designed to perform massive data-based and
complex tasks. Supercomputers are capable enough to handle trillions of
instructions at the same time.
Computer Components
There are 5 main computer components that are given below:
o Input Devices
o CPU
o Output Devices
o Primary Memory
o Secondary Memory
The operations of computer components are given below:
Input Devices
Input device enables the user to send data, information, or control signals to a
computer. The Central Processing Unit (CPU) of a computer receives the input
and processes it to produce the output.
1. Keyboard
2. Mouse
3. Scanner
4. Joystick
5. Light Pen
6. Digitizer
7. Microphone
8. Magnetic Ink Character Recognition (MICR)
9. Optical Character Reader (OCR)
10. Digital Camera
11. Paddle
12. Steering Wheel
13. Gesture recognition devices
14. Light Gun
15. Touch Pad
16. Remote
17. Touch screen
18. VR
19. Webcam
20. Biometric Devices
1) Keyboard
The keyboard is a basic input device that is used to enter data into a computer
or any other electronic device by pressing keys. It has different sets of keys for
letters, numbers, characters, and functions. Keyboards are connected to a
computer through USB or a Bluetooth device for wireless communication.
i) QWERTY Keyboard:
Its name is derived from the first six letters that appear on the top left row of
the keyboard. The Q and W keys in AZERTY keyboard are interchanged with A
and Z keys in QWERTY keyboard. Furthermore, in AZERTY keyboard M key is
located to the left of the L key.
AZERTY keyboard differs from QWERTY keyboard not only in the placement of
letters but also in many other ways, e.g., it gives emphasis on accents, which is
required for writing European languages like French.
This type of keyboard layout was developed to increase the typing speed by
reducing the finger movement while typing. The most frequently used letters
are kept in a home row to improve typing.
2) Mouse
The mouse is a hand-held input device which is used to move cursor or
pointer across the screen. It is designed to be used on a flat surface and
generally has left and right button and a scroll wheel between them. Laptop
computers come with a touchpad that works as a mouse. It lets you control
the movement of cursor or pointer by moving your finger over the touchpad.
Some mouse comes with integrated features such as extra buttons to perform
different buttons.
The mouse was invented by Douglas C. Engelbart in 1963. Early mouse had a
roller ball integrated as a movement sensor underneath the device. Modern
mouse devices come with optical technology that controls cursor movements
by a visible or invisible light beam. A mouse is connected to a computer
through different ports depending on the type of computer and type of a
mouse.
It is a stationary input device that has ball mechanism to move the pointer or
cursor on the screen. The ball is half inserted in the device and can be easily
rolled with finger, thumb or the palm to move the pointer on the screen. The
device has sensor to detect the rotation of ball. It remains stationary; you
don't need to move it on the operating surface. So, it is an ideal device if you
have limited desk space as you don't need to move it like a mouse.
As the name suggests, this type of mouse lacks cable and uses wireless
technology such as IrDA (infrared) or radio (Bluetooth or Wi-Fi) to control the
movement of the cursor. It is used to improve the experience of using a
mouse. It uses batteries for its power supply.
3) Scanner
The scanner uses the pictures and pages of text as input. It scans the picture
or a document. The scanned picture or document then converted into a digital
format or file and is displayed on the screen as an output. It uses optical
character recognition techniques to convert images into digital ones. Some of
the common types of scanners are as follows:
Types of Scanner:
i) Flatbed Scanner:
It has a glass pane and a moving optical CIS or CCD array. The light illuminates
the pane, and then the image is placed on the glass pane. The light moves
across the glass pane and scans the document and thus produces its digital
copy. You will need a transparency adapter while scanning transparent slides.
It is a small manual scanning device which is held by hand and is rolled over a
flat image that is to be scanned. The drawback in using this device is that the
hand should be steady while scanning; otherwise, it may distort the image.
One of the commonly used handheld scanners is the barcode scanner which
you would have seen in shopping stores.
In this scanner, the document is inserted into the slot provided in the scanner.
The main components of this scanner include the sheet-feeder, scanning
module, and calibration sheet. The light does not move in this scanner.
Instead, the document moves through the scanner. It is suitable for scanning
single page documents, not for thick objects like books, magazines, etc.
Drum scanner has a photomultiplier tube (PMT) to scan images. It does not
have a charge-coupled device like a flatbed scanner. The photomultiplier tube
is extremely sensitive to light. The image is placed on a glass tube, and the
light moves across the image, which produces a reflection of the image which
is captured by the PMT and processed. These scanners have high resolution
and are suitable for detailed scans.
v) Photo Scanner:
It is designed to scan photographs. It has high resolution and color depth,
which are required for scanning photographs. Some photo scanners come
with in-built software for cleaning and restoring old photographs.
4) Joystick
The first joystick was invented by C. B. Mirick at the U.S. Naval Research
Laboratory. A joystick can be of different types such as displacement joysticks,
finger-operated joysticks, hand operated, isometric joystick, and more. In
joystick, the cursor keeps moving in the direction of the joystick unless it is
upright, whereas, in mouse, the cursor moves only when the mouse moves.
5) Light Pen
A light pen is a computer input device that looks like a pen. The tip of the light
pen contains a light-sensitive detector that enables the user to point to or
select objects on the display screen. Its light sensitive tip detects the object
location and sends the corresponding signals to the CPU. It is not compatible
with LCD screens, so it is not in use today. It also helps you draw on the screen
if needed. The first light pen was invented around 1955 as a part of the
Whirlwind project at the Massachusetts Institute of Technology (MIT).
6) Digitizer
Digitizer is a computer input device that has a flat surface and usually comes
with a stylus. It enables the user to draw images and graphics using the stylus
as we draw on paper with a pencil. The images or graphics drawn on the
digitizer appear on the computer monitor or display screen. The software
converts the touch inputs into lines and can also convert handwritten text to
typewritten words.
7) Microphone
The microphone is a computer input device that is used to input the sound. It
receives the sound vibrations and converts them into audio signals or sends to
a recording medium. The audio signals are converted into digital data and
stored in the computer. The microphone also enables the user to
telecommunicate with others. It is also used to add sound to presentations
and with webcams for video conferencing. A microphone can capture audio
waves in different ways; accordingly the three most common types are
described below:
i) Dynamic:
It is the most commonly used microphone with a simple design. It has a
magnet which is wrapped by a metal coil and a thin sheet on the front end of
the magnet. The sheet transfers vibrations from sound waves to the coil and
from coil to electric wires which transmit the sound like an electrical signal.
ii) Condenser:
It is designed for audio recording and has a very sensitive and flat frequency
response. It has a front plate called diaphragm and a back plate parallel to the
front plate. When sound hits the diaphragm, it vibrates the diaphragm and
alters the distance between the two plates. The changes in distance are
transmitted as electric signals.
iii) Ribbon:
MICR computer input device is designed to read the text printed with
magnetic ink. MICR is a character recognition technology that makes use of
special magnetized ink which is sensitive to magnetic fields. It is widely used in
banks to process the cheques and other organizations where security is a
major concern. It can process three hundred cheques in a minute with
hundred-percent accuracy. The details on the bottom of the cheque (MICR
No.) are written with magnetic ink. A laser printer with MICR toner can be
used to print the magnetic ink.
The device reads the details and sends to a computer for processing. A
document printed in magnetic ink is required to pass through a machine
which magnetizes the ink, and the magnetic information is then translated
into characters.
It processes and copies the physical form of a document using a scanner. After
copying the documents, the OCR software converts the documents into a
two-color (black and white), version called bitmap. Then it is analyzed for light
and dark areas, where the dark areas are selected as characters, and the light
area is identified as background. It is widely used to convert hard copy legal or
historic documents into PDFs. The converted documents can be edited if
required like we edit documents created in ms word.
It is a digital device as it captures images and records videos digitally and then
stores them on a memory card. It is provided with an image sensor chip to
capture images, as opposed to film used by traditional cameras. Besides this, a
camera that is connected to your computer can also be called a digital
camera.
It has photo sensors to record light that enters the camera through the lens.
When the light strikes the photo sensors, each of the sensors returns the
electrical current, which is used to create the images.
11) Paddle:
It is a simple input device that is widely used in games. It is a wheel that is
held by hand and looks like a volume knob on a stereo that is used to increase
or decrease the volume. Paddle moves or controls cursor or any other objects
in the game in a back-and-forth motion. It is widely used as an alternative to
the joystick. Besides this, the term paddle also refers to many handheld
devices designed to control a function in an electronic device, computer, etc.
It is used as an input device in racing video games such as car racing games or
in driving programs as virtual simulators to steer a vehicle. It works like the
real steering wheel by allowing you to take a right or left turn. A steering
wheel may be provided with acceleration and brake pedal devices and a
mechanism for shifting gears. Thus, it makes racing games more adventurous
and entertaining.
These devices take human gestures as input. There are many such devices that
respond to gestures. For example, Kinect is one such device that observes the
movement of a player's body and interprets these movements as inputs to
video games. This feature is also available in certain tablets and smartphones
where you can perform certain tasks such as taking pictures using finger
gestures such as swiping, pinching, etc.
15) Touchpad:
The concept of the touch screen was first introduced and published by E.A.
Johnson in 1965. The first touch screen was developed at the beginning of the
1970s by CERN engineers Frank Beck and Bent Stumpe.
18) VR:
19) Webcam:
i) Face Scanner:
It is designed to identify a person by scanning his or her face. It takes the face
measurements of a person. For example, the distance between eyes, nose, and
mouth, etc., accordingly, it confirms the identity of a person. Besides this, it is
smart enough to differentiate between a person's picture and the real person.
The hand of a person can also be used to verify his or her identity as every
person has a unique pattern of veins in the palm, just like fingerprints. This
device takes advantage of this feature; it identifies a person by scanning the
palm of his hand. It uses infrared light to scan veins' patterns and blood
flowing in them. Palm is even more unique than fingerprints.
iii) Fingerprint Scanner:
It scans the retina or iris of a person's eye to confirm the identity. This device
is more secure than others as it is next to impossible to copy the retina or iris.
It works by mapping the retina's blood vessel patterns of the eye. The blood
vessels of retina absorb light more easily as well as can be identified with
appropriate lighting.
In this scan, a beam of low-energy infrared light falls on the retina through the
scanner's eyepiece. Then, the software captures the network of blood vessels
in the retina and uses it to verify a person's identity.
v) Voice Scanner:
It records the voice of a person and digitizes it to create a distinctive voice
print or template. The voiceprints are stored in the database, and are used to
verify the voice of a person to confirm his or her identity. The person is
required to speak in the normal or same voice that was used to create a voice
template. It is not much reliable as it can be misused using a tape recording.
Output Devices
The output device displays the result of the processing of raw data that is
entered in the computer through an input device. There are a number of
output devices that display output in different ways such as text, images, hard
copies, and audio or video.
1. Monitor
o CRT Monitor
o LCD Monitor
o LED Monitor
o Plasma Monitor
2. Printer
o Impact Printers
A. Character Printers
i. Dot Matrix printers
ii. Daisy Wheel printers
B. Line printers
i. Drum printers
ii. Chain printers
o Non-impact printers
A. Laser printers
B. Inkjet printers
3. Projector
1) Monitor
The monitor is the display unit or screen of the computer. It is the main output
device that displays the processed data or information as text, images, audio
or video.
History
i) CRT Monitor
CRT monitors are based on the cathode ray tubes. They are like vacuum tubes
which produce images in the form of video signals. Cathode rays tube
produces a beam of electrons through electron guns that strike on the inner
phosphorescent surface of the screen to produce images on the screen. The
monitor contains millions of phosphorus dots of red, green and blue color.
These dots start to glow when struck by electron beams and this phenomenon
is called cathodoluminescence.
The main components of a CRT monitor include the electron gun assembly,
deflection plate assembly, fluorescent screen, glass envelope, and base. The
front (outer surface) of the screen onto which images are produced is called
the face plate. It is made up of fiber optics.
There are three electron beams that strike the screen: red, green, and blue. So,
the colors which you see on the screen are the blends of red, blue and green
[Link] magnetic field guides the beams of electrons. Although LCDs have
replaced the CRT monitors, the CRT monitors are still used by graphics
professionals because of their color quality.
The LCD monitor is a flat panel screen that is compact and light-weight as
compared to CRT monitors. It is based on liquid crystal display technology
which is used in the screens of laptops, tablets, smart phones, etc. An LCD
screen comprises two layers of polarized glass with a liquid crystal solution
between them. When the light passes through the first layer, an electric
current aligns the liquids crystals. The aligned liquid crystals allow a varying
level of light to pass through the second layer to create images on the screen.
The LCD screen has a matrix of pixels that display the image on the [Link]
LCDs had passive-matrix screens in which individual pixels are controlled by
sending a charge. A few electrical charges could be sent each second that
made screens appear blurry when the images moved quickly on the screen.
Modern LCDs use active-matrix technology and contain thin film transistors
(TFTs) with capacitors. This technology allows pixels to retain their charge. So,
they don?t make screen blurry when images move fast on the screen as well
as are more efficient than passive-matrix displays.
iv)Plasma Monitor
The plasma monitor is also a flat panel display that is based on plasma display
technology. It has small tiny cells between two glass panels. These cells
contain mixtures of noble gases and a small amount of mercury. When
voltage is applied, the gas in the cells turns into a plasma and emits ultraviolet
light that creates images on the screen, i.e., the screen is illuminated by a tiny
bit of plasma, a charged gas. Plasma displays are brighter than liquid crystal
displays (LCD) and also offer a wide viewing angle than an LCD.
2) Printer
A printer produces hard copies of the processed data. It enables the user, to
print images, text or any other information onto the paper.
Based on the printing mechanism, the printers are of two types: Impact
Printers and Non-impact Printers.
Impact Printer
The impact printer uses a hammer or print head to print the character or
images onto the paper. The hammer or print head strikes or presses an ink
ribbon against the paper to print characters and images.
A. Character Printers
B. Line printers
A) Character Printers
Daisy Wheel Printer was invented by David S. Lee at Diablo Data Systems. It
consists of a wheel or disk that has spokes or extensions and looks like a daisy,
so it is named Daisy Wheel printer. At the end of extensions, molded metal
characters are mounted. To print a character the printer rotates the wheel, and
when the desired character is on the print location the hammer hits disk and
the extension hits the ink ribbon against the paper to create the impression. It
cannot be used to print graphics and is often noisy and slow, i.e., the speed is
very low around 25-50 characters per second. Due to these drawbacks, these
printers have become obsolete.
B) Line Printers:
Line printer, which is also as a bar printer, prints one line at a time. It is a high-
speed impact printer as it can print 500 to 3000 lines per minute. Drum printer
and chain printer are examples of line printers.
i) Drum Printer:
Chain printer is a line printer that uses a rotating chain to print characters. The
characters are embossed on the surface of the chain. The chain rotates
horizontally around a set of hammers, for each print location one hammer is
provided, i.e., the total number of hammers is equal to the total number of
print positions.
The chain rotates at a very high speed and when the desired character comes
at the print location, the corresponding hammer strikes the page against the
ribbon and character on the chain. They can type 500 to 3000 lines per
minute. They are also noisy due to the hammering action.
Non-Impact Printer:
Non-impact printers don't print characters or images by striking a print head
or hammer on the ink ribbon placed against the paper. They print characters
and images without direct physical contact between the paper and the
printing machinery. These printers can print a complete page at a time, so
they are also known as page printers. The common types of non-impact
printers are Laser printer and Inkjet printer:
i) Laser Printer:
A laser printer is a non-impact printer that uses a laser beam to print the
characters. The laser beam hits the drum, which is a photoreceptor and draws
the image on the drum by altering electrical charges on the drum. The drum
then rolls in toner, and the charged image on the drum picks the toner. The
toner is then printed on the paper using heat and pressure. Once the
document is printed, the drum loses the electric charge,and the remaining
toner is collected. The laser printers use powdered toner for printing instead
of liquid ink and produce quality print objects with a resolution of 600 dots
per inch (dpi) or more.
ii) Inkjet Printer:
The inkjet printer is a non-impact printer that prints images and characters by
spraying fine, ionized drops of ink. The print head has tiny nozzles to spray the
ink. The printer head moves back and forth and sprays ionized drops of ink on
the paper, which is fed through the printer. These drops pass through an
electric field that guides the ink onto the paper to print correct images and
characters.
An inkjet printer has cartridges that contain ink. Modern inkjet printers are
color printers that have four cartridges containing different colors : Cyan,
Magenta, Yellow, and Black. It is capable of printing high-quality images with
different colors. It can produce print objects with a resolution of at least 300
dots per inch (dpi).
3) Projector
A projector is an output device that enables the user to project the output
onto a large surface such as a big screen or wall. It can be connected to a
computer and similar devices to project their output onto a screen. It uses
light and lenses to produce magnified texts, images, and videos. So, it is an
ideal output device to give presentations or to teach a large number of
people.
Modern projects (digital projectors) come with multiple input sources such as
HDMI ports for newer equipment and VGA ports that support older devices.
Some projectors are designed to support Wi-Fi and Bluetooth as well. They
can be fixed onto the ceiling, placed on a stand, and more and are frequently
used for classroom teaching, giving presentations, home cinemas, etc.
Liquid Crystal Display (LCD) digital projector: This type of digital projectors
are very popular as they are lightweight and provide crisp output. An LCD
projector uses transmissive technology to produce output. It allows the light
source, which is a standard lamp, to pass through the three colored liquid
crystal light panels. Some colors pass through the panels and some are
blocked by the panels and thus images are on the screen.
Digital Light Processing (DLP) digital projector: It has a set of tiny mirrors,
a separate mirror for each pixel of the image and thus provide high-quality
images. These projectors are mostly used in theatres as they fulfill the
requirement of high-quality video output.
ALU: It is the arithmetic logic unit, which performs arithmetic and logical
functions. Arithmetic functions include addition, subtraction, multiplication
division, and comparisons. Logical functions mainly include selecting,
comparing, and merging the data. A CPU may contain more than one ALU.
Furthermore, ALUs can be used for maintaining timers that help run the
computer.
Types of CPU:
CPUs are mostly manufactured by Intel and AMD, each of which manufactures
its own types of CPUs. In modern times, there are lots of CPU types in the
market. Some of the basic types of CPUs are described below:
Single Core CPU: Single Core is the oldest type of computer CPU, which was
used in the 1970s. It has only one core to process different operations. It can
start only one operation at a time; the CPU switches back and forth between
different sets of data streams when more than one program runs. So, it is not
suitable for multitasking as the performance will be reduced if more than one
application runs. The performance of these CPUs is mainly dependent on the
clock speed. It is still used in various devices, such as smart phones.
Dual Core CPU: As the name suggests, Dual Core CPU contains two cores in a
single Integrated Circuit (IC). Although each core has its own controller and
cache, they are linked together to work as a single unit and thus can perform
faster than the single-core processors and can handle multitasking more
efficiently than Single Core processors.
Quad Core CPU: This type of CPU comes with two dual-core processors in
one integrated circuit (IC) or chip. So, a quad-core processor is a chip that
contains four independent units called cores. These cores read and execute
instructions of CPU. The cores can run multiple instructions simultaneously,
thereby increases the overall speed for programs that are compatible with
parallel processing.
Quad Core CPU uses a technology that allows four independent processing
units (cores) to run in parallel on a single chip. Thus by integrating multiple
cores in a single CPU, higher performance can be generated without boosting
the clock speed. However, the performance increases only when the
computer's software supports multiprocessing. The software which supports
multiprocessing divides the processing load between multiple processors
instead of using one processor at a time.
History of CPU:
Some of the important events in the development of CPU since its
invention till date are as follows:
o In 1823, Baron Jons Jackob Berzelius discovered silicon that is the main
component of CPU till date.
o In 1903, Nikola Tesla got gates or switches patented, which are
electrical logic circuits.
o In December 1947, John Bardeen, William Shockley, and Walter Brattain
invented the first transistor at the Bell Laboratories and got it patented
in 1948.
o In 1958, the first working integrated circuit was developed by Robert
Noyce and Jack Kilby.
o In 1960, IBM established the first mass-production facility for transistors
in New York.
o In 1968, Robert Noyce and Gordon Moore founded Intel Corporation.
o AMD (Advanced Micro Devices) was founded in May 1969.
o In 1971, Intel introduced the first microprocessor, the Intel 4004, with
the help of Ted Hoff.
o In 1972, Intel introduced the 8008 processor; in 1976, Intel 8086 was
introduced, and in June 1979, Intel 8088 was released.
o In 1979, a 16/32-bit processor, the Motorola 68000, was released. Later,
it was used as a processor for the Apple Macintosh and Amiga
computers.
o In 1987, Sun introduced the SPARC processor.
o In March 1991, AMD introduced the AM386 microprocessor family.
o In March 1993, Intel released the Pentium processor. In 1995, Cyrix
introduced the Cx5x86 processor to give competition to Intel Pentium
processors.
o In January 1999, Intel introduced the Celeron 366 MHz and 400 MHz
processors.
o In April 2005, AMD introduced its first dual-core processor.
o In 2006, Intel introduced the Core 2 Duo processor.
o In 2007, Intel introduced different types of Core 2 Quad processors.
o In April 2008, Intel introduced the first series of Intel Atom processors,
the Z5xx series. They were single-core processors with a 200 MHz GPU.
o In September 2009, Intel released the first Core i5 desktop processor
with four cores.
o In January 2010, Intel released many processors such as Core 2 Quad
processor Q9500, first Core i3 and i5 mobile processors, first Core i3
and i5 desktop processors. In the same year in July, it released the first
Core i7 desktop processor with six cores.
o In June 2017, Intel introduced the first Core i9 desktop processor.
o In April 2018, Intel released the first Core i9 mobile processor.
Computer Memory
The computer memory holds the data and instructions needed to process raw
data and produce output. The computer memory is divided into large number
of small parts known as cells. Each cell has a unique address which varies from
0 to memory size minus one.
Computer memory is of two types: Volatile (RAM) and Non-volatile (ROM). The
secondary memory (hard disk) is referred as storage not memory.
o Register memory
o Cache memory
o Primary memory
o Secondary memory
Register Memory
Register memory is the smallest and fastest memory in a computer. It is not a
part of the main memory and is located in the CPU in the form of registers,
which are the smallest data holding elements. A register temporarily holds
frequently used data, instructions, and memory address that are to be used by
CPU. They hold instructions that are currently processed by the CPU. All data
is required to pass through registers before it can be processed. So, they are
used by CPU to process the data entered by the users.
Registers hold a small amount of data around 32 bits to 64 bits. The speed of
a CPU depends on the number and size (no. of bits) of registers that are built
into the CPU. Registers can be of different types based on their uses. Some of
the widely used Registers include Accumulator or AC, Data Register or DR, the
Address Register or AR, Program Counter (PC), I/O Address Register, and
more.
Primary Memory
Primary Memory is of two types: RAM and ROM.
CPU utilizes this data to perform the required tasks. As soon as you shut down
the computer the RAM loses all the data.
Secondary Memory
The secondary storage devices which are built into the computer or connected
to the computer are known as a secondary memory of the computer. It is also
known as external memory or auxiliary storage.
1) Hard Disk:
It is a rigid magnetic disc that is used to store data. It permanently stores data
and is located within a drive unit.
The hard disk is also known as a hard drive. It is a rigid magnetic disc that
stores data permanently, as it is a non-volatile storage device. The hard disk is
located within a drive unit on the computer's motherboard and comprises one
or more platters packed in an air-sealed casing. The data is written on the
platters by moving a magnetic head over the platters as they spin. The data
stored on a computer's hard drive generally includes the operating system,
installed software, and the user's files and programs, including pictures, music,
videos, text documents, etc.
2) Solid-state Drive:
SSD (Solid State Drive) is also a non-volatile storage medium that is used to
hold and access data. Unlike a hard drive, it does not have moving
components, so it offers many advantages over SSD, such as faster access
time, noiseless operation, less power consumption, and more.
As the cost of SSD has come down, it has become an ideal replacement for a
standard hard drive in desktop and laptop computers. It is also suitable for
notebooks, and tablets that don't require lots of storage.
3) Pen drive:
Pen drive is a compact secondary storage device. It is also known as a USB
flash drive, thumb drive or a jump drive. It connects to a computer via a USB
port. It is commonly used to store and transfer data between computers. For
example, you can write a report using a computer and then copy or transfer it
in the pen drive. Later, you can connect this pen drive to a computer to see or
edit your report. You can also store your important documents and pictures,
music, videos in the pen drive and keep it at a safe place.
Pen drive does not have movable parts; it comprises an integrated circuit
memory chip that stores the data. This chip is housed inside a plastic or
aluminium casing. The data storage capacity of the pen drive generally ranges
from 2 GB to 128 GB. Furthermore, it is a plug and play device as you don't
need additional drives, software, or hardware to use it.
4) SD Card:
SD Card stands for Secure Digital Card. It is most often used in portable and
mobile devices such as smart phones and digital cameras. You can remove it
from your device and see the things stored in it using a computer with a card
reader.
There are many memory chips inside the SD card that store the data; it does
not have moving parts. SD cards are not created equal, so they may differ
from each other in terms of speed, physical sizes, and capacity. For example,
standard SD cards, mini SD cards, and micro SD cards.
In the beginning, it was used for storing and playing sound recordings, later it
was used for various purposes such as for storing documents, audio files,
videos, and other data like software programs in a CD.
DVD is short for digital versatile disc or digital video disc. It is a type of optical
media used for storing optical data. Although it has the same size as a CD, its
storage capacity is much more than a CD. So, it is widely used for storing and
viewing movies and to distribute software programs as they are too large to fit
on a CD. DVD was co-developed by Sony, Panasonic, Philips, and Toshiba in
1995.
Types of DVDs:
DVDs can be divided into three main categories which are as follows:
Memory Units
Memory units are used to measure and represent data. Some of the
commonly used memory units are:
1) Bit: The computer memory units start from bit. A bit is the smallest memory
unit to measure data stored in main memory and storage devices. A bit can
have only one binary value out of 0 and 1.
Software
Software, which is abbreviated as SW or S/W, is a set of programs that enables
the hardware to perform a specific task. All the programs that run the
computer are software. The software can be of three types: system software,
application software, and programming software.
1) System Software
The system software is the main software that runs the computer. When you
turn on the computer, it activates the hardware and controls and coordinates
their functioning. The application programs are also controlled by system
software. An operating system is an example of system software.
i) Operating System:
An operating system is the system software that works as an interface to
enable the user to communicate with the computer. It manages and
coordinates the functioning of hardware and software of the computer. The
commonly used operating systems are Microsoft Windows, Linux, and Apple
Mac OS X.
2) Application Software:
Application software is a set of programs designed to perform a specific task.
It does not control the working of a computer as it is designed for end-users.
A computer can run without application software. Application software can be
easily installed or uninstalled as required. It can be a single program or a
collection of small programs. Microsoft Office Suite, Adobe Photoshop, and
any other software like payroll software or income tax software are application
software. As we know, they are designed to perform specific tasks.
Accordingly, they can be of different types such as:
3) Programming Software:
It is a set or collection of tools that help developers in writing other software
or programs. It assists them in creating, debugging, and maintaining software
or programs or applications. We can say that these are facilitator software that
helps translate programming language such as Java, C++, Python, etc., into
machine language code. So, it is not used by end-users. For example,
compilers, linkers, debuggers, interpreters, text editors, etc. This software is
also called a programming tool or software development tool.
What is Language?
Language is a mode of communication that is used to share ideas, opinions
with each other. For example, if we want to teach someone, we need a
language that is understandable by both communicators.
i. Machine Language
The advantage of assembly language is that it requires less memory and less
execution time to execute a program.
The advantage of POP language is that it helps programmers to easily track the
program flow and code can be reused in different parts of the program.
The main advantage of natural language is that it helps users to ask questions
in any subject and directly respond within seconds.
1. Python
Python
Advantages
Disadvantages
Advantages
Disadvantages
3. C
C is a popular, simple, and flexible general-purpose computer
programming language. Dennis M Ritchie develops it in 1972 at AT&T. It
is a combination of both low-level programming language as well as a
high-level programming language. It is used to design applications
like Text Editors, Compilers, Network devices, and many more.
Advantages
Disadvantages
4. C++
Advantages
o C++ is a simple and portable structured programming language.
o It supports OOPs features such as Abstraction, Inheritance,
Encapsulation.
o It provides high-level abstraction and useful for a low-level
programming language, and more efficient for general-purpose.
o C++ is more compatible with the C language.
Disadvantages
5. C#
Advantages
Disadvantages
6. JavaScript
Advantage
Disadvantage
o JavaScript is completely based on the browser.
o It does not support multiple inheritance.
o It is less secure compared to other programming languages.
7. R
Advantages
Disadvantages
Advantages
Disadvantages
64.4M
1.2K
Exception Handling in Java - Javatpoint
Compiler Interpreter
A compiler is a program that takes the complete The interpreter is different from the
program as a single unit and converts the entire Compiler; it takes a source program and
source code into executable machine code for a translates it one by one, and executes.
CPU.
When the compiler completes scanning the whole With an interpreter, until the error is
program, then it generates the error message. As met, it continues converting the
the error can be found in any statement in the program; therefore, its debugging is
program; therefore, debugging is comparatively easier.
hard with a compiler.
When you want to run the program, a translator When you want to run the program, a
program is needed each time to convert the translator program is not needed each
source code. time to convert the source code.
It stores object code and is more beneficial for It does not hold object code, and it is
commercial purposes. more beneficial for learning purposes.
Examples: C, C++, Java, FORTRAN compiler, Examples: Python, Perl, LISP, APL, Prolog
PASCAL compiler. interpreter, etc.
Characteristics of Algorithms:
Algorithms generally have the following characteristics:
It is important to estimate the time (e.g., the number of steps) and space (e.g.,
the number of variables) required by algorithms. Knowing the time and space
required by algorithm allows us to compare the algorithms that solve the
same problem. For example, if one algorithm takes n steps to solve a problem
and another algorithm takes n^2 steps to solve the same problem, we would
prefer the first algorithm. This estimation of time and space needed to execute
the algorithm is called the time and space complexity of the algorithm.
Pseudo Code
It is written in the form of annotations and informational text that is written in
plain English only. Just like programming languages, it doesn't have any
syntax, so it cannot be compiled or interpreted by the compiler.
1. class ArmstrongNumberExample{
2. public static void main(String[] args) {
3. int c = 0, a, temp;
4. int n = 153; //It is the number to check armstrong
5. temp = n;
6. while(n > 0)
7. {
8. a = n % 10;
9. n = n / 10;
10. c = c +(a * a * a);
11. }
12. if(temp == c)
13. [Link]("armstrong number");
14. else
15. [Link]("Not armstrong number");
16. }
17. }
The pseudo code of the above program can be written in the following way:
1. Initialize c to zero.
2. Initialize n to a random number to check Armstrong.
3. Initialize temp to n.
4. Repeat steps until the value of n are greater than zero.
5. Find a reminder of n by using n%10.
6. Remove the last digit from the number by using n/10.
7. Find the thrice of the reminder and add it to c.
8. If temp == c
Print "Armstrong number"
9. else
Not an Armstrong number"