SlideShare a Scribd company logo
3
Most read
9
Most read
14
Most read
DATA REPRESENTATION IN
COMPUTERS
Units
 8 bits = 1 byte
 1024 bytes = 1 kilobyte
 1024 kilobytes = 1 megabyte
 1024 megabytes = 1 gigabyte
 1024 gigabytes = 1 terabyte
Four bits, half a byte, is called a nibble
Denary to Binary conversion
Denary to Binary conversion
11100
1
Start from the bottom and get the reminders
00000011 is binary for 3 but so is 11. You
do not need the leading zeros for it to be a
valid number but we tend to write groups of
8 bits because computers usually store
data in bytes.
Addition and Subtraction in
binary
10010+101
10101100 + 00010001
00101101+ 10000101
00101101+ 10000111
What is the biggest decimal number you
can store using:
• 4 bits?
• 2 bytes?
Addition and Subtraction in
binary
11111100 + 00001111
If you cannot represent the number in that
amount of space because it is too big, then we
get overflow.
8 bits is 255
Addition and Subtraction in
binary
11111100 + 00001111
If you cannot represent the number in that
amount of space because it is too big, then we
get overflow.
8 bits is 255
Hexadecimal (hex)
8 bits is 255
Hexadecimal (hex)
8 bits is 255
1011100
Separate them by 4 units:
0101 1100
5 12
5C in hex
Hexadecimal (hex)
8 bits is 255
182
182/16=11 remainder 6
11=B in hexa
182 in denary=B6 in hex
Characters
 PCs mainly uses ASCII, American
Standard Code for Information
Interchange
 ASCII uses 7bits
 From 0000000 to 1111111
 Can represent up to 128 characters
 Unicode: or 32 bits per character
so can code or 4,294,967,296
 EBCDIC(pronounced eb-sid-ic):
Extended Binary Coded Decimal
Interchange Code,
 8-bit encoding.
 256 different characters in its character set.
Images
 Computer to interpret an image and
rebuild the picture it must know
some other things about the data
file.
 Picture’s resolution is 8x11 pixels and
the colour depth is 2 bits per pixel.
 Data about the data file itself is called
metadata.
 The number of bits per pixel is
referred to as the colour depth.
Images
 To store an image on a computer
the image is broken down into very
small elements called .
Sound
 Sound waves are analogue,
which means continuously
changing.
 In order to store sound waves
in the computer these signals
have to be converted in to
numerical values(binaries).
 This is achieve with
Analogue-to-Digital Converter
(ADC).
For sound waves, the analogue
signal is converted as follows:
• Measure the amplitude (height of
wave) at regular intervals
(sampling)
• Store the values as a series of
binary numbers in a file
Quality of Sound
 Sample Resolution
 The number of bits used to store each
sample.
 The more bits that are used, the better the
accuracy of the sound file.
 Sample Interval
 The time period between taking
samples/measurements.
 The more frequently the sound is sampled,
the better the quality of playback.
Synthesis:
Sound synthesis is when the sound is recreated
from this file by the computer, and played
through speakers.
Instructions
 Each type of processor has its own
type of machine code – a specific
set of instructions that it can
execute. This is called an
instruction set.
The group of bits that represents the operation is
called the opcode
If the programming language allowed us to specify how many steps to move
RIGHT 90 (Turn 90° to the right)
MOVE 2
Instructions
If the programming language allowed us to specify how many steps to
move
RIGHT 90 (Turn 90° to the right)
MOVE 2
In the program, number steps to move can be stored in a variable.
Move numSteps
An opcode, which is the binary number representing the operation to be carried
out.
e.g. RIGHT, MOVE
The operand (data) that the operation will use.
The data can be an actual value (e.g. 5) or an address in memory where the data
can be found (a variable).
Data Representation in Computers
Data Representation in Computers

More Related Content

PPT
Computer Systems
 
PPT
Learning&Teaching Systems Ppt
PPT
Learning& Teaching Systems Ppt
PPT
Learning&Teaching Systems Ppt
PPT
New Computer Systems
PPT
Topic 1 Data Representation
PPT
Topic 1 Data Representation
PPT
[1] Data Representation
Computer Systems
 
Learning&Teaching Systems Ppt
Learning& Teaching Systems Ppt
Learning&Teaching Systems Ppt
New Computer Systems
Topic 1 Data Representation
Topic 1 Data Representation
[1] Data Representation

Similar to Data Representation in Computers (20)

