Fundamentals of Computer - Unit 1
Fundamentals of Computer - Unit 1
Unit-1
• What is computer ?
• History of computer
• Block Diagram of computer system
• Computer Hardware & software
• Overview of Types of operating system
• Compiler & Interpreter
• Programming Languages
• Flowchart & Algorithms
https://www.javatpoint.com/history-of-computer
https://ncerttutorials.com/wp-content/uploads/2020/11/Class-6.pdf
The input unit takes all the data received by the computer. The input unit comprises different devices
such as a mouse, keyboard, scanner, etc. All of these devices act as intermediaries between the users and
the computer. The input unit takes the data that has to be processed. The raw data is accepted by the
computer in binary form. This data is then processed and the desired output is produced.
The Central Processing Unit or CPU is known as the brain of the computer. Just like the human brain
controls all human activities, the CPU also takes care of all the tasks. The CPU is responsible for
performing all the arithmetic and logical operations within the computer. All the major calculations,
operations and comparisons are performed inside the CPU.
• All the components of a computer system, software, and data processing are controlled by the CPU.
• The Input devices provide data to the CPU which is then executed and then the CPU sends the output
to the Output devices.
• All the operations including the arithmetical and logical are processed by the CPU.
• The CPU comprises two parts- ALU (Arithmetic Logic Unit) and CU (Control Unit). These units
work in sync to help the CPU process the whole data.
1. Data is entered into the primary memory via the input unit. Then, the ALU carries out essential
arithmetic operations on this data, including addition, subtraction, multiplication, and division. After
performing all sorts of calculations required on the data, it sends back data to the storage.
2. The ALU also performs logical operations such as AND, OR, Equal to, Less than, etc. In addition, it
also handles tasks like merging, sorting, and selecting the given data.
As the name suggests, the Control Unit (CU) is the controller of all the activities, tasks and operations. All
these operations are performed inside the computer. The memory unit sends a set of instructions to the
control unit which is then converted by the CU. These instructions are then converted to control signals. The
purpose of these control signals is to help in prioritizing and scheduling activities. So, the control unit
ensures that all tasks inside the computer work together smoothly, coordinating with the input and output
units.
23-10-2023 Dr. Chandelkar K K 8
Memory Unit
The Memory Unit stores all the data that has to be processed or has been processed. The memory unit serves
as a central hub for all the data. This data is then transmitted to the required part of the computer whenever
necessary. This unit works in sync with the Central Processing Unit to help in faster accessing and processing
of the data. This results in making the tasks easier and quicker.
1. Primary memory: The primary memory cannot store a vast amount of data. Hence, it is only used to store
recent data which is temporary. Once the power is switched off, the data stored can get erased. Hence it
is also called temporary memory or main memory. An example of primary memory is Random Access
Memory (RAM). This memory is directly accessible by the CPU and is used for reading and writing
purposes. The data has to be first transferred to the RAM and then to the CPU for processing.
2. Secondary memory: Since the primary memory stores temporary data and it cannot be accessed in the
future. So, for permanent storage purposes, secondary memory is used. It is also known as permanent
memory or auxiliary memory. An example of secondary memory is the hard disk. The data does not get
erased easily even in case of a power failure.
Once the information sent to the computer is processed, the user receives the results through the output
unit. Examples of output units are devices such as printers, monitors, projectors, etc.
The output unit presents the data either as a soft copy (on the screen) or as a hard copy (on paper). The
printer is for the hard copy. The monitor is for the display. The output unit receives data in binary form
from the computer and converts it into a readable format for the user.
1. The Output Unit accepts all the data and information from the main memory of a computer system in
binary form.
2. The Output Unit also converts the binary data into a human-readable form for a better understanding
Reference:
https://www.tutorialandexample.com/
types-of-operating-system
A language processor that converts a program written There are various advantages of the compiler
in high-level language into machine language, entire which are as follows −
program at once, is called a compiler. Thus, the
input of a compiler is a high-level language code • A compiler translates a program in a single run.
(called source code), while its output is a machine
• It consumes less time.
language code (called object code).
• CPU utilization is more.
A compiler scans whole program and then check it
for syntactic and semantic error, once the code is • Both syntactic and semantic errors can be
checked for errors, it is converted into an object code. checked concurrently.
Then, it can be processed by the machine to perform
the corresponding task. The common programming • It is easily supported by many high-level
languages that use compiler are C, C++, C#, etc. languages like C, C++, JAVA, etc.
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.
A programming language is mainly used to develop desktop applications, websites, and mobile
applications. For more details about programming languages please use below reference.
Reference: https://www.javatpoint.com/programming-language
Reference: https://www.lucidchart.com/pages/what-is-a-flowchart-tutorial
23-10-2023 Dr. Chandelkar K K 21
Algorithm
Algorithms play a crucial role in various fields and have many applications. Some of the key areas
where algorithms are used include:
• Computer Science: Algorithms form the basis of computer programming and are used to solve
problems ranging from simple sorting and searching to complex tasks such as artificial intelligence
and machine learning.
• Mathematics: Algorithms are used to solve mathematical problems, such as finding the optimal
solution to a system of linear equations or finding the shortest path in a graph.
• Operations Research: Algorithms are used to optimize and make decisions in fields such as
transportation, logistics, and resource allocation.
• Artificial Intelligence: Algorithms are the foundation of artificial intelligence and machine learning,
and are used to develop intelligent systems that can perform tasks such as image recognition, natural
language processing, and decision-making.
• Data Science: Algorithms are used to analyze, process, and extract insights from large amounts of
data in fields such as marketing, finance, and healthcare.