class 11 computer science ch-2 notes with questions an pyq
class 11 computer science ch-2 notes with questions an pyq
Introduction
The mechanism of converting data into an equivalent cipher using
specific code is called encoding.
When a key on the keyboard is pressed, it is internally mapped to a
unique code, which is further converted to binary.
Example 2.1 When the key ‘A’ is pressed (Figure 2.1), it is internally
mapped to a decimal value 65 (code value), which is then converted
to its equivalent binary value for the computer to understand.
2.1.1 American Standard Code for Information Interchange
(ASCII)
Encoding scheme ASCII was developed for standardising the
character representation. ASCII is still the most commonly used
coding scheme.
• ASCII value of D is 68 and its equivalent 7-bit binary code =
1000100
• ASCII value of A is 65 and its equivalent 7-bit binary code =
1000001
2.1.3 Unicode
A standard called UNICODE has been developed to incorporate all
the characters of every written language of the world. UNICODE
provides a unique number for every character, irrespective of device
(server, desktop, mobile), operating system (Linux, Windows, iOS) or
software application (different browsers, text editors, etc.).
Commonly used UNICODE encodings are UTF-8, UTF-16 and UTF-32.
It is a superset of ASCII, and the values 0–128 have the same
character as in ASCII.
2.2 Number System
A number system is a method to represent (write) numbers. Every
number system has a set of unique characters or literals. The count
of these literals is called the radix or base of the number system