DATA:
The collection of facts and figures is called data. For example names of students, address of employee, etc.
data is drive from datum which means facts. Data may be individual character, combination of characters, numbers, combination of characters and numbers, pictures, sound, movies, combination of two or more of above and so on Input given by the user is called data Data is raw material given to the computer by input devices
Liaquat Ali Rahoo (IMSA) 1
INFORMATION:
Any type of proceed data is called information or the meaningful data is called information.
After processing the data it returns the information that is also called output .
Information is processed form of data for example Muhammad Ali, 8 , 614 , 700 , A1 is a form of data with five data items, while Muhammad Ali, a student of 8th class got 614 marks out of 700 and secured A1 grade is an information. Information is retuned by the computer through output devices
Transistors
Liaquat Ali Rahoo (IMSA) 6
Text Codes
Text code is a standard way to code the data in bits It means that each character, symbol must have a standard binary code that can be recognized by programmers in any area of world There are various standard codes which are used time to time in computer systems Like BCD (Binary Coded Decimal), EBCDIC (Extended Binary Coded Decimal Interchange Code), ASCII (American Standard Code for Information interchange) and finally Unicode
Liaquat Ali Rahoo (IMSA) 7
Text Codes
BCD: BCD defined by IBM for one of its early computers It used 6 bits to recognize a character Total of 64 distinguished characters could be recognized by this coding scheme, because 26 = 64 It could work only on upper case letters, numbers and some symbols
Liaquat Ali Rahoo (IMSA) 8
Text Codes
EBCDIC: * This scheme used eight bits to code a single character * It could recognize 256 distinguished characters * It is still used in mainframe and minicomputers
Text Codes
ASCII: * Now a days most common coding scheme being used in all type of computers is ASCII * It was presented by ANSI (American National Standard Institute) * There are two versions of ASCII one is standard ASCII that uses 7 bits among which 0-31 and 127 characters are control characters, 32 to 64 characters are special characters, 65 96 are upper case letters and some symbols and from 97 126 are lower case letters and some
Liaquat Ali Rahoo (IMSA) 10
Text Codes
* The second version of ASCII is extended ASCII which uses 8 bits to recognize a character. * 0-127 are standard characters and from 128-255 are available foe other languages to include their character sets.
11
Text Codes
ASCII Code 00000000 00001000 00001101 00011011 00100000 00100100 Decimal 0 8 13 27 32 36 Character NULL Back space Enter Escape Space $
12
Text Codes
ASCII Code 00101000 00101011 00101110 00110001 00111001 00111011
Liaquat Ali Rahoo (IMSA)
Decimal 40 43 48 49 57 59
Character ( + . 1 9 :
13
Text Codes
ASCII Code 00111111 01000001 01011010 01011101 01100001 01111010 01111101 01111111
Liaquat Ali Rahoo (IMSA)
Unicode
This scheme now will be the choice of most computer systems due to the development of the internet This uses 16 bits or two bytes to represent a character Total of 65,536 characters can be represented by this scheme This code is compatible with ASCII, first 256 characters are same as ASCII Other codes are available for any language to recognize their character sets Because 65,536 characters are enough to represent the character almost all of the languages of the world
15
16
Double Word: Four consequent bytes (32 bits) are called double word. Kilo Byte: Kilo Byte is a big unit of memory. It is represented by KB which contains 1024 bytes. i.e 1 KB =1024 Bytes 640 KB = 1024* 640 = 655360 bytes Mega Byte: Mega Byte is a largest unit of memory. It is represented by MB which contains 1024 KB.
i.e 1 MB =1024 KB
1 MB = 1024 * 1024 = 1048576 bytes
Liaquat Ali Rahoo (IMSA) 17
Gega Byte: It is very very big unit of storage capacity. It is represented by GB which contains 1024 MB. i.e 1 GB =1024 MB 1 GB = 1024 * 1024 *1024 = 1073741824 Tera Byte: Another huge measuring unit is called Tera byte. It is represented by TB which contains 1024 GB. i.e 1 TB =1024 GB
18