Module 1 POP Notes
Module 1 POP Notes
- OUTPUT DEVICES
i1ttp.//www.tutonal<,po1nt com/computer_fundamentals/computer output _oev1ces.htm Copynghl tutorialspo1<1tcom
Following a re few of the important output devices which are used in a computer.
• Monitors
• Graphic Plotter
• Printer
Monitors
onitors. commonly called as Visual Display Unit VDU, are the main output device of a computer. It
orms Images from tiny dots. called pixels that are arranged in a rectangular form . Tlhe sharpness
f the image depends upon the number of pixels.
here are two kinds of viewing screen used for monitors.
I
i
•~
... .
)
Printers
rlnter Is an output device, which Is used to print Information on paper.
here are two types of printers:
• Impact Printers
• Non-Impact Printers
Impact Printers
he Impact printers print the characters by striking them on the ribbon which Is then pressed on
he paper.
haracteristlcs of Impact Printers are the following:
• Very low consumable costs
• Very noisy
• Useful for bulk printing due to low cost
• There Is physical contact with the paper to produce an Image
hese printers are of two types
• Character printers
• Line printers
haracter Printers
haracter printers are the printers which print one character at a time.
hese are further divided Into two types:
• Dot Matrix PrinterDMP
• Daisy Wheel
In the market one of the most popu lar printers is Dot Matrix Printer. These printers are popu lar
because of their ease of printing and economical price. Each character printed Is In form of
attern of dots and head consists of a Matrix of Pins of size s • 7, 7 • 9, 9 • 7or9 • 9 which come out to
orm a character that Is why it is called Dot Matrix Printer.
dvantages
• Inexpensive
• Widely Used
• Other language characters can be printed
Disadvantages
• Slo,w Speed
• Poor Quality
Daisy Wheel
Head is lying on a wheel and pins corresponding to characters ar,e like petals of Daisy flowemalT!e
hat is why It is called Daisy Wheel Printer. These printers are generally used for word-processing
In offices which requ ire a few letters to be sent here and there with very nice qua lity.
dvantages
• More reliable than DMP
• Better quality
• The fonts of character can be easily changed
Disadvantages
• Slower than DMP
• Noisy
• More expensive than DMP
--
,
Line Pri nters
lne printers are the printers which print one line at a time.
.
.fl
T
Drum Printer
his printer Is like a drum In shape so It Is called drum printer. The surface of drum Is divided into
number of tracks. Total tracks are equal to size of paper I.e. for a paper width of 132 characters,
rum will have 132 tracks. A character set is embossed on track. The differernt character sets
va ilable in the market are 48 character set, 64 and 96 characters set. One rotation of drum prints
ne line . Drum printers are fast In speed and can print 300 to 2000 lines per minute .
dvantages
• Very high speed
Disadvantages
• Very expensive
• Characters fonts cannot be changed
haln Printer
n this printer, chain of character sets are used so it is called Chain Printer. A standard character
et may have 48, 64, o r 96 characters.
dvantages
• Character fonts can easily be changed.
• Differe nt langua ges can be used with the same printer.
isadva ntage s
• Noisy
lsadvantages
• Expensive.
• Canno t be used to produce multip le copies of a docum ent in a single
printin g.
nkjet Printers
Inkjet printers are non-Impact character printers based on a relatively new technology. They print
haracters by spraying small drops of Ink onto paper. Inkjet printe rs produce high qua lity output
Ith presentable features.
hey ma ke less noise because no hammering is done and these have many styles of printing
odes available . Colour printing Is also possible. Some models of Inkjet printers can produce
multiple copies of printing also.
dvantages
Disadvantages
Algorithm Design: Choose algorithms that are appropriate for the problem
Data Structures: Select the right data structures
Unit Tests: Write tests for individual components to ensure they function correctly.
6.DOCUMENTATION
Document the code and algorithms to make it easier for others (and yourself) to understand and
maintain in the future.
3 -WHAT IS A COMPUTER?
Computer is an eleclronic device. As mentioned in the introduction it can do arithmetic calculations
faster. But as you will see later it does much more than that. It can be compared to a magic box, which serves
different purpose to different people. For a common man computer is simply a calculator, which works
automatic and quite fast. For a person who knows much about it, computer is a machine capable of solving
problems and manipulating data. It accepts data, processes the data by doing some maLhematical and logical
operations and gives us the desired output.
Therefore, we may define computer as a device that transfon11s clara. Data can be anything like marks
obtained by you in various subjects. It can also be name, age, sex, weight, height, etc. of all the students in
your class or income, savings, inveslments, etc., of a country. Computer can be defined in terms of its
functions. It can iJ accept data ii) store data, 'iii}iprocess data as desired, andf]y) retrieve the stored data as and
when require,d and v) print the result in desired format. You will know more about these functions as you go
through the later lessons.
4- CHARACTERISTICS OF COMPUTER
Let us identify the major characteristics of computer. These can be discussed under the headings of
speed, accuracy, diligence, versatility and memory.
4.1 Speed
As yolll know computer can work very fast. ll takes only few seconds for calculations that we take hours
to complete. SupJ>2se }'.OU are asked to calculate the average montlily income of o ne thousand persons in your
nefgboorhoocl. For this you have to add income from all sources for all persons on a day to day basis and find
out the average for each one of them. How long will it take for you to do this? One day, two days or one
week? Do you know your small computer can finish this work in few seconds? The weather forecasting that
you see every day on TV is the results of compilation and analysis of huge amount of data on temperature,
humidity, pressure, etc. of various places on computers. It takes few minutes for the computer to process this
huge amount of data and give the result.
You will be surprised to know that computer can perform millions (f:tiOO--:ooQ) of instructions and even more
per second. Therefore, we determine the speed of computer in terms of microsecond (I 0-6 part of a second)
or nano-second ( I0-9 part of a second). From this you can imagine bo w fast your computer performs work.
4.2 Accuracy
Suppose some one calculates faster but commits a lot of errors in computing. Such result is useless.
There is another aspect. Suppose you want to divide 15 by 7. You may work out up to 2 decimal places and
6
say the dividend is 2.14. I may calculate up to 4 decimal places and say that the resull is 2.1428. Some one
else may go up to 9 decimal places and say the result is 2.142857143. Hence, in addition to speed, the
computer should have accuracy or correctness in computing.
The degree of accuracy of computer 1s very J11gh and every calculntion is performed with the same accumcy.
The uccumcy level 1s cletermmed on tlie 6as1s of ilesign of computer. The errors in computer are clue to
humnn andanaccurate datai
4.3 Diligence
A computer is free from tiredness, lack of concentration, fatigue, etc. It can work for hours without
creating any error. If millions of ca.lculations are to be performed, a computer will perform every calculation
with the same accuracy. Due 10 this capability it overpowers human being in rout me type of work.
4.4 Versatility
It means the capacity to perform completely different type of work. You may use your computer to
prepare payroU slips. Next moment you may use it for inventory management or lo prepare electric bills.
4.5 Power of Remembering
Computer has the power of storing any amount of information or data. Any information can be stored
and recalled as long as you require it, for any numbers o f years. It depends entirely upon you how much data
you want to store In n computer and when to lose or retrieve these data.
4.6 No IQ
Computer is a dumb machine and it cannot do any work without instruction from the user. It performs
the instructions at tremendous speed and with accuracy. It is you to decide what you want 10 do and in what
sequence. So a computer cannot take its own decision as you can.
4.7 No Feeling
It does not have foclings or emotion, taste, knowledge and experience. Thus it does not get tired even
after long hours of work. It does not distinguish between users.
4.8 Storage
The Computer has an in-built memory where it can store a large amount of data. You can also store data
in secondary storage devices such as floppies, which can be kepi outside your computer and can be carried to
other compu1ers.
5- Computer Categories.
Complllters are categorized into four general types based mainly on their processing speeds and their
capacity lo store data.
7
1- Supercomputers:
Supercomputers are high-capacity computers that cost millions of doUars. Occupy special air-
conditioned rooms, and are often used for research. wea1herforccas1ing, and ma1hc ma1ical researcli
2- Mainframe Computers:
Less powerful than supercomputers. Mainframe computers are fast, large-capacity computers also
occupying specially wired, a ir-conditioned rooms. Mainframes are used by large organizations. banlcs,
airlines universities.
3- Mini,computers:
Because of their lesser processing speeds and data-storing capacities, they have been typically
used by medium-sized companies for specific purposes, such as accounting.
4- Microcomputers:
Microcomputers are small computers that can fit on a desktop. Microcomputers are of two types:
personal comp_uters and workstations.
FUNCTIONAL UNITS
In order 10 carry out the operations mentioned in the previous section the computer allocates the task
between its various functional units. The computer system is divided into three separate units for its
operation. They are 1) arithmetic logical unit, 2) control unit, and 3) central processing unit.
8
The ALU and Lhe CU of a computer system are jointly known as Lhe central processing unit. You may
call CPU as. the brain of any computer system. It is just like brain that takes all major decisions, makes all
sorts of calculations and directs different parts of the computer functions by activating and controUing the
operations.
9
A computer is a fast electronic device that processes raw data, performs arithmetic and
logical operations, and produces output. Nowadays, the computer has become a part of
our life and can be used in most fields. In a computer, there are various characteristics
of computer systems depending on their size, capacity, and specifications. But, the
major characteristics of the computer can be classified into Speed, Accuracy, Diligence,
Versatility, Reliability, Consistency, Memory, Storage Capacity, Remembrance Power,
and Automation.
Speed,
Accuracy,
Diligence,
Versatility,
Reliability,
Consistency,
Memory,
Storage Capacity,
Remembrance Power,
SPEED.
The computer is a fast device; it can perform a task in a few seconds that a human
being does in an entire year. Powerful computers can capable of performing about 3 to
4 billion simple arithmetic operations per second.
ACCURACY.
The accuracy is one of the most important features in computer. Accuracy means the
computer is always perfect in his work and he never makes mistakes
Diligence :
The capacity of computer of performing repetitive task without getting tired is called
diligence. A computer is free from tiredness, lack of concentration, fatigue etc therefore
it can work for hours without creating any errors
Versatility :
A computer's versatility is its ability to perform multiple tasks simultaneously or
different types of work
Reliability
Reliability refers to its ability to consistently perform its planned functions without
errors or failures . A rel iable computer is one that operates as expected and delivers
consistent performance under a variety of cond itions and workloads.
Consistency
Consistency refers to the ability of a computer to work In a reliable and predictable
manner. Consistency allows the computer to perform at the same level of
performance regardless of the workload or usage conditions.
Memory
A computer has built-in memory called primary memory where It stores data.
Secondary storage are removable devices such as CDs, pen drives, etc., which are also
used to store data.
Storage capacity
Storage capacity refers to how much disk space one or more storage devices provides.
It measures how much data a computer system may contain.
TYPES OF COMPUTE RS
• Analog
• Digital
1. Mini
2. Micro
3. Super
4. Mainframe
• Hybrid
1) Supercomputer
Let's explain the type of computer known as a supercomputer and its significance in
modem computing. Supercomputers are the largest and fastest computers, capable
of processing trillions of functions in seconds. These computers are primarily used for
data-intensive and computation-intensive scientific tasks such as password encryption
and decryption, weather forecasting, exploring the solar system etc.
2) Mainframe computer
Mainframe computers have a large amount of memory and processors and can perform
billions of transactions and simple calculations in real time. This type of computer is
primarily used for transaction servers, commercial databases, and applications that
require high reliability, security, and speed. These are the computers to have when '0'
downtime is acceptable.
3) Minicomputer
Minicomputers are smaller, less expensive, and less powerful than mainframes or
supercomputers but more pricey and powerful than personal computers. These
computers are multi-user systems with more than one user working simultaneously.
These computers are primarily used for engineering and scientific computations, file
management, business transaction processing, and other similar tasks.
4) Workstation
Now let's explain the type of computer known as a workstation and its significance in
modern computing. A workstation is a computer or group of computers used primarily
by a single user to perform professional or commercial work. These types of computers
have more computational (processing} power than a standard PC. They are primarily
used for video editing, playing high-graphic games, 3D animation, etc.
5) PC
A PC or personal computer or microcomputer, is a general-purpose computer for
personal use. This type of computer comprises a CPU, memory, an input unit, and an
output unit. This type of computer is appropriate for personal tasks such as watching a
movie, completing an assignment, etc.
HYBRID COMPUTERS: These combined analog and digital components to
leverage the strengths of both.
ANALOG COMPUTERS
1) DIFFERENTIAL ANALYZERS:
These were larQe-scale mechanical devices used to solve differential equations.
They employed gears, shafts, and integrators to represent variables and perform
mathematical operations
2) ELECTRONIC ANALOG COMPUTERS
Operational Amplifiers (Op-Amps): These are versatile electronic components that
can be used to perform various mathematical operations like addition, subtraction,
integration, and differentiation. They form the basis of many analog computer circuits.
"Introduction to C"
1. C is o high level programming language deve loped in the
early 1970's at Bell Labs by Dennis Ritchie C is a high-level
programming la ng uage developed in the early 1970s at Bell
Labs by Dennis Ritchie. It is known for its efriciency, flexibility,
and close-to-hardware capabilities, making it a popular choice
for system programming , embedded systems, and application
development.
2. :Key features:
2. 1 "Low-level Access" : C provides features that allow d irect
manipula tion of hardware and memory, making is suitable for
system-level programming.
2.2 "Probability" : C code can be compiled on various platforms
with minimal changes, allowing for widespread use across
different systems.
2.3 "Rich Library Support" : C hos a standard library that offers a
wide range of built-in functions for tasks such as string
manipulation, mathematical computations, and file handling.
2.4 "Procedura l Language" : C follows a procedural programming
paradigm, focusing on functions and procedures to operate o n
data.
2.5 "Modula rity" : C supports modula r p rogramming through
functions, which helps in o rganizing code and enhancing
reusability .
3
3. C programming language is known for its simplicity and
efficiency. It is the best choice to start w ith programm ing as it
gives you a foundationa l understanding of programming.
4.2 The Constants in Care the read -only variables whose values
cannot be modified once they are declared In the C program.
The type of constant can be an integer constant, a floating
pointer constant, a string constant, or a character constant. In C
language, the constant keyword is used to define the constants.
5 "Operator's of c"
An operator in C can be defined as the symbol that helps us to
perform some specific mathematical, relational, bitwise, conditional, or
logical computations on values and variables. The values and variables used
with operators are called operands. So we can say that the operators are
the symbols that perform operations on operands.
6. 1 Arithmetic o perators
6.2 Relatio nal operators
6.3 Logica l operators
6.4 Bitwise opera tors
6.5 Assignment operators
6.6 other operators .
2
8. It is a very popular and most widely used
programming language.
3
WHY IS C LANGUAGE IMPORTANT
• Influential: C is a highly influent ial languag e that has served as
a basis for many other languages.