DOCX
Data representation in a computer
PPTX
ARCsxfhcjkvmnfxcgbfgcxhvbxdfzxcgbfxgcvbnx3.pptx
ODP
Number systems
PPTX
2nd Quarter CSS Week 1.pptx
PPTX
Chapter 2
PPT
Chapter 3-Data Representation in Computers.ppt
PDF
Mojza-OL-IG-Computer-Science-Paper 1 .pdf
PPT
Software development slides
PPTX
AS_Chapter_1_Information_Representation.pptx
 
PDF
1.1.1 binary systems By Zak
PDF
The Number System( Introduction to Binary System)
PPT
Data-Representation about programming.ppt
PPT
Network Slides
PPT
Computer Systems Data Representation
PDF
Analog to digital conversion
PPT
PPT
PPT
MathinaDigitalAgePowerPoin1111224254.ppt
PPT
MathinaDigitalAgePowerPoint slideshare.ppt
PPTX
Class2
Data representation in a computer
ARCsxfhcjkvmnfxcgbfgcxhvbxdfzxcgbfxgcvbnx3.pptx
Number systems
2nd Quarter CSS Week 1.pptx
Chapter 2
Chapter 3-Data Representation in Computers.ppt
Mojza-OL-IG-Computer-Science-Paper 1 .pdf
Software development slides
AS_Chapter_1_Information_Representation.pptx
 
1.1.1 binary systems By Zak
The Number System( Introduction to Binary System)
Data-Representation about programming.ppt
Network Slides
Computer Systems Data Representation
Analog to digital conversion
MathinaDigitalAgePowerPoin1111224254.ppt
MathinaDigitalAgePowerPoint slideshare.ppt
Class2
Ad

More from Sajitha Pathirana (12)

PPSX
Basics of Java.ppsx
PPTX
Programming Languages
PPTX
PPTX
PPTX
Handling Data in Algorithm
PPTX
PPTX
Pseudocode
PPTX
Communications and Networking
PPTX
PPTX
Logical Operators
PPTX
Fundamentals of computer systems
PPTX
Flow Charts
Basics of Java.ppsx
Programming Languages
Handling Data in Algorithm
Pseudocode
Communications and Networking
Logical Operators
Fundamentals of computer systems
Flow Charts
Ad

Recently uploaded (20)

PPTX
CHAPTER 2 - PM Management and IT Context
PPTX
Lecture 3: Operating Systems Introduction to Computer Hardware Systems
PDF
Odoo Companies in India – Driving Business Transformation.pdf
PDF
Claude Code: Everyone is a 10x Developer - A Comprehensive AI-Powered CLI Tool
PDF
Adobe Illustrator 28.6 Crack My Vision of Vector Design
PDF
Internet Downloader Manager (IDM) Crack 6.42 Build 41
PDF
Audit Checklist Design Aligning with ISO, IATF, and Industry Standards — Omne...
PDF
Understanding Forklifts - TECH EHS Solution
PPTX
Agentic AI Use Case- Contract Lifecycle Management (CLM).pptx
PDF
Design an Analysis of Algorithms I-SECS-1021-03
PDF
Navsoft: AI-Powered Business Solutions & Custom Software Development
PPTX
ai tools demonstartion for schools and inter college
PPTX
Agentic AI : A Practical Guide. Undersating, Implementing and Scaling Autono...
PPTX
VVF-Customer-Presentation2025-Ver1.9.pptx
PDF
Internet Downloader Manager (IDM) Crack 6.42 Build 42 Updates Latest 2025
PPTX
Online Work Permit System for Fast Permit Processing
PDF
SAP S4 Hana Brochure 3 (PTS SYSTEMS AND SOLUTIONS)
PDF
medical staffing services at VALiNTRY
PDF
Upgrade and Innovation Strategies for SAP ERP Customers
PDF
Softaken Excel to vCard Converter Software.pdf
CHAPTER 2 - PM Management and IT Context
Lecture 3: Operating Systems Introduction to Computer Hardware Systems
Odoo Companies in India – Driving Business Transformation.pdf
Claude Code: Everyone is a 10x Developer - A Comprehensive AI-Powered CLI Tool
Adobe Illustrator 28.6 Crack My Vision of Vector Design
Internet Downloader Manager (IDM) Crack 6.42 Build 41
Audit Checklist Design Aligning with ISO, IATF, and Industry Standards — Omne...
Understanding Forklifts - TECH EHS Solution
Agentic AI Use Case- Contract Lifecycle Management (CLM).pptx
Design an Analysis of Algorithms I-SECS-1021-03
Navsoft: AI-Powered Business Solutions & Custom Software Development
ai tools demonstartion for schools and inter college
Agentic AI : A Practical Guide. Undersating, Implementing and Scaling Autono...
VVF-Customer-Presentation2025-Ver1.9.pptx
Internet Downloader Manager (IDM) Crack 6.42 Build 42 Updates Latest 2025
Online Work Permit System for Fast Permit Processing
SAP S4 Hana Brochure 3 (PTS SYSTEMS AND SOLUTIONS)
medical staffing services at VALiNTRY
Upgrade and Innovation Strategies for SAP ERP Customers
Softaken Excel to vCard Converter Software.pdf

Data Representation in Computers

  • 2. Units  8 bits = 1 byte  1024 bytes = 1 kilobyte  1024 kilobytes = 1 megabyte  1024 megabytes = 1 gigabyte  1024 gigabytes = 1 terabyte Four bits, half a byte, is called a nibble
  • 3. Denary to Binary conversion
  • 4. Denary to Binary conversion 11100 1 Start from the bottom and get the reminders 00000011 is binary for 3 but so is 11. You do not need the leading zeros for it to be a valid number but we tend to write groups of 8 bits because computers usually store data in bytes.
  • 5. Addition and Subtraction in binary 10010+101 10101100 + 00010001 00101101+ 10000101 00101101+ 10000111 What is the biggest decimal number you can store using: • 4 bits? • 2 bytes?
  • 6. Addition and Subtraction in binary 11111100 + 00001111 If you cannot represent the number in that amount of space because it is too big, then we get overflow. 8 bits is 255
  • 7. Addition and Subtraction in binary 11111100 + 00001111 If you cannot represent the number in that amount of space because it is too big, then we get overflow. 8 bits is 255
  • 9. Hexadecimal (hex) 8 bits is 255 1011100 Separate them by 4 units: 0101 1100 5 12 5C in hex
  • 10. Hexadecimal (hex) 8 bits is 255 182 182/16=11 remainder 6 11=B in hexa 182 in denary=B6 in hex
  • 11. Characters  PCs mainly uses ASCII, American Standard Code for Information Interchange  ASCII uses 7bits  From 0000000 to 1111111  Can represent up to 128 characters  Unicode: or 32 bits per character so can code or 4,294,967,296  EBCDIC(pronounced eb-sid-ic): Extended Binary Coded Decimal Interchange Code,  8-bit encoding.  256 different characters in its character set.
  • 12. Images  Computer to interpret an image and rebuild the picture it must know some other things about the data file.  Picture’s resolution is 8x11 pixels and the colour depth is 2 bits per pixel.  Data about the data file itself is called metadata.  The number of bits per pixel is referred to as the colour depth.
  • 13. Images  To store an image on a computer the image is broken down into very small elements called .
  • 14. Sound  Sound waves are analogue, which means continuously changing.  In order to store sound waves in the computer these signals have to be converted in to numerical values(binaries).  This is achieve with Analogue-to-Digital Converter (ADC). For sound waves, the analogue signal is converted as follows: • Measure the amplitude (height of wave) at regular intervals (sampling) • Store the values as a series of binary numbers in a file
  • 15. Quality of Sound  Sample Resolution  The number of bits used to store each sample.  The more bits that are used, the better the accuracy of the sound file.  Sample Interval  The time period between taking samples/measurements.  The more frequently the sound is sampled, the better the quality of playback. Synthesis: Sound synthesis is when the sound is recreated from this file by the computer, and played through speakers.
  • 16. Instructions  Each type of processor has its own type of machine code – a specific set of instructions that it can execute. This is called an instruction set. The group of bits that represents the operation is called the opcode If the programming language allowed us to specify how many steps to move RIGHT 90 (Turn 90° to the right) MOVE 2
  • 17. Instructions If the programming language allowed us to specify how many steps to move RIGHT 90 (Turn 90° to the right) MOVE 2 In the program, number steps to move can be stored in a variable. Move numSteps An opcode, which is the binary number representing the operation to be carried out. e.g. RIGHT, MOVE The operand (data) that the operation will use. The data can be an actual value (e.g. 5) or an address in memory where the data can be found (a variable).

Editor's Notes

  • #3: Beginning course details and/or books/materials needed for a class/project.
  • #4: A schedule design for optional periods of time/objectives.
  • #5: A schedule design for optional periods of time/objectives.
  • #6: Introductory notes.
  • #7: Introductory notes.
  • #8: Introductory notes.
  • #9: Introductory notes.
  • #10: Introductory notes.
  • #11: Introductory notes.