Class XI Notes Computer System and Organization
Class XI Notes Computer System and Organization
Hardware are the physical components of a computer like motherboard, memory devices, monitor,
keyboard etc. while software is the set of programs or instructions. Both hardware and software
together make the computer system function.
Every task given to a computer follows an Input- Process- Output Cycle (IPO cycle). The input unit
takes the input, the central processing unit does the processing of data and the output unit produces
the output. The memory unit holds the data and instructions during the processing.
CPU
INPUT OUTPUT
UNIT ALU CU UNIT
REGISTERS
MEMORY
Input Unit
The input unit consists of input devices that are attached to the computer. These devices take input
and convert it into binary language that the computer understands. Some of the common input
devices are keyboard, mouse, joystick, scanner etc.
1|Page
Once the information is entered into the computer by the input device, the processor processes it.
The CPU is called the brain of the computer because it is the control centre of the computer. As the
CPU is located on a small chip, it is also called the microprocessor. It first fetches instructions from
memory and then interprets them so as to know what is to be done. Thereafter CPU executes or
performs the required computation and then either stores the output or displays on the output
device. The CPU has three main components which are responsible for different functions –
Arithmetic Logic Unit (ALU) , Control Unit (CU) and Memory registers.
The ALU, as its name suggests performs mathematical calculations and takes logical decisions.
Arithmetic calculations include addition, subtraction, multiplication and division.
Control Unit
The Control unit coordinates and controls the data flow in and out of CPU and also controls all the
operations of ALU, memory registers and also input/output units. It is also responsible for carrying
out all the instructions stored in the program.
Memory Registers
A register is a temporary unit of memory in the CPU. These receive data/information and then this
data/information is held in them as per the requirement. Registers can be of different sizes(16 bit ,
32 bit , 64 bit and so on) and each register inside the CPU has a specific function like storing data,
storing an instruction, storing address of a location in memory etc.
Memory
Memory attached to the CPU is used for storage of data and instructions and is called internal
memory. During processing, it is the internal memory that holds the data.
Eight bits combined together to form a single byte, which in turn represents a single character.
2|Page
The computer memories can be divided into following categories:
1. Primary Memory
2. Secondary memory
3. Cache Memory
1. Primary Memory
Primary memory or main memory is a memory used for storing program and data during the
execution of the program. It is directly accessible to CPU. Broadly primary memory can be of two
types – RAM (Random Access Memory) and ROM (Read only memory).
In case of RAM, the memory can be accessed from any desired location randomly. That means
without searching the entire memory, any location can be accessed in the same amount of time. It is
a read/write memory, so data can be both read from and written to the RAM. It is a volatile memory
and loses its contents when the power is switched off or interrupted.
As the name suggests, a ROM is a type of memory that can perform read operation only. The
contents of ROM are written by the manufacturer and come along with the computer. We cannot
change its contents or write something else on it. Data is written on to the ROM at the time of its
manufacture and it cannot be changed thereafter. It is a non-volatile memory, which means that
contents stored in it are not lost even when the power to the computer is switched off.
2. Secondary Memory
The major limitation of primary memory is that it has limited storage capacity and is volatile. To
overcome this limitation we have secondary memory storage devices. This type of memory is also
called external memory. Hard disk is a good example of secondary memory.
Hard disk: A hard disk consists of one or more circular disks called platters which are mounted on a
common spindle. Each surface of a platter is coated with a magnetic material. Both surfaces of each
disk are capable of storing data except the top and bottom disk where only the inner surface is used.
The information is recorded on the surface of the rotating disk by magnetic read/write heads. These
heads are joined to a common arm known as access arm. This arm moves over the surface of the
rotating disk.
3. Cache Memory
Cache memory is a special high speed memory made up of high speed static RAMs. It is used to hold
frequently accessed data and instructions. We know that the processing speed of CPU is much more
than the main memory access time of the computer. This means the CPU has to wait for a
3|Page
substantial amount of time. Alternatively we have the cache memory which is a small, expensive but
fast memory that is placed between the CPU and the main memory. Whenever some data is
required, the CPU first looks into cache. If data is found, we call it a cache hit and the information is
transferred to the CPU. In case of a miss, the main memory is accessed.
Concept of Booting
When the computer is switched on, a copy of boot program is brought from ROM into the main
memory. This process is called booting. The CPU first runs a jump instruction that transfers to BIOS
(Basic Input output System) and it starts executing. The BIOS conducts a series of self diagnostic tests
called POST (Power On Self Test). These tests include memory tests, configuring and starting video
circuitry, configuring the system’s hardware and checking other devices that help to function the
computer properly. Thereafter the BIOS locates a bootable drive to load the boot sector. The
execution is then transferred to the Boot Strap Loader program on the boot sector which loads and
executes the operating system. If the boot sector is on the hard drive then it will have a Master Boot
record (MBR) which checks the partition table for active partition. If found, the MBR loads that
partition’s boot sector and executes it.
Cold Booting: When the system starts from initial state i.e. it is switched on, we call it cold booting or
Hard Booting. When the user presses the Power button, the instructions are read from the ROM to
initiate the booting process.
Warm Booting: When the system restarts or when Reset button is pressed, we call it Warm Booting
or Soft Booting. The system does not start from initial state and so all diagnostic tests need not be
carried out in this case. There are chances of data loss and system damage as the data might not
have been stored properly.
Software is a general term used for computer programs that control the operations of the computer.
A program is a sequence of instructions that perform a particular task. A set of programs form a
software. It is the software which gives hardware its capability. Hardware is of no use without
software and software cannot be used without hardware.
Types of Software
1. System Software
2. Application Software
3. Utility Software
1. System Software :
System Software is the software that is directly related to coordinating computer operations and
performs tasks associated with controlling and utilizing computer hardware. System software directs
4|Page
the computer what to do, when to do and how to do. Operating system is the best example of a
system software.
2. Application Software:
An application software is bought by the user to perform specific applications or tasks, say for
example making a document or making a presentation or handling inventory or managing the
employee database. MS OFFICE, ADOBE READER, PAGEMAKER, PHOTOSHOP etc. are the example of
Application software.
3. Utility Software:
A utility software is one which provides certain tasks that help in proper maintenance of the
computer. The job of utility programs is to keep the computer system running smoothly. Some of
the commonly use utility softwares are antivirus, Disk defragmenter, backup, compression etc.
Language Processors/Translators:
We know that computer understands instructions in machine code, i.e. in the form of 0s and 1s. It is
difficult for us to write computer program directly in machine code. The programs are written mostly
in high-level languages, i.e. BASIC, C++, Python etc. A program written in any high-level programming
language (or written in assembly language) is called the Source Program or Source Code. The source
code cannot be executed directly by the computer. The source code must be converted into
machine language to be executed. The program translated into machine code is known as Object
Program or Object code. The special translator system software that is used to translate the program
written in high-level language (or Assembly language) into machine code is called language
processor or translator program. The language processors can be any of the following three types-
Assembler, Compiler and Interpreter.
Assembler
The Assembler is used to translate the program written in Assembly language into machine code.
The input of Assembler is a source program that contains assembly language instructions. The
output generated by assembler is the object code or machine code understandable by the
computer.
Compiler:
The language processor that translates the complete source program as a whole in one go into
machine code is called compiler. Some of the examples are C and C++ compilers. The program
translated into machine code is called the object program.
5|Page
C++/Python Translator/ Machine
Language Compiler Code
Interpreter
The language processor that translates a single statement or line by line of source program into
machine code and executes it immediately before moving on to the next line is called an Interpreter.
If there is an error in the statement the interpreter terminates its translating process at that
statement and displays an error message.
The difference between a compiler and an interpreter is that a compiler translates the complete
source program as a whole in one go into machine code whereas an interpreter translates a single
statement or line by line of source program into machine code.
An Operating system is the most important system software. It is a set of programs that control and
supervise the hardware of a computer and also provide services to application software,
programmers and users. It manages all hardware and software, input, output and processing
activities within the computer system, the flow of information to and from the processor, sets
priorities for handling different tasks, and so on. Without operating system a computer cannot do
anything useful.
A user cannot communicate directly with the computer hardware, so the operating system acts as
an interface between the user and the computer hardware.
Some of the popular operating systems used in personal computers are DOS, Windows, Unix, Linux,
Solaris, etc.
Operating system provides a platform, on top of which, other programs, called application programs
can run. it acts as an interface between the computer and the user. It is designed in such a manner
that it operates, controls and executes various applications on the computer. It also allows the
computer to manage its own resources such as memory, monitor, keyboard, printer etc.
Boolean algebra: Devised for dealing mathematically with philosophical propositions which have
ONLY TWO possible values: TRUE or FALSE, Light ON or OFF.
6|Page
Switch
Bulb
In Boolean algebra the TWO possible conditions can be represented by the DIGITS “0” and “1”.
1. NOT GATE: X X
The NOT gate has one input called X and one output called X (called X complement or Bar). Here,
whatever the input becomes opposite. It means if input is 0, then output becomes 1 or if input is 1,
then output becomes 0.
Truth Table:
X X
0 1
1 0
2. AND GATE:
The AND gate performs a logical “and” operation on two inputs, X and Y. The idea behind an AND
gate is “If X AND Y are both 1, then Q(output) should be 1.”
Truth table:
X Y Q
0 0 0
0 1 0
1 0 0
1 1 1
3. OR GATE:
The next gate is an OR gate. Its basic idea is, “If X is 1 OR Y is 1 (or both are 1), then Q is 1”
Truth table:
X Y Q
7|Page
0 0 0
0 1 1
1 0 1
1 1 1
4. NAND GATE: OR
The NAND gate is simply combinations of an AND gate with a NOT gate.
Truth table:
X Y Q
0 0 1
0 1 1
1 0 1
1 1 0
5. NOR GATE: OR
Truth table:
X Y Q
0 0 1
0 1 0
1 0 0
1 1 0
6. XOR GATE:
The next gate is an XOR gate. Here the output will be one only when all the inputs are same. For
example for two inputs X and Y, if inputs are 0 and 0 or 1 and 1, the output will be 1.
Truth table:
X Y Q
0 0 1
0 1 0
1 0 0
1 1 1
8|Page
DE MORGAN’S LAWS :
1. A.B = A + B THIS STATES THAT THE INVERSE (i.e.) OF A PRODUCT [AND] IS EQUAL TO THE SUM
[OR] OF THE COMPLEMENTS
2. A + B = A . B
THIS STATES THAT THE INVERSE (COMPLEMENT) OF A SUM [OR] IS EQUAL TO THE PRODUCT [AND]
OF THE COMPLEMENTS
1. (A.B)’ = A’ + B’
A B AB (A.B)’ A’ B’ A’+B’
0 0 0 1 1 1 1
0 1 0 1 1 0 1
1 0 0 1 0 1 1
1 1 1 0 0 0 0
2. (A+B)’ = A’. B’
Draw the logic circuits of the following AND also proof by truth tables:
1. F=(A+B)(A.B)’
2. F=A’.B+A.B’
3. F=(A’.B’)’=A+B
4. F=(A’+B’)’=A.B
5. F=((A.B)’)’=A.B
6. F=((A+B)’)’=A+B
1. (A.B)’ = A’ + B’
2. (A+B)’ = A’. B’
ASCII stands for (American Standard Code for Information Interchange). ASCII is an 8-bit
encoding. Bytes (8 bits) are frequently used to hold individual characters in a text document. In the
9|Page
ASCII character set, each binary value between 0 and 127 is given a specific character. Most
computers extend the ASCII character set to use the full range of 256 characters available in a byte.
ISCII stands for Indian Script code for Information Interchange. ISCII is a coding scheme for
representing various writing systems of India. ISCII is an 8-bit encoding. It encodes main Indic scripts
and a Roman transliteration. The supported scripts are: Assamese, Bengali, Devanagari, Gujarati,
Gurmukhi, Kannada, Malayalam, Oriya, Tamil, and Telugu. ISCII has not been widely used outside
certain government institutions and has now been rendered largely obsolete by UNICODE.
UNICODE is an information technology (IT) standard for the consistent encoding, representation, and
handling of text expressed in most of the world’s writing systems. The standard is maintained by the
Unicode Consortium, and as of March 2020, there is a repertoire of 1,43,859 characters with
Unicode 13.0 covering 154 modern and historic scripts, as well as multiple symbol sets and emoji.
UNICODE can be implemented by different character encodings. The Unicode standard defines UTF-
8, UTF-16 and UTF-32 and several other encodings are in use.
Each number system has a base also called a Radix. A decimal number system is a system of base 10;
binary is a system of base 2; octal is a system of base 8; and hexadecimal is a system of base 16.
What are these varying bases? The answer lies in what happens when we count up to the maximum
number that the numbering system allows. In base 10, we can count from 0 to 9, that is,10 digits.
1) Binary to Decimal:
Example
Convert the Binary number 101011 to its Decimal equivalent.
1 * 25 + 0 * 24 + 1 * 23 + 0 * 22 + 1 * 21 + 1 * 20
32 + 0 + 8 + 0 +2 + 1 = (43)10
Example
Convert the Binary number 1001 to its Decimal equivalent.
1 * 23 + 0 * 22 + 0 * 21 + 1 * 20
8 + 0 + 0 + 1 = (9)10
10 | P a g e
Q. Convert Binary number 111010 to its decimal equivalent
Example
Convert (11011.101)2 to decimal
24 23 22 21 . 20 2-1 2-2 2-3
11011101
= (1 x 24)+ (1 x 23)+ (0 x 22)+ (1 x 21)+ (1 x 20)+ (1 x 2-1)+ (0 x 2-2)+ (1 x 2-3)
= 16+8+0+2+1+0.5+0+0.125
= (27.625)10
3) Decimal to Binary:
Example
Convert the Decimal number 125 into its Binary equivalent.
125 / 2 = 62 (1-Remainder)
62 / 2 = 31 (0)
31 / 2 = 15 (1)
15 / 2 = 7 (1)
7/2=3 (1)
3/2=1 (1)
1/2=0 (1)
Answer: (1111101)2
Example
Convert (0.75)10 to binary
Multiply the given fraction by 2. Keep the integer in the product as it is and multiply
the new fraction in the product by 2. Continue the process till the required number of decimal places
or till you get zero in the fraction part. Record the integers in the
products from top to bottom.
Given fraction 0.75
Multiply 0.75 by 2 1.50
Multiply 0.50 by 2 1.00
Reading the integers from top to bottom 0.75 in decimal number system is 0.11 in binary number
system.
Example
Convert (105.15)10 to binary
Let us convert 105 first.
(105)10 = (1101001)2
Let us convert (0.15) 10
Multiply 0.15 by 2 0.30
Multiply 0.30 by 2 0.60
Multiply 0.60 by 2 1.20
11 | P a g e
Multiply 0.20 by 2 0.40
Multiply 0.40 by 2 0.80
Multiply 0.80 by 2 1.60
Reading the integers from top to bottom (0.15)10 = (0.001001)2
Final result (105.15) 10 = (1101001.001001)2
5) Decimal to Octal:
Example
Convert the Decimal number 125 into its Octal equivalent.
125 / 8 = 15 5
15/ 8 = 1 7
1/8 =0 1
Answer: (175)8
7) Octal to Decimal:
Method to convert Octal to Decimal:
1. Start at the rightmost bit.
2 . Take that bit and multiply by 8n where n is the current position beginning at 0 and
increasing by 1 each time. This represents the power of 8.
3. Sum each of the product terms until all bits have been used.
Example
Convert the Octal number 321 to its Decimal equivalent.
3 * 82 + 2 * 81 + 1 * 80
192+16+ 1 = (209)10
12 | P a g e
Q. Convert Octal number 321.75 into its Decimal equivalent
9) Decimal to Hexadecimal:
Example
Convert the Decimal number 300 into its hexadecimal equivalent.
300 / 16 = 18 12-(C)
18 / 16 = 1 2
1 / 16 = 0 1
Answer: (12C)16
13 | P a g e
Q. Convert the Hexadecimal number 5C1B.7D to Decimal.
Example
Convert the binary number 1000101 to its Hexadecimal equivalent.
0100 0101 Note that we needed to insert a 0 to the left of 100.
45
Answer: (45)16
In case of a fractional binary number form groups of four bits on each side of decimal point. Then
replace each group by its corresponding hexadecimal number.
Example
Convert (11100.1010)2 to hexadecimal equivalent.
0001 1100 . 1010
1C.A
Answer : (1C.A)16
14 | P a g e
Example
Convert the Octal number (742)8 to its Binary equivalent.
7|4|2
111 | 100 | 010
Answer: (111100010)2
The following table summarizes the number representation in decimal, binary, octal and
hexadecimal number system:
15 | P a g e
Binary Representation of Integers: (NOT IN THE SYLLABUS)
Binary number can be represented only by using 0’s and 1’s, but can not use the sign (-) to denote
the negative number or sign (+) to denote the positive number. So it must be either 0 or 1. There are
three methods to represent binary number. They are
(i) Sign and magnitude method
(ii) One’s complement method
(iii) Two’s complement method
16 | P a g e
Q. Represent -68 in one’s complement method (1 byte representation)
17 | P a g e