Computer Codes – Notes

By Reacher

Updated on:

Follow us on Instagram

Follow Us

Computer Codes notes for competitive exams — BCD, ASCII, EBCDIC, Unicode & ISCII explained with comparisons and quick revision tables.

What are Computer Codes?

Computer Codes are systems used to represent characters, letters, numbers, and symbols in binary form (0s and 1s) so that a computer can store, process, and communicate data. Since a computer only understands binary language, every character typed on a keyboard is converted into a unique code internally.

Coding systems became necessary because computers needed a standard way to represent alphabets, digits, punctuation marks, and special symbols in electronic form.

Why Computer Codes are Needed

ReasonExplanation
StandardizationEnsures all computers interpret characters the same way
Data ExchangeAllows different systems/devices to share data correctly
StorageConverts human-readable characters into machine-storable binary form
Multilingual SupportEnables representation of characters from different languages

Major Computer Coding Systems

CodeFull FormBits UsedDetails
BCDBinary Coded Decimal4 bitsRepresents each decimal digit (0–9) using 4 binary bits
EBCDICExtended Binary Coded Decimal Interchange Code8 bitsDeveloped by IBM, supports 256 characters, used in mainframe computers
ASCIIAmerican Standard Code for Information Interchange7 bits (standard), 8 bits (extended)Most widely used code, supports 128/256 characters
UnicodeUniversal Character Encoding Standard16 bits (UTF-16), variable (UTF-8)Supports over 1,00,000 characters, covers almost all world languages
ISCIIIndian Script Code for Information Interchange8 bitsDeveloped in India to represent Indian language scripts (Devanagari, Tamil, etc.)

BCD (Binary Coded Decimal)

BCD represents each digit of a decimal number individually using 4 binary bits.

Example:

Decimal 25 in BCD:
2 = 0010
5 = 0101
So, 25 in BCD = 0010 0101

Note: This is different from converting the full decimal number into binary directly.

ASCII (American Standard Code for Information Interchange)

ASCII is the most commonly used character encoding system in computers and communication equipment.

TypeBitsCharacters Supported
Standard ASCII7 bits128 characters (0–127)
Extended ASCII8 bits256 characters (0–255)

ASCII covers English alphabets (uppercase and lowercase), digits (0–9), punctuation marks, and control characters.

Example: The ASCII value of capital letter A is 65, and for lowercase a it is 97.

EBCDIC (Extended Binary Coded Decimal Interchange Code)

EBCDIC was developed by IBM and is mainly used in IBM mainframe and midrange computer systems. It uses 8 bits and can represent up to 256 different characters. It is not compatible with ASCII, meaning data conversion is required when exchanging data between EBCDIC-based and ASCII-based systems.

Unicode

Unicode was developed to overcome the limitation of ASCII, which could only represent English characters. Unicode provides a unique number for every character regardless of the platform, program, or language.

FormatDescription
UTF-8Variable-length encoding (1 to 4 bytes), most widely used on the web
UTF-16Fixed 16-bit encoding
UTF-32Fixed 32-bit encoding

Unicode supports almost all writing systems in the world, including Hindi, Chinese, Arabic, and many more.

ISCII (Indian Script Code for Information Interchange)

ISCII is an 8-bit encoding scheme developed by the Government of India (Bureau of Indian Standards) for representing characters of Indian languages such as Hindi, Bengali, Tamil, Telugu, and others. It was later merged into the Unicode standard.

Difference Between ASCII, EBCDIC, and Unicode

FeatureASCIIEBCDICUnicode
Developed ByANSIIBMUnicode Consortium
Bits Used7/8 bits8 bits16 bits/variable
Characters Supported128/2562561,00,000+
Language SupportMainly EnglishMainly EnglishAll world languages
Common UsagePCs, InternetMainframesModern software, web, mobile

Important Related Terms

TermMeaning
Character SetComplete list of characters recognized by a coding system
Code PointA unique number assigned to a character in Unicode
Parity BitAn extra bit added to a code for error detection
Collating SequenceOrder in which characters are arranged (used for sorting)

Quick Revision Table (Most Asked Facts)

FactAnswer
Full form of BCDBinary Coded Decimal
Full form of ASCIIAmerican Standard Code for Information Interchange
Full form of EBCDICExtended Binary Coded Decimal Interchange Code
Full form of ISCIIIndian Script Code for Information Interchange
Bits used in standard ASCII7 bits
Bits used in extended ASCII8 bits
Bits used in EBCDIC8 bits
Coding system developed by IBMEBCDIC
Coding system supporting all world languagesUnicode
Coding system developed for Indian languagesISCII
Bits used to represent one decimal digit in BCD4 bits
Most widely used encoding on the webUTF-8 (Unicode)

Leave a Comment