ASCII Code: Understanding the Seven-Bit Character Representation System, Exercises of Computer Engineering and Programming

The american standard code for information interchange (ascii) is a character representation system that allows digital devices to communicate and process text. The basics of ascii, including its structure, printable characters, and the differences between uppercase and lowercase letters. It also discusses the importance of fast case conversion for search algorithms.

Typology: Exercises

2011/2012

Uploaded on 07/28/2012

dewansh
dewansh 🇮🇳

4.4

(10)

89 documents

1 / 1

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
American Standard Code for Information Interchange
Like other character representation computer codes, ASCII specifies a correspondence
between digital bit patterns and the glyphs (i.e., symbols) of a written language. This
allows digital devices to communicate with each other and to process, store, and
communicate character-oriented information
Except for a few of the ASCII control characters that prescribe some elementary line-
oriented formatting, ASCII does not define any mechanism for describing the structure
or appearance of text within a document.
ASCII is, strictly, a seven-bit code, meaning it uses patterns of seven binary digits (a
range of 0 to 127 decimal) to represent each character. In seven-bit ASCII encoding, the
eighth bit is commonly used as a parity bit for error checking on communication lines or
for other device-specific functions.
There are 95 printable ASCII characters, numbered 32 to 126 (decimal) in the original code.
Structural features
The digits 09 are represented with their values in binary prefixed with 0011 (this means
that converting BCD to ASCII is simply a matter of taking each BCD nibble separately
and prefixing 0011 to it).
Lowercase and uppercase letters only differ in bit pattern by a single bit, simplifying
case conversion to a range test (to avoid converting characters that are not letters) and a
single bitwise operation. Fast case conversion is important because it is often used in case-
ignoring search algorithms.
In contrast with EBCDIC, the lowercase and uppercase letters each occupy 26 consecutive
positions.
docsity.com

Partial preview of the text

Download ASCII Code: Understanding the Seven-Bit Character Representation System and more Exercises Computer Engineering and Programming in PDF only on Docsity!

American Standard Code for Information Interchange

Like other character representation computer codes, ASCII specifies a correspondence between digital bit patterns and the glyphs (i.e., symbols) of a written language. This allows digital devices to communicate with each other and to process, store, and communicate character-oriented information Except for a few of the ASCII control characters that prescribe some elementary line- oriented formatting, ASCII does not define any mechanism for describing the structure or appearance of text within a document. ASCII is, strictly, a seven-bit code, meaning it uses patterns of seven binary digits (a range of 0 to 127 decimal) to represent each character. In seven-bit ASCII encoding, the eighth bit is commonly used as a parity bit for error checking on communication lines or for other device-specific functions. There are 95 printable ASCII characters, numbered 32 to 126 (decimal) in the original code.

Structural features

The digits 0–9 are represented with their values in binary prefixed with 0011 (this means that converting BCD to ASCII is simply a matter of taking each BCD nibble separately and prefixing 0011 to it). Lowercase and uppercase letters only differ in bit pattern by a single bit, simplifying case conversion to a range test (to avoid converting characters that are not letters) and a single bitwise operation. Fast case conversion is important because it is often used in case- ignoring search algorithms. In contrast with EBCDIC, the lowercase and uppercase letters each occupy 26 consecutive positions.

docsity.com