11th Cs First Unit
11th Cs First Unit
CLASS 11TH
CODE NO. 083
UNIT I
Computer Systems and Organisation
The computer is a device that makes our work easy. The computer
is a device that helps us to complete our tasks easily and
speedily.computers don’t understand our language or the words like
“hello, good morning, discipline, etc”. They only understand binary
language whose vocabulary contains only two letters or states or
symbols i.e. 0 and 1, True and False, On and Off. That language is
known as Binary Language/Machine Language.
(i) Random Access Memory (RAM) and (ii) Read Only Memory
(ROM).
RAM is volatile, i.e., as long as the power is supplied to the
computer, it retains the data in it. But as soon as the power supply
is turned off, all the contents of RAM are wiped out. It is used to
store data temporarily while the computer is working. Whenever the
computer is started or a software application is launched, the
required program and data are loaded into RAM for processing. RAM
is usually referred to as main memory and it is faster than the
secondary memory or storage devices. On the other hand,
ROM is non-volatile, which means its contents are not lost even
when the power is turned off. It is used as a small but faster
permanent storage for the contents which are rarely changed. For
example, the startup program (boot loader) that loads the operating
system into primary memory, is stored in ROM
● Cache Memory- RAM is faster than secondary storage, but not as fast as
a computer processor. So, because of RAM, a CPU may have to slow
down. To speed up the operations of the CPU, a very high speed memory
is placed between the CPU and the primary memory known as cache. It
stores the copies of the data from frequently accessed primary memory
locations, thus, reducing the average time required to access data from
primary memory. When the CPU needs some data, it first examines the
cache. In case the requirement is met, it is read from the cache, otherwise
the primary memory is accessed.
● Bit =1 bit
● Nibble = 4 bits
● Byte= 8 bits
● Kilo Byte =1024 bytes (B)
● Mega Byte= 1024 Kilo Bytes(KB)
● Giga Byte = 1024 Mega Bytes(MB)
● Tera Byte = 1024 Giga Bytes(GB)
● Peta Byte = 1024 Tera Bytes(TB)
● EXA Byte = 1024 Peta Bytes(PB)
● Zetta Byte =1024 EXA Bytes(EB)
● Yotta Byte = 1024 Zetta Bytes(ZB
Types of Software-
System Software
Application Software
Operating System-
An Operating System can be defined as an interface between user
and hardware. It is responsible for the execution of all the
processes, Resource Allocation, CPU management, File Management
and many other tasks.
The User Interface (UI) is how you interact with the OS. It’s the
bridge between you and your computer’s inner workings.
● Graphical User Interface (GUI): This is the visual part of
the OS, with windows, icons, and menus that you click on. It’s
like the dashboard of a car, with buttons and displays that
make it easy to control everything. Examples include
Windows, macOS, and many Linux distributions.
● Command Line Interface (CLI): This is a text-based way to
interact with the OS. You type commands into a terminal or
command prompt to perform tasks. It’s like using a secret
code to control things behind the scenes. While it might look
old-school, it’s powerful for advanced users.
● Touch Interface: Found on tablets and smartphones, it
allows you to interact with the OS through touch gestures like
tapping, swiping, and pinching. It’s like the touchscreen in a
car where you can control navigation and media with your
fingers.
AND Gate
In digital electronics, the AND gate is one of the basic logic gate that
performs the logical multiplication of inputs applied to it. It
generates a high or logic 1 output, only when all the inputs applied
to it are high or logic 1. Otherwise, the output of the AND gate is low
or logic 0.
OR Gate
In digital electronics, there is a type of basic logic gate which
produces a low or logic 0 output only when its all inputs are low or
logic 0. For all other input combinations, the output of the OR gate is
high or logic 1.
NOT Gate
In digital electronics, the NOT gate is another basic logic gate used
to perform the complement of an input signal applied to it. It takes
only one input and one output. The output of the NOT gate is
complement of the input applied to it. Therefore, if we apply a low or
logic 0 output to the NOT gate is gives a high or logic 1 output and
vice-versa. The NOT gate is also known as inverter, as it performs
the inversion operation.
NOR Gate
The NOR gate is a type of universal logic gate that can take two or
more inputs but one output. It is basically a combination of two
basic logic gates i.e., OR gate and NOT gate.
NAND Gate
In digital electronics, the NAND gate is another type of universal
logic gate used to perform logical operations. The NAND gate
performs the inverted operation of the AND gate.
XOR Gate
In digital electronics, there is a specially designed logic gate named,
XOR gate, which is used in digital circuits to perform modulo sum.
De Morgan’s Laws
These laws help simplify logical expressions and are like shortcuts
for combining ANDs and ORs with NOTs:
● First Law: NOT (A AND B) = (NOT A) OR (NOT B)
○ If you don’t like both pizza AND ice cream,
you’re saying you don’t like pizza OR you don’t
like ice cream.
● Second Law: NOT (A OR B) = (NOT A) AND (NOT B)
○ If you don’t like pizza OR ice cream, you’re
saying you don’t like pizza AND you don’t like
ice cream.
Logic Circuits
Number Systems
Number systems are like different languages for expressing
numbers. Just as you might speak English, Spanish, or French,
computers use various number systems to handle and process data.
Here’s a breakdown of the main ones:
● Binary (Base-2): This is the language of computers. It uses
only two digits, 0 and 1. Every number in binary is a
combination of these two digits. For example, the binary
number 1010 is the same as 10 in decimal. It’s like a series of
on/off switches that computers use to store data.
● Octal (Base-8): This system uses eight digits, from 0 to 7.
Each digit in octal represents three binary digits (bits). For
example, the octal number 17 is the same as 1111 in binary,
and 15 in decimal. It’s like a shortcut that groups binary
numbers into smaller chunks.
● Decimal (Base-10): This is the number system most
people use daily. It uses ten digits, from 0 to 9. For example,
the number 254 in decimal is just the usual numbers you see
on a calculator. It’s like the everyday language for numbers.
● Hexadecimal (Base-16): This system uses sixteen symbols
—0-9 and A-F (where A is 10, B is 11, etc.). For example, the
hexadecimal number 1A is the same as 26 in decimal and
11010 in binary. It’s like a mix of numbers and letters, often
used in programming and digital electronics.
Conversions-
Binary to Decimal
In this conversion, a number with base 2 is converted into number with base 10. Each
binary digit here is multiplied by decreasing power of 2. Let us see one example:
We need to multiply each binary digit with the decreasing power of 2. That is;
1×24+1×23+0x22+1×21+1×20
=16+8+0+2+1
=27
Octal to Decimal
In this conversion, a number with base 8 is converted into number with base 10. Each
digit of octal number here is multiplied by decreasing power of 8. Let us see one
example:
Here, we have to multiply each octal digit with the decreasing power of 8, such
as;
1×82+2×81+1×80
=64+16+1
=81
Hexadecimal to Decimal
In this conversion, a number with base 16 is converted into number with base 10. Each
digit of hex number here is multiplied by decreasing power of 16. Let us understand with
the help of an example:
1×161+2×160
=16+2
=18
Decimal to Binary
To convert a decimal number into an equivalent binary number we have to divide the
original number system by 2 until the quotient is 0, when no more division is possible.
The remainder so obtained is counted for the required number in the order of LSB
(Least significant bit) to MSB (most significant bit). Let us go through the example.
Divide 26 by 2
13/2 = 6 Remainder →1
6/2 = 3 Remainder →0
3/2 = 1 Remainder →1
½ = 0 Remainder →1 (LSB)
Decimal to Octal
Here the decimal number is required to be divided by 8 until the quotient is 0. Then, in
the same way, we count the remainder from LSB to MSB to get the equivalent octal
number.
Example: Convert 6510 into an octal number.
Divide by 8
8/8 = 1 Remainder →0
⅛ = 0 Remainder →1 (LSB)
Decimal to Hexadecimal
The given decimal number here is divided by 16 to get the equivalent hex. The division
of the number continues until we get the quotient 0.
Divide by 16
7/16 = 0 Remainder → 7