SlideShare uma empresa Scribd logo
1 de 12
CS553
System Programming-
Data Representation
BSCS-5th Semester-2020
Prepared By:
Mr. Rahat Ullah
r2mpak@gmail.com
Department Of
Computer Science
Government Degree
College Gulabad Dir (L)
KPK Pakistan
Syllabus
What is Data Representation?
 Data refers to the symbols that represent people, events, things, and
ideas.
 Data can be a name, a number, the colors in a photograph, or the notes in
a musical composition.
 Data Representation refers to the form in which data is stored,
processed, and transmitted.
 Devices such as smartphones, iPods, and computers store data in digital
formats that can be handled by electronic circuitry.
 Digitization is the process of converting information, such as text,
numbers, photo, or music, into digital data that can be manipulated by
electronic devices.
What is Data Representation?
 Computers are constructed from digital circuits that has only two states:
 True/False OR On/Off OR One/Zero
 The 0s and 1s used to represent digital data are referred to as binary
digits — from this term we get the word bit that stands for binary digit.
 A bit is a 0 or 1 used in the digital representation of data.
 Binary numbers are used to describe memory contents
Representing Numbers
 Numeric data consists of numbers that can be
used in arithmetic operations.
 Digital devices represent numeric data using the
binary number system, also called base 2.
 The binary number system only has two digits: 0
and 1.
 No numeral like 2 exists in the system, so the
number “two” is represented in binary as 10
(pronounced “one zero”)
Representing Text
 Character data is composed of letters, symbols, and numerals that are
not used in calculations.
 Examples of character data include your name, address, and hair color.
 Character data is commonly referred to as “text.”
 Digital devices employ several types of codes to represent character data,
including ASCII, Unicode, and their variants.
Representing Text-ASCII
 ASCII (American Standard Code for Information Interchange, pronounced
“ASK ee”) requires seven bits for each character.
 The ASCII code for an uppercase A is 1000001.
 Extended ASCII is a superset of ASCII that uses eight bits for each
character.
 For example, Extended ASCII represents the uppercase letter A as
01000001.
 Using eight bits instead of seven bits allows Extended ASCII to provide
codes for 256 characters.
Representing Text-ASCII
Representing Text-Unicode
 Unicode (pronounced “YOU ni code”) uses sixteen bits and provides
codes or 65,000 characters.
 This is a bonus for representing the alphabets of multiple languages.
 UTF-8 is a variable-length coding scheme that uses seven bits for
common ASCII characters but uses sixteen-bit Unicode as necessary.
Bit and Bytes
 All of the data stored and transmitted by digital
devices is encoded as bits.
 Terminology related to bits and bytes is extensively
used to describe storage capacity and network
access speed.
 The word bit, an abbreviation for binary digit, can
be further abbreviated as a lowercase b.
 A group of eight bits is called a byte and is usually
abbreviated as an uppercase B.
Bit and Bytes
Department Of Computer Science
Government Degree College Gulabad Dir (L)
KPK Pakistan | r2mpak@gmail.com
Thanks for the
Attention!

Mais conteúdo relacionado

Mais procurados

Mais procurados (8)

Lecture 9
Lecture 9Lecture 9
Lecture 9
 
Unicode
UnicodeUnicode
Unicode
 
Unicode
UnicodeUnicode
Unicode
 
Io
IoIo
Io
 
Digital principles basic
Digital principles basicDigital principles basic
Digital principles basic
 
Base-64 Presentation
Base-64 PresentationBase-64 Presentation
Base-64 Presentation
 
UTF-8: The Secret of Character Encoding
UTF-8: The Secret of Character EncodingUTF-8: The Secret of Character Encoding
UTF-8: The Secret of Character Encoding
 
Lecture 01
Lecture 01Lecture 01
Lecture 01
 

Semelhante a Lecture 4 system programming-data representation

13001620124_AashishAgarwal_Data representation.text and numbers.pdf
13001620124_AashishAgarwal_Data representation.text and numbers.pdf13001620124_AashishAgarwal_Data representation.text and numbers.pdf
13001620124_AashishAgarwal_Data representation.text and numbers.pdfssusercf82c42
 
Chapter 2Hardware2.1 The System Unit2.2 Data and P
Chapter 2Hardware2.1 The System Unit2.2 Data and PChapter 2Hardware2.1 The System Unit2.2 Data and P
Chapter 2Hardware2.1 The System Unit2.2 Data and PEstelaJeffery653
 
Ch 02 Encoding & Number System.pdf
Ch 02 Encoding & Number System.pdfCh 02 Encoding & Number System.pdf
Ch 02 Encoding & Number System.pdfA23AyushRajBaranwal
 
