Unit - 1 Computer Fundamental1yr Maths
Unit - 1 Computer Fundamental1yr Maths
WHAT IS COMPUTER?
• The word “computer” is comes from the word “TO COMPUTE” means to
calculate.
• A computer is normally considered to be a calculation device which can
perform the arithmetic operations very speedily.
• A computer may be defined as a device which operates upon the data.
• Data can be in the form of numbers, letters, symbols, size etc. And it comes
in various shapes & sizes depending upon the type of computer application.
• A computer can store, process & retrieve data as and when we desired.
• The fact that computer process data is so fundamental that many people
have started calling as “Data Processor”.
• A computer first it gets the Data, does Process on it and then produces
Information.
• DEFINATION OF COMPUTER
o A computer is an electronic device which takes input from the user,
processes it and gives the output as per user’s requirement.
o So the main tasks of performed by the computer are:
▪ Input
▪ Process Output
CHARACTERISTICS OF COMPUTER
Some important characteristics of the computer are as follow:
Automatic:
• Computers are automatic machines because it works by itself without
human intervention.
● Once it started on a job they carry on until the job is finished. Computer
cannot start themselves.
● They can works from the instructions which are stored inside the system in
the form of programs which specify how a particular job is to be done.
Accuracy:
• The accuracy of a computer is very high. o The degree of accuracy of a
particular computer depends upon its design.
• Errors can occur by the computer. But these are due to human
weakness,due to incorrect data, but not due to the technological weakness.
Speed:
• Computer is a very fact device. It can perform the amount of work in few
seconds for which a human can take an entire year.
• While talking about computer speed we do not talk in terms of secondsand
milliseconds but in microseconds. o A powerful computer is capable of
performing several billion (109) simple arithmetic operations per second.
Diligence:
• Unlike human beings, a computer is free from monotony, tiredness & lack
of concentration.
• It can continuously work for hours without creating any error & without
grumbling.
• If you give ten million calculations to performed, it will perform with
exactly the same accuracy & speed as the first one.
Versatility:
• It is one of the most wonderful features about the computer.
• One moment it is preparing the results of a particular examination,
thenext moment it is busy with preparing electricity bills and in between it
may be helping an office secretary to trace an important letter in seconds.
THE DATA PROCESSING CYCLE OF COMPUTER.
STORAGE
o The term input refers to the activities required to record data. o It’s a
process to entered data in to computer system.
o So, before we input any data, it is necessary to check or verify the data
context.
• DATA PROCESSING
o The term processing includes the activities like classifying, storing,
calculating, comparing or summarising the data.
o The processing means to use techniques to convert the data into
meaningful information.
• DATA OUTPUT
o It’s a communication function which transmits the information to the
outside world.
o After completed the process the data are converted into the meaningful
in o Sometimes the output also includes the decoding activity which
converts the electronically generated information into human readable
form.
• DATA STORAGE
o It involves the filling of data & information for future use.
THE CLASSIFICATION OF THE COMPUTER BY DATA PROCESSED
The computers are divided mainly three types on the based-on data
processed:
1. Analog computers
2. Digital computers
3. Hybrid computers Analog computers:
• In Analog Computers, data is represented as continuously varying voltage
and operate essentially by measuring rather counting.
• As the data is continuously variable, the results obtained are estimated and
not exactly repeatable.
• It can able to perform multiple tasks simultaneously and also capable to
work effectively with the irrational number. E.g. 1/8 = 0.125 and
1/6=0.1666
• Voltage, temperature and pressure are measured using analog devices like
voltmeters, thermometers and barometers.
Digital Computers
• The digit computer is a machine based on digital technology which
represents information by numerical digit.
• In Digital Computers data is represented as discrete units of electrical
pulses. The data is measured in quantities represented as either the ‘on’ or
‘off’ state.
• Therefore, the results obtained from a digital computer are accurate.
• Virtually all of today’s computers are based on digital computers.
Hybrid Computers
• It combines the good features of both analog & digital computers.
• It has a speed of analog computer & accuracy of digital computer.
• Hybrid Computers accept data in analog form and present output also in
digitally.
• The data however is processed digitally.
• Therefore, hybrid computers require analog-to-digital and digital-to-
analog converters for output.
THE GENERATION OF THE COMPUTERS.
In Computer language, “Generation” is a set of Technology. It provides a
framework for the growth of the computer technology. There are totally Five
Computer Generations till today. Discussed as following.
First Generation:
• Duration: 1942-1955
• Technology: vacuum tube o Used as a calculating device. o Performed
calculations in milliseconds. o To bulky in size & complex design. o
Required large room to place it. o Generates too much heat & burnt. o
Required continuously hardware maintenance. o Generates much heat so
must air-conditioner rooms are required. o Commercial production is
difficult & costly. o Difficult to configure. o Limited commercial use. o
ENIAC, EDVAC, EDSAC are example of 1st generation computer.
Second Generation:
Duration: 1955-
1964
• Technology: transistor o 10 times Smaller in size than 1st generation
system.
o Less heat than 1st generation computers.
o Consumed less power than 1st generation system. o Computers were
done calculations in microseconds.
o Air-conditioner is also required. o Easy to configure than 1st generation
computers.
• More reliable in information. o Wider commercial use. o Large
& fast primary/secondary storage than 1st generation computers.
Third Generation:
Duration: 1965-1975
Technology: IC chip o Smaller in size than 1st & 2nd generation
computers. o Perform more fast calculations than 2nd generation systems.
o Large & fast primary/secondary storage than 2nd generation
computers. o Air –conditioner is required.
• Widely used for commercial applications. o General purpose
computers. o High level languages like COBOL & FORTAN are
allowed to write programs.
• Generate less heat & consumed less power than 2nd generation
computer.
Fourth Generation:
Duration: 1975-1989
Technology: Microprocessor chip o Based
on LSI & VLSI microprocessor chip.
• Smaller in size. o Much faster than previous generations. o
Minimum hardware maintenance is required. o Very reliable as
computer to previous generation computers. o Totally general
purpose computer. o Easy to configure. o Possible to use network
concept to connect the computer together.
• NO requirement of air-conditioners. o Cheapest in price.
Fifth Generation:
Duration: 1989 to Present
● Technology: ULSI
microprocessor chip. Much
smaller & handy. Based on the
ULSI chip which contains 100
million electronic components.
● The speed of the operations is increased. Consumed less power. Air-
conditioner is not required.
● More user-friendly interface with multi-media features.
● High level languages are allowed to write programs.
● Larger & faster primary/secondary storage than previous generations.
● Notebook computers are the example of 5th generation computers.
Memory Unit:
o The data & instruction have to store inside the computer before the actual
processing start.
o Same way the result of the computer must be stored before passed to the
output devices. This tasks performed by memory unit.
The memory unit is a component of a computer system. It is used to store data,
instructions and information. It is also known as a principal/primary/internal
memory. There are two types of memory: –
1. Read-only memory (ROM):- ROM is a part of the memory unit. This is read
only memory, and it can not be used to write.
2. Random-access memory (RAM):- RAM is also part of the memory unit, and it
is used for the temporary storage of program data.
When other computer units require information, this unit provides it. Internal
storage unit, main memory, primary storage, and Random Access Memory are used
to describe it (RAM). Its size has an impact on its speed, power, and capabilities. In a
computer, there are two sorts of memories: primary memory and secondary
memory.
Control Unit:
o It controls the movement of data and program instructions into and out of the
CPU, and to control the operations of the ALU. o In sort, its main function is to
manage all the activities within the computer
system.
o Controls the internal parts as well as the external parts related with the
computer.
CPU:
CPU [Central Processing Unit]. It is the brain of the computer. It is the part that
does most of the work in a computer system. Just like how our brain controls our
body and processes information, the CPU carries out instructions from programs
and performs calculations. It’s made up of smaller components that work together to
execute tasks, making it the heart of any computing device.
All types of data processing operations from simple arithmetic to complex tasks and
all the important functions of a computer are performed by the CPU. It helps input
and output devices to communicate with each other and perform their respective
operations. It also stores data which is input, intermediate results in between
processing, and instructions. The CPU’s job is to make sure everything runs
smoothly and efficiently.
A Central Processing Unit is the most important component of a computer system. A
CPU is hardware that performs data input/output, processing, and storage functions
for a computer system. A CPU can be installed into a CPU socket. These sockets are
generally located on the motherboard. CPU can perform various data processing
operations. CPU can store data, instructions, programs, and intermediate results.
Different Parts of CPU
Now, the CPU consists of 3 major units, which are:
● Memory or Storage Unit
● Control Unit
● ALU(Arithmetic Logic Unit)
Let us now look at the block diagram of the computer:
INPUT DEVICES
• The Input devices are the devices which are used to enter the data in the
computer system.
• Keyboard, mouse, scanner, microphone are the example of input devices.
FUNCTIONS OF INPUT DEVICES:
o Accept the data from the outside worlds.
o Convert that data into computer coded information. o Supply this
data to Central Processing Unit for further processing.
18
• Print by hammering the pins on inked ribbon to leave ink impressions on the
paper.
• Able to print 30 to 600 characters per second.
• ADVANTAGES: o Low cost & easily available. o Cheap in cost. o Can make
carbon copy of print out.
o Low maintenance cost.
o Work with any type of environment.
• DISADVANTAGES: o Slow in speed. o Very noisy.
o Cannot work perfectly in graphics.
20
• Forms characters and all kinds of images by spraying drops of ink on to the
paper.
• Print head contains 64 tiny nozzles.
• To print a character the printer the printer selectively heats the appropriate
set of nozzle as the print head moves horizontally.
• Inkjet printer can either colour or monochrome.
• Capable to print 30 to 400 characters per minutes.
• ADVANTAGES: o High quality output.
o Silent during the operation.
o Able to print graphics. o Able to print any characters
& graphics. o Able to generate colour & monochrome
output.
• DISADVANTAGES: o Slower than dot matrix printer.
o Cannot make carbon copy of print out.
o Expensive than impact printer.
LASER PRINTER:
• It’s non-impact printer.
• It’s a page printer.
• Three main components laser beam, a multi-sided mirror, a photoconductive
drum & toner.
• To print page laser beam is focused on drum by spinning multisided mirror.
• Drum is electric charged.
• Toner which is composed of oppositely charged ink particles, stick to the
drum.
• Then toner focused on the paper with heat & pressure to generate output.
• Low speed laser printer can print 4 to 12 page per minute while high speed
laser printer Capable to print 500 to 1000 pages per minutes.
• ADVANTAGES: o High quality output. o Very faster in speed.
o Silent during the operation. o Able to print graphics. o
Able to print any characters & graphics.
o Able to generate colour & monochrome output.
• DISADVANTAGES:
o Very expensive. o Cannot make
carbon copy of print out.
THE DIFFERENCE BETWEEN IMPACT & NON-IMPACT PRINTER.
Impact printer Non impact printer
Printing character by striking hammer Printing characters or graphics by
against ink ribbon to produce output spraying ink on paper.
Slow in speed Faster than impact printer
Work with any environment Can’t work with all environment
Less expensive than non impact printer More expensive than impact printer
22
OPERATING SYSTEM
An Operating System (OS) is a software that acts as an
interface between computer hardware components and the user.
Every computer system must have at least one operating system to
run other programs. Applications like Browsers, MS Office, Notepad
Games, etc., need some environment to run and perform its tasks. The
OS helps you to communicate with the computer without knowing
how to speak the computer's language. It is not possible for the user to
use any computer or mobile device without having an operating
system.
• Later, computers were able to store instructions loaded into the computer's
memory using punch cards and then, after that, magnetic tapes. Computer
memory space was limited, and when the instructions to control a computer
were moved onto a disk drive, such as a floppy disk or internal HDD, it was
considered cutting-edge technology.
DOS features
Among the features and limitations of disk operating systems are the following.
Features
● Command-line interface (CLI). It does not have a GUI and doesn't accept mouse
inputs. It is a character-based interface system where all commands are entered
in text at the command-line prompt.
● Management. A disk operating system can manage a computer's files, I/O system
and its memory.
Limitations
● No built-in security. It does not have built-in security, such as file ownership and
permissions.
● No multiusers or multitasking. It also does not support multiusers or
multitasking. It is only able to run one program at a time, but it provides direct
access to the basic I/O system and underlying hardware.
● Challenging interface. The CLI, in which a user must type in commands, requires
the user to remember commands to run programs and do other OS tasks. This
approach makes it difficult for novices to use. For example, typing the
command cd \directory_name changes the current working directory to the named
directory and typing the command dir lists the files in the current directory.
UNIX
● Unix is an Operating System that is truly the base of all Operating Systems like
Ubuntu, Solaris, POSIX, etc. It was developed in the 1970s by Ken Thompson,
Dennis Ritchie, and others in the AT&T Laboratories. It was originally meant
for programmers developing software rather than non-programmers.
● Unix and the C were found by AT&T and distributed to government and
academic institutions, which led to both being ported to a wider variety of
machine families than any other operating system. The main focus that was
brought by the developers in this operating system was the Kernel .
● Unix was considered to be the heart of the operating System. The system
Structure of Unix OS are as follows:
● UNIX is a family of multitasking, multiuser computer operating systems
developed in the mid 1960s at Bell Labs.
● It was originally developed for mini computers and has since been ported to
various hardware platforms.
● UNIX has a reputation for stability, security, and scalability, making it a
popular choice for enterprise-level computing.
● For those preparing for exams like GATE , a thorough understanding of
operating systems, including Unix, is essential. Our GATE course provides an
in-depth exploration of Unix, covering its history, structure, and key concepts
that are crucial for the exam
● The basic design philosophy of UNIX is to provide simple, powerful tools that
can be combined to perform complex tasks. It features a command-line
interface that allows users to interact with the system through a series of
commands, rather than through a graphical user interface (GUI).
Some of the key features of UNIX include:
1. Multiuser support: UNIX allows multiple users to simultaneously access the same
system and share resources.
2. Multitasking: UNIX is capable of running multiple processes at the same time.
3. Shell scripting: UNIX provides a powerful scripting language that allows users to
automate tasks.
4. Security: UNIX has a robust security model that includes file permissions, user
accounts, and network security features.
5. Portability: UNIX can run on a wide variety of hardware platforms, from small
embedded systems to large mainframe computers.
6. Communication: UNIX supports communication methods using the write
command, mail command, etc.
7. Process Tracking: UNIX maintains a record of the jobs that the user creates. This
function improves system performance by monitoring CPU usage. It also allows
you to keep track of how much disk space each user uses, and the use that
information to regulate disk space.
WINDOWS:
It was released for both home computing and professional functions of Windows
on 10 November 1983. Later, it was released on many versions of Windows as well as
the current version, Windows 10.
In 1993, the first business-oriented version of Windows was released, which is known
as Windows NT 3.1. Then it introduced the next versions, Windows 3.5, 4/0,
and Windows 2000. When the XP Windows was released by Microsoft in 2001, the
company designed its various versions for a personal and business environment. It
was designed based on standard x86 hardware, like Intel and AMD processor.
Accordingly, it can run on different brands of hardware, such as HP, Dell, and Sony
computers, including home-built PCs.
Features of Windows
Microsoft Windows includes a lot of features to help users. Some of its excellent
features are as follows:
1. Control Panel: Windows provides a Control Panel feature that includes many
tools to configure and manage the resources on their computer. For example,
users can change settings for audio, video, printers, mouse, keyboard, network
connections, date and time, power saving options, user accounts, installed
applications, etc.
3. File Explorer: It is also known as Windows Explorer, which displays your files
and folders on the computer. It allows users to browse the data on the hard
drive, SSD and other inserted removable disks like pen drives and CDs, and
you can manage the content according to the requirements such as delete,
rename, search, and transfer the data.
5. Microsoft Paint: Since November 1985, Microsoft Windows comes with pre-
installed Microsoft Paint. It is a simple software to create, view, and edit an
image. It offers several tools to draw an image, crop, resize, and save an image
with a different file extension.
7. Start menu: Microsoft Windows contains a start menu to the left side of the
taskbar. It displays programs and utilities that are installed on the computer.
It can be simply opened by clicking on the Start menu button or pressing the
start key on the keyboard.
8. Task Manager: Windows includes the task manager feature that provides
detail of the running applications or programs on the computer. You can also
check how much of the system resources, such as RAM, CPU, disk I/O, are
being used by each of the applications.
9. Disk Cleanup: It is used to free up disk space with the help of deleting
temporary or unnecessary files. It also helps to enhance the performance of the
computer, and boost storage space to download the programs and documents.
To open Disk Cleanup, follow the below steps:
o Open the File Explorer by pressing Window + E.
o Then, right-click on any disk drive and select Properties option from the
drop-down list.
o Now, click on the Disk Cleanup.
Programming Language
A programming language is a computer language that is used by programmers
(developers) to communicate with computers. It is a set of instructions written in any
specific language ( C, C++, Java, Python) to perform a specific task.
A programming language is mainly used to develop desktop applications, websites,
and mobile applications.
What is the need for programming languages?
Several software packages are made using programming languages, together with:
o Operating structures
o Web browsers
o Mobile apps
o Desktop packages
o Video games
o General Software program
o Business-related software programs
o Embedded structures
High-level programming language includes Python, Java, JavaScript, PHP, C#, C++,
Objective C, Cobol, Perl, Pascal, LISP, FORTRAN, and Swift programming
language.
The main advantage of object-oriented programming is that OOP is faster and easier
to execute, maintain, modify, as well as debug.
Disadvantages
o Python is not suitable for developing mobile applications and games.
o Python works with the interpreter. That's why it is slower than other
programming languages like C and C++.
2. Java
Disadvantages
o Java consumes more memory and slower than other programming languages
like C or C++.
o It does not provide a backup facility.
3. C
Disadvantages
o In the C programming language, it is very difficult to find the errors.
o C does not support the concepts of constructors, destructors, abstraction,
polymorphism, encapsulation, and namespace like OOPs.
4. C++
Disadvantages
o C++ programming language is not secured as compared to other programming
languages like Java or Python.
o C++ can not support garbage collection.
o It is difficult to debug large as well as complex web applications.
5. C#
Disadvantages
o C# is less flexible because it is completely based on Microsoft .Net framework.
o In C#, it is difficult to write, understand, debug, and maintain multithreaded
applications.
6. JavaScript
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
Disadvantages
o R programming does not support 3D graphics.
o It is slower than other programming languages.
8. PHP
Disadvantages
o PHP is not capable of handling a large number of applications and not suitable
for large applications.
o It is quite difficult to maintain.
9. Go
Disadvantages
o Go language does not support generics.
o It does not support error handling.
o It supports a lack of frameworks.
10. Ruby
Ruby is an open-source, general-purpose, and pure object-oriented programming
language released in 1993. It is used in front-end and back-end web development. It
is mainly designed to write CGI (Common Gateway Interface) scripts.
Advantages
o Ruby supports various GUI (Graphical User Interface) tools like GTK and
OpenGL.
o It is used to develop both internet as well as intranet applications.
o The code written in Ruby is small and contains less number of lines.
Disadvantages
o Ruby is slower than other programming languages.
o It is very difficult for programmers to debug the code written in Ruby.