Summary

This document discusses data representation in computer systems, focusing on how various data types (numbers, text, images, and sound) are encoded using binary patterns. It explains character sets like ASCII and Extended ASCII, highlighting the limitations of ASCII and the expansion to Extended ASCII. The document serves as a set of computer science notes.

Full Transcript

## Data Representation All data on a computer system is represented using binary patterns, which are sequences of 1s and 0s. ### Data Types * **Numbers** - by converting * Integer * Float * **Texts ** - using char set * String * Char * **Image** - by pixalating * Vector...

## Data Representation All data on a computer system is represented using binary patterns, which are sequences of 1s and 0s. ### Data Types * **Numbers** - by converting * Integer * Float * **Texts ** - using char set * String * Char * **Image** - by pixalating * Vector * Bitmap * **Sound** - by sound sampling ### Numbers Data Numbers data are encoded into a binary format to store in memory. ### Representing Texts * Texts are encoded with the use of character set. * Character set is a group of codes that assign to a character using a unique bit pattern. * Character sets are ASCII, Extended ASCII and Unicode. * Character code refers to a single character code in a character set or code page. * A character can be any of the following: * Letters - (upper and lower case letters have separate codes) * Punctuation - (e.g. ?/|\£$) * Numbers - (0 to 9) * Non-printing commands - (e.g. Enter, Delete, F1) * **Character code for numeric digits:** When a denary digit (from 0 to 9) is processed as a character, the computer uses the binary pattern of its character code, instead of the binary representation of that digit. * **Bit-patterns** are a combination of 1s and 0s that are used to represent data. The number of bits used in a representation will affect the number of bit-patterns available. * **You can make four bit-patterns with 2 bits**: * 00 * 01 * 10 * 11 ### ASCII * ASCII stands for American Standard Code for Information Interchange. * ASCII uses 7-bits of codes that can represent 128 different characters. ASCII is only used for the English language. ### Extended ASCII * Extended ASCII code is an 8-bit character set that represents 256 different characters. Extended ASCII is useful for European languages.

Use Quizgecko on...
Browser
Browser