Data and information in digital organisation
Data and information in digital organisation Data and information in digital organisation
Data and information in digital organisation Netram Patel
 
Concept map for Number system
Concept map for Number systemConcept map for Number system
Concept map for Number systemPramodya Kodikara
 
Data and information in digital organisation
Data and information in digital organisation Data and information in digital organisation
Data and information in digital organisation Sanjay Singh
 
ASCII and Unicode.pptx
ASCII and Unicode.pptxASCII and Unicode.pptx
ASCII and Unicode.pptxKhalilJary
 
Introduction to digital computers and Number systems.pptx
Introduction to digital computers and Number systems.pptxIntroduction to digital computers and Number systems.pptx
Introduction to digital computers and Number systems.pptxBhawaniShankarSahu1
 
UNIT-I U20EST109 - PROBLEM SOLVING APPROACH - Copy (1).pptx
UNIT-I U20EST109 - PROBLEM SOLVING APPROACH - Copy (1).pptxUNIT-I U20EST109 - PROBLEM SOLVING APPROACH - Copy (1).pptx
UNIT-I U20EST109 - PROBLEM SOLVING APPROACH - Copy (1).pptxKaameshwaranKaameshw
 
Data Communication & Computer Networks : Data Types
Data Communication & Computer Networks : Data TypesData Communication & Computer Networks : Data Types
Data Communication & Computer Networks : Data TypesDr Rajiv Srivastava
 
Binary Digital representation
Binary Digital representationBinary Digital representation
Binary Digital representationSylvia Alvaro
 
Data representation in a computer
Data representation in a computerData representation in a computer
Data representation in a computerGirmachew Tilahun
 
Presentation of ICT.ppt.pptx
Presentation of ICT.ppt.pptxPresentation of ICT.ppt.pptx
Presentation of ICT.ppt.pptxMinahilUmar1
 

Semelhante a Lecture 4 system programming-data representation (20)

13001620124_AashishAgarwal_Data representation.text and numbers.pdf
13001620124_AashishAgarwal_Data representation.text and numbers.pdf13001620124_AashishAgarwal_Data representation.text and numbers.pdf
13001620124_AashishAgarwal_Data representation.text and numbers.pdf
 
Data Representation
Data RepresentationData Representation
Data Representation
 
Chapter 2Hardware2.1 The System Unit2.2 Data and P
Chapter 2Hardware2.1 The System Unit2.2 Data and PChapter 2Hardware2.1 The System Unit2.2 Data and P
Chapter 2Hardware2.1 The System Unit2.2 Data and P
 
Ch 02 Encoding & Number System.pdf
Ch 02 Encoding & Number System.pdfCh 02 Encoding & Number System.pdf
Ch 02 Encoding & Number System.pdf
 
Data and information in digital organisation
Data and information in digital organisation Data and information in digital organisation
Data and information in digital organisation
 
Concept map for Number system
Concept map for Number systemConcept map for Number system
Concept map for Number system
 
Data and information in digital organisation
Data and information in digital organisation Data and information in digital organisation
Data and information in digital organisation
 
ASCII and Unicode.pptx
ASCII and Unicode.pptxASCII and Unicode.pptx
ASCII and Unicode.pptx
 
Introduction to digital computers and Number systems.pptx
Introduction to digital computers and Number systems.pptxIntroduction to digital computers and Number systems.pptx
Introduction to digital computers and Number systems.pptx
 
UNIT-I U20EST109 - PROBLEM SOLVING APPROACH - Copy (1).pptx
UNIT-I U20EST109 - PROBLEM SOLVING APPROACH - Copy (1).pptxUNIT-I U20EST109 - PROBLEM SOLVING APPROACH - Copy (1).pptx
UNIT-I U20EST109 - PROBLEM SOLVING APPROACH - Copy (1).pptx
 
La2 computer systems
La2 computer systemsLa2 computer systems
La2 computer systems
 
La2 computer systems
La2 computer systemsLa2 computer systems
La2 computer systems
 
Topic 2.3 (1)
Topic 2.3 (1)Topic 2.3 (1)
Topic 2.3 (1)
 
Data Communication & Computer Networks : Data Types
Data Communication & Computer Networks : Data TypesData Communication & Computer Networks : Data Types
Data Communication & Computer Networks : Data Types
 
Number System.pptx
Number System.pptxNumber System.pptx
Number System.pptx
 
Binary Digital representation
Binary Digital representationBinary Digital representation
Binary Digital representation
 
Data representation in a computer
Data representation in a computerData representation in a computer
Data representation in a computer
 
Ascii 03
Ascii 03Ascii 03
Ascii 03
 
Presentation of ICT.ppt.pptx
Presentation of ICT.ppt.pptxPresentation of ICT.ppt.pptx
Presentation of ICT.ppt.pptx
 
Number system
Number system Number system
Number system
 

Mais de Student at University Of Malakand, Pakistan (6)

Lecture 4 means end analysis
Lecture 4 means end analysisLecture 4 means end analysis
Lecture 4 means end analysis
 
Lecture 3 general problem solver
Lecture 3 general problem solverLecture 3 general problem solver
Lecture 3 general problem solver
 
Lecture 2 lisp-Overview
Lecture 2 lisp-OverviewLecture 2 lisp-Overview
Lecture 2 lisp-Overview
 
Lecture 1- Artificial Intelligence - Introduction
Lecture 1- Artificial Intelligence - IntroductionLecture 1- Artificial Intelligence - Introduction
Lecture 1- Artificial Intelligence - Introduction
 
waspmote Presentation
waspmote Presentationwaspmote Presentation
waspmote Presentation
 
Presentation No.1
Presentation No.1Presentation No.1
Presentation No.1
 

Último

CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxGaneshChakor2
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdfQucHHunhnh
 
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...Marc Dusseiller Dusjagr
 
URLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website AppURLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website AppCeline George
 
Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3JemimahLaneBuaron
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactdawncurless
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxpboyjonauth
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeThiyagu K
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdfQucHHunhnh
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104misteraugie
 
How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxmanuelaromero2013
 
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxSayali Powar
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introductionMaksud Ahmed
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactPECB
 
Mastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionMastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionSafetyChain Software
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityGeoBlogs
 
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991RKavithamani
 

Último (20)

CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptx
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
 
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
 
URLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website AppURLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website App
 
Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impact
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptx
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and Mode
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
 
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104
 
How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptx
 
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
 
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdfTataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introduction
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global Impact
 
Mastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionMastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory Inspection
 
Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activity
 
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991
 

Lecture 4 system programming-data representation

  • 1. CS553 System Programming- Data Representation BSCS-5th Semester-2020 Prepared By: Mr. Rahat Ullah r2mpak@gmail.com Department Of Computer Science Government Degree College Gulabad Dir (L) KPK Pakistan
  • 3. What is Data Representation?  Data refers to the symbols that represent people, events, things, and ideas.  Data can be a name, a number, the colors in a photograph, or the notes in a musical composition.  Data Representation refers to the form in which data is stored, processed, and transmitted.  Devices such as smartphones, iPods, and computers store data in digital formats that can be handled by electronic circuitry.  Digitization is the process of converting information, such as text, numbers, photo, or music, into digital data that can be manipulated by electronic devices.
  • 4. What is Data Representation?  Computers are constructed from digital circuits that has only two states:  True/False OR On/Off OR One/Zero  The 0s and 1s used to represent digital data are referred to as binary digits — from this term we get the word bit that stands for binary digit.  A bit is a 0 or 1 used in the digital representation of data.  Binary numbers are used to describe memory contents
  • 5. Representing Numbers  Numeric data consists of numbers that can be used in arithmetic operations.  Digital devices represent numeric data using the binary number system, also called base 2.  The binary number system only has two digits: 0 and 1.  No numeral like 2 exists in the system, so the number “two” is represented in binary as 10 (pronounced “one zero”)
  • 6. Representing Text  Character data is composed of letters, symbols, and numerals that are not used in calculations.  Examples of character data include your name, address, and hair color.  Character data is commonly referred to as “text.”  Digital devices employ several types of codes to represent character data, including ASCII, Unicode, and their variants.
  • 7. Representing Text-ASCII  ASCII (American Standard Code for Information Interchange, pronounced “ASK ee”) requires seven bits for each character.  The ASCII code for an uppercase A is 1000001.  Extended ASCII is a superset of ASCII that uses eight bits for each character.  For example, Extended ASCII represents the uppercase letter A as 01000001.  Using eight bits instead of seven bits allows Extended ASCII to provide codes for 256 characters.
  • 9. Representing Text-Unicode  Unicode (pronounced “YOU ni code”) uses sixteen bits and provides codes or 65,000 characters.  This is a bonus for representing the alphabets of multiple languages.  UTF-8 is a variable-length coding scheme that uses seven bits for common ASCII characters but uses sixteen-bit Unicode as necessary.
  • 10. Bit and Bytes  All of the data stored and transmitted by digital devices is encoded as bits.  Terminology related to bits and bytes is extensively used to describe storage capacity and network access speed.  The word bit, an abbreviation for binary digit, can be further abbreviated as a lowercase b.  A group of eight bits is called a byte and is usually abbreviated as an uppercase B.
  • 12. Department Of Computer Science Government Degree College Gulabad Dir (L) KPK Pakistan | r2mpak@gmail.com Thanks for the Attention!