Application of ICT-2
Application of ICT-2
2. Software: The programs and applications that control the hardware and
process data (e.g., Microsoft Office, databases). All the computer programs
are generally known as software. Computer hardware will do nothing until
we tell it what to do. It is the Software (computer Programs) that brings the
hardware to life. Software tells the computer what to do and how to do.
Without Software, hardware is useless.
3. Data: The information that the system collects and processes (e.g., sales
data, employee records).
WHAT IS DATA & INFORMATION
DATA
Data are facts and figures which can be represented by values, numbers,
strings and/or symbols and which carry meaning in a particular sense. The
name of the person, the pay drawn by the employee, marks obtained by the
student are a few examples of Data.
Data is plural word referring to more than one fact. A single fact is referred
to as the item of the data or Data-Item. Data is actually the plural form of
the word “DATUM”. Datum comes from the Latin word and originally
meant “Some Thing Given”.
Data may be Qualitative or Quantitative. The data usually non-numeric
(Alphabetic) is called Qualitative data. This data states the characteristics of
objects or things e.g. the words like good, average, excellent, heavy, red,
green, hot, cold long, intelligent, dull etc. are the examples of Qualitative
data.
The data which can be represented by numbers is called Quantitative data
e.g. the marks obtained by the students in the examinations, total number
of the students in a class, age of a student, phone number are all the
examples of Quantitative data.
INFORAMTION
Processed form of the data is called Information
OR
Manipulation of data into useful form is called Information
OR
Information can be defined as:
“Facts and Figures which are new, timely and accurate
considered to be in structured and associated form”.
Example:
The temperature, the atmospheric pressure, the wind speed etc., at a
place represents data. These data items when combined together and
analyze become more meaningful and predict the weather as Rainy Day,
Strong Condition, or Dry Condition, which is an information.
DIFFERENTIATE BETWEEN DATA AND INFORMATION
S.N DATA INFORMATION
o
1 Data is collection of raw Information is
facts and figures. processed data.
2 Data is unarranged and Information is
unorganized. arranged
and organized.
Minimum Temperature
of
the day= 150C and
Maximum
Temperature of the
day= 250C.
4. People: The users and IT professionals who interact with the system and
ensure it runs smoothly.
5. Processes: The steps or procedures that define how tasks are completed
using the system (e.g., how to input data, how to generate reports).
Information systems help businesses and organizations operate more efficiently,
make better decisions, and communicate effectively.
Information Resources
Information resources refer to the data, tools, and technologies that organizations
use to collect, store, process, and share information. These resources are critical
for managing and using information effectively within an organization.
1. Data: The most essential resource. This includes facts, figures, or raw
information that organizations collect, store, and analyze (e.g., customer
information, sales records).
2. Information: When data is processed or organized to have meaning or
purpose (e.g., turning raw sales data into a sales report).
3. Technologies: Tools like software (databases, accounting systems) and
hardware (computers, servers, networks) that allow organizations to
process and store information efficiently.
4. People: Staff members who manage, analyze, and use the information for
decision-making (e.g., IT managers, data analysts, or other employees using
the data).
5. Policies and Procedures: Guidelines and rules that govern how information
is managed, accessed, and used in an organization to ensure accuracy and
security.
6. Networks: Communication channels that connect computers and devices,
enabling the sharing of information and resources across an organization or
the internet.
Analog Computers
Analog computer is used to measure continuous values. It measures a
physical property like voltage, pressure, speed, time and temperature. An
analog computer takes input in analog form and gives output in analog
form.
Its output is usually displayed on a meter or scale. Analog computer has low
memory and fewer functions. Analog computer is mainly used in the field of
engineering and medicine.
How they work: They measure and process data as continuous signals. For
example, an analog computer could measure the speed of a moving car or
changes in temperature over time.
1.Thermometer
2.Speedometer
3. Analog clock
Digital Computers
A digital computer works with digital data. Digital computer uses binary
number system. Binary number system consists of only two digits 0 and 1. A
digital computer represents data in digital signals. A 0 represents OFF and a
1 represents ON. Digital computer performs arithmetic and logical
operations on data. It gives output in digital form.
Digital computers are very fast. These computers can store results. They
have large Memory (that is data storing capacity). Today most of the
computers used in offices and homes are Digital computers.
How they work: Digital computers break down data into bits (0s and 1s)
and perform calculations or process information based on this digital
representation. Everything from text, images, and sounds can be
represented digitally.
Uses: Digital computers are found in laptops, smartphones, servers, and all
modern devices. They are used for tasks like word processing, web
browsing, gaming, and controlling complex machinery.
Examples:
Differences
Why Binary?
Binary Arithmetic
Computers perform calculations using binary arithmetic, which follows
simple rules:
Addition: Similar to decimal addition, but with just two digits (0 and 1).
Here are the basic rules:
o 0+0=0
o 0+1=1
o 1+0=1
o 1 + 1 = 10 (carry the 1 to the next bit)
Example:
101 (binary) + 110 (binary) = 1011 (binary)
2. Decoder
The Decoder takes the instruction provided by the CU and breaks it down
into a format that the CPU can understand and execute. It decodes the
instruction into the operation code (opcode) and the address of the data it
needs to work with.
Functions:
o Converts the binary instruction into control signals.
o Helps identify what action (like addition, subtraction, etc.) the CPU
should perform.
1. Input Registers
The input registers are temporary storage areas within the ALU that hold
the data (numbers or logical values) that the ALU will process. The two most
important input registers are:
A Register: Stores the first operand (the first input number).
B Register: Stores the second operand (the second input number).
When an instruction is fetched, the input data (like the numbers for
addition) is placed into these registers before being sent to the arithmetic
or logic sections of the ALU.
2. Arithmetic Unit
The Arithmetic Unit is responsible for performing basic mathematical
operations. It handles:
Addition: Adds two input numbers (e.g., A + B).
Subtraction: Subtracts the second input from the first (e.g., A - B).
Multiplication: In some ALUs, multiplication can be handled directly.
Division: Similarly, more advanced ALUs can divide.
Internally, the Arithmetic Unit typically uses binary adders to perform
addition. The adder used in ALUs performs binary addition by cascading a
series of full adders.
3. Logic Unit
The Logic Unit handles logical operations. These operations are essential for
decision-making processes in computer programs. Some common logic
operations include:
AND: Compares two bits and returns 1 only if both bits are 1.
OR: Returns 1 if at least one of the bits is 1.
NOT: Inverts the bits (0 becomes 1, and 1 becomes 0).
XOR: Returns 1 if the two bits are different, otherwise returns 0.
Example of AND Operation:
If the ALU is performing an AND operation on two inputs:
A = 1010 (in binary)
B = 1100 (in binary)
AND = 1000
Only the bits where both inputs are 1 will result in 1 in the output.
4. Multiplexer (MUX)
The Multiplexer (MUX) is a switching device that selects one of several
input signals and forwards it to the output. The ALU uses a MUX to decide
whether the operation to be performed is arithmetic or logical. Based on
control signals sent from the Control Unit, the MUX chooses either the
Arithmetic Unit or Logic Unit to process the data.
Role of the MUX:
If the instruction requires an arithmetic operation, the MUX routes the data
to the Arithmetic Unit.
If the instruction requires a logical operation, the MUX routes the data to
the Logic Unit.
5. Status Flags
The Status Flags (also called condition codes) are used to store information
about the result of an operation. After the ALU completes an operation, the
flags are updated to reflect the outcome. Common flags include:
Carry Flag (CF): Set if there is a carry-out from the most significant bit in
addition (used for multi-bit operations).
Zero Flag (ZF): Set if the result of an operation is zero.
Overflow Flag (OF): Set if an arithmetic operation results in a number too
large to fit in the allocated space.
Sign Flag (SF): Indicates whether the result is positive or negative.
6. Shifters
The ALU often includes shifters, which are specialized circuits that shift the
bits of a binary number to the left or right. Shifting is useful for various
operations, such as multiplication or division by powers of two.
Left Shift: Shifts all bits of a binary number to the left, effectively
multiplying the number by 2.
Right Shift: Shifts all bits of a binary number to the right, effectively dividing
the number by 2.
7. Output Register
The Output Register holds the result of the operation performed by the
ALU, whether it is an arithmetic result (like the sum of two numbers) or a
logical result (such as the result of a comparison).
Once the ALU completes its operation, the output is stored in this register,
and the result can be sent back to memory or used for further processing.
Working of ALU
Let’s take an example of adding 2 + 3:
1. Input Registers: The values 2 and 3 are loaded into the A Register and B
Register.
2. Multiplexer (MUX): The control unit tells the MUX that this is an arithmetic
operation, so the MUX routes the input to the Arithmetic Unit.
3. Arithmetic Unit: The Arithmetic Unit adds the binary values of 2 (10) and 3
(11), resulting in 101 (which is 5 in binary).
4. Status Flags: The Zero Flag (ZF) remains 0 because the result is not zero,
and the Carry Flag (CF) is not set because there was no carry-out.
5. Output Register: The result, 5, is stored in the Output Register.
6. Shifter (Optional): If the result needs to be shifted for another operation,
the shifter can adjust the result.
Design of a Microcomputer
A microcomputer is a small, personal computer designed for individual use.
It is built using several key components that work together to process data,
store information, and communicate with the user.
CPU
(Block diagram of a computer)
CPU stands for Central Processing Unit. It consists of two major units,
known as Control Unit (CU) and Arithmetic Logic Unit (ALU). It
supervises, activates and controls the operations of the other units of
the computer system. It is also called the brain of the computer.
ALU stands for Arithmetic Logic Unit. It performs all the arithmetic
operations like addition, subtraction, multiplications and division and
also logical comparisons.
2. Main Memory
Main memory retains all the data which has been entered through
the input device. It is very fast in operation. The main memory is also
known as internal storage, or primary storage or main storage. Main
memory consists of two types, RAM & ROM.
a. RAM
RAM stands for Random Access Memory. This is the memory whose
memory can be erased or changes.
b. ROM
ROM stands for Read Only Memory. Like RAM, it is not possible to
change or write information into it. It is Non-Volatile memory. It
cannot be lost if the power supply is switched off. So ROM is a
Permanent memory.
3. Storage Devices
Storage devices hold data and programs permanently, even when the
power is off.
Examples include the hard disk drive (HDD), CD/DVD, USB flash
drives, and memory cards.
Storage devices keep our files and applications safe so that we can
access them later.
4. Input Devices
Input devices are used to enter data into the computer. They allow
the user to interact with the computer.
These devices convert user actions (like typing or clicking) into signals
that the computer can understand.
5. Output Devices
6. Motherboard
7. BUS System
Data Bus: Transfers data between the CPU, memory, and other
devices.
The bus system is like a highway that allows data to travel back and
forth within the computer.
The Power Supply Unit (PSU) provides electrical power to all the
computer components.
The PSU ensures that all components receive a stable and consistent
power supply to function properly.
Flynn's Classification of Computer Architectures
Suitable for tasks where only one sequence of instructions is needed, like
simple calculations.
Graphics Processing Units (GPUs) use SIMD to process large sets of pixels
or graphical data.
Ideal for tasks that involve a lot of repetitive calculations, like image
processing or scientific simulations.
This architecture is quite rare and is mostly used in specialized systems like
fault-tolerant computers where multiple checks are performed on the
same data.
Useful in applications where data integrity is crucial, like redundant systems
in aerospace and military control.
2. Memory Architecture
3. Interconnection Network
4. Input/Output System
Parallel computers can be classified into different designs based on how the
processors are organized and how they communicate with each other. The main
types include:
Best suited for tasks where multiple processors need to work on the
same data set.
Ideal for tasks that can be divided into independent parts with
minimal communication between them.
Processors are grouped into clusters with shared memory, and these
clusters are connected using distributed memory techniques.
2. Load Balancing
o Ensuring that all processors are used efficiently and that no processor
is idle while others are overloaded.
4. Scalability
The operating system plays a crucial role in the functioning of a computer system.
It serves as:
The main functions of an operating system can be divided into several key areas:
1. Process Management
The OS manages all the processes (programs in execution) that are running
on the computer.
If multiple applications are open, the OS decides which one gets the CPU's
attention first.
2. Memory Management
The OS manages files and directories on storage devices like hard drives or
SSDs.
It controls how data is stored, retrieved, and organized into files and folders.
4. Device Management
When you print a document, the OS sends data from the computer to the
printer.
You need to enter a password to log into your computer or to access certain
files.
6. User Interface
Windows, macOS, and Linux use GUI, while older systems like MS-DOS use
CLI.
Operating systems (OS) are essential software that control and manage the
hardware and software resources of a computer. They provide the environment in
which other programs can run and help users interact with the computer easily.
Understanding the core concepts of operating systems is crucial to knowing how
computers work. Let's go through the fundamental concepts of operating systems:
1. Process Management
Functions:
o Process Scheduling: Decides the order in which processes are
executed by the CPU.
2. Memory Management
Functions:
The file system organizes and stores data in a structured way so that users
can easily access and manage files.
Functions:
4. Device Management
Functions:
5. User Interface
The user interface is how the user interacts with the computer and the
operating system.
The OS ensures the computer's data and resources are protected from
unauthorized access and threats.
Functions:
o User Authentication: Requires usernames and passwords to log in to
the system.
o Time-Sharing: Divides the CPU time into small intervals and switches
between tasks so that they appear to be running simultaneously.
Functions:
Functions:
Functions:
An Operating System performs all the basic tasks like managing files, processes,
and memory. Thus, the operating system acts as the manager of all the resources,
i.e. resource manager. Thus, the operating system becomes an interface between
the user and the machine. It is one of the most required software that is present
in the device.
This type of operating system does not interact with the computer directly. There
is an operator which takes similar jobs having the same requirements and groups
them into batches. It is the responsibility of the operator to sort jobs with similar
needs. Batch Operating System is designed to manage and execute a large number
of jobs efficiently by processing them in groups.
It is sometimes costly.
The other jobs will have to wait for an unknown time if any job fails.
In batch operating system the processing time for jobs is commonly difficult
to accurately predict while they are in the queue.
There is not any facility for user interaction of system resources with the
system.
As it has several processors, so, if one processor fails, we can proceed with
another processor.
Due to the multiple CPU, it can be more complex and somehow difficult to
understand.
There are two types of Multi-Tasking Systems which are listed below.
Preemptive multi-tasking
Cooperative multi-tasking
Each task is given some time to execute so that all the tasks work smoothly. Each
user gets the time of the CPU as they use a single system. These systems are also
known as Multitasking Systems. The task can be from a single user or different
users also. The time that each task gets to execute is called quantum. After this
time interval is over OS switches over to the next task.
Advantages of Time-Sharing OS
Reliability problem.
One must have to take care of the security and integrity of user programs
and data.
Security Risks: With multiple users sharing resources, the risk of security
breaches increases. Time-sharing systems require careful management of
user access, authentication, and authorization to ensure the security of data
and software.
Failure of one will not affect the other network communication, as all
systems are independent of each other.
Since resources are being shared, computation is highly fast and durable.
These systems are easily scalable as many systems can be easily added to
the network.
These types of systems are not readily available as they are very expensive.
Not only that the underlying software is highly complex and not understood
well yet.
New technologies and hardware up-gradation are easily integrated into the
system.
These types of OSs serve real-time systems. The time interval required to process
and respond to inputs is very small. This time interval is called response
time. Real-time systems are used when there are time requirements that are very
strict like missile systems, air traffic control systems, robots, etc.
Hard Real-Time Systems: Hard Real-Time OSs are meant for applications
where time constraints are very strict and even the shortest possible delay
is not acceptable. These systems are built for saving life like automatic
parachutes or airbags which are required to be readily available in case of
an accident. Virtual memory is rarely found in these systems.
Soft Real-Time Systems: These OSs are for applications where time-
constraint is less strict.
Advantages of RTOS:
Task Shifting: The time assigned for shifting tasks in these systems is very
less. For example, in older systems, it takes about 10 microseconds in
shifting from one task to another, and in the latest systems, it takes 3
microseconds.
Disadvantages of RTOS
Limited Tasks: Very few tasks run at the same time and their concentration
is very less on a few applications to avoid errors.
Use heavy system resources: Sometimes the system resources are not so
good and they are expensive as well.
Complex Algorithms: The algorithms are very complex and difficult for the
designer to write on.
Device driver and interrupt signals: It needs specific device drivers and
interrupts signal to respond earliest to interrupts.
•It is the user who tells the computer “What it has to do?”
•If we need our computer to perform some tasks, we first have to teach the
computer in detail “how I twill accomplish that task?”
•Once the computer is taught about a particular task, it will completely obey it but
cannot do anything that it is not taught to.
Like the humans, we can teach the computer through communicating with it using
a particular language.
•Programming teaches you how to understand, analyze and solve the problems. It
enhances your analytical reasoning abilities and helps you cope with daily real-life
problems as well.
Programmer
•The person who gives the instructions (commands) to the computer is known as
the programmer.
Instruction
•For example:
3) Read file
What is Program?
Instruction 1: Get first number from the user and store it in A variable
Instruction 2: Get second number from the user and store it in B variable
Instruction 3: Get third number from the user and store it in C variable
•Instructions 1-6 are used to solve a single task. This collection of instruction is
known as a program.
Programming Language
•A programming language is an artificial language designed to communicate
instructions to a computer.
Each language has a unique set of key words (special words that it understands)
and a special syntax (format) for organizing program instructions.
1. Low-Level Language
b. Assembly language
a. Machine Language
o Here all the instructions are written as code of binary sequence. For
example:
o In order to move data from one place to another, the code is: 10000111
o There are hundreds of instructions and each instruction has a binary code.
11001010
01001010
11110101
Assembly Language
•Assembly language is same as machine language but uses English like words to
represent individual operations.
•For example: Instead of binary codes it uses: ADD, MOV, SUB, INC
•It is easier than the machine language but still it is very difficult to control a
larger program using assembly.
As assembly language contains English like words, which will not be understood by
the computer (because it only understands 0s and 1s)
•A translator first converts the assembly language program into machine language
program.
MVI A, 05h
MVI B, 9Ah
ADD B
INC A
STA 8200h
HLT
2. High-Level Language
Like assembly language, it also uses English like words for the operations.
For example: for, if, else, break, continue, while, include, using, import
•GW Basic, C++, JAVA, Pascal, COBOL, Python, C#, Visual Basic
void main()
{
Int a= 5;
Int b= 6;
if(a> b)
cout<<“First number is greater.”;
else
cout<<“Second number is greater.”;
}
3. Middle-Level Language
•A language that has the features of both low level and high-level languages.
•More formally, a high-level language that allows you to write low level programs
in it is called as middle level language.
•C