SlideShare a Scribd company logo
1 of 28
Download to read offline
COMPUTER
PROFICIENCY
LESSON 1: DATA REPRESENTATION AND LOGIC GATES
All data in a computer is
represented using a number
system. But what is a number
system?
2
A number system is a way to represent data. The most common one is the Decimal
Number System. But there exists other forms such as the Binary System, Octal System,
Hexadecimal System etc. Each number system is uniquely identifiable using the Base. The
Base defines which number system is being used to represent the data.
3
Data can always be transformed from
one number system to the other by
using the base.
4
Decimal to Binary System Conversion 5
Decimal to Octal System Conversion 6
Decimal to Hexadecimal System Conversion 7
Binary to Decimal System Conversion 8
Octal to Decimal System Conversion 9
Hexadecimal to Decimal System Conversion 10
11
Binary to Octal System Conversion 12
Octal to Binary System Conversion 13
Binary to Hexadecimal System Conversion 14
Hexadecimal to Binary System Conversion 15
The binary number system
is used for representing
data in a computer. Thus, a
computer can only
understand 0 and 1.
16
Inside a computer, all data
is a stream of 0’s and 1’s.
Thus, a question arises,
how to represent negative
numbers?
17
To represent negative numbers, one’s complement method is used. The
ones' complement of a binary number is defined as the value obtained by
inverting all the bits in the binary representation of the number. The ones'
complement of the number then behaves like the negative of the original
number in some arithmetic operations.
ONE’s COMPLEMENT
18
However, One’s Complement does suffer from a drawback. Representation
of 0. In One’s complement form, 0 has two representations for +0 and -0 as
illustrated below.
ONE’s COMPLEMENT
For example:
+0 = 0000 0000
-0 = 1111 1111
To mitigate such issues, Two’s Complement is used to represent negative
numbers.
19
The problems of multiple
representations of 0 is
circumvented by a system
called two's complement.
In two's complement,
negative numbers are
represented by the bit
pattern which is one
greater than the ones'
complement of the positive
value.
TWO’s COMPLEMENT
20
But how is the logic
incorporated in the
computer?
21
A logic gate is an elementary building block of a digital circuit. Most logic
gates have two inputs and one output. At any given moment, every
terminal is in one of the two binary conditions low (0) or high (1), represented
by different voltage levels. The logic state of a terminal can, and generally
does, change often, as the circuit processes data. In most logic gates, the
low state is approximately zero volts (0 V), while the high state is
approximately five volts positive (+5 V).
There are seven basic logic gates: AND, OR, XOR, NOT.
Logic Gates
22
AND Gate 23
OR Gate 24
XOR Gate 25
NOT Gate 26
Other than these, there are
also the Universal Gates.
27
A universal logic gate is a logic gate that can be used to construct all other
logic gates. There are two primary Universal Gates: NAND and NOR.
In practice, this is advantageous since NAND and NOR gates are
economical and easier to fabricate and are the basic gates used in all IC
digital logic families.
Universal Gates
28

More Related Content

Similar to Computer Proficiency_1-1.pdfdvdfsvfdvfdb

Physics investigatory project for class 12 logic gates
Physics investigatory project for class 12 logic gatesPhysics investigatory project for class 12 logic gates
Physics investigatory project for class 12 logic gates
biswanath dehuri
 
Data Representation
Data RepresentationData Representation
Data Representation
Rick Jamil
 
Computers numbering systems
Computers   numbering systemsComputers   numbering systems
Computers numbering systems
sld1950
 
Digital Logic Design Lecturegyqwdgj-1.pptx
Digital Logic Design Lecturegyqwdgj-1.pptxDigital Logic Design Lecturegyqwdgj-1.pptx
Digital Logic Design Lecturegyqwdgj-1.pptx
MalikQadeer8
 

Similar to Computer Proficiency_1-1.pdfdvdfsvfdvfdb (20)

chap1.pdf
chap1.pdfchap1.pdf
chap1.pdf
 
chap1.pdf
chap1.pdfchap1.pdf
chap1.pdf
 
Physics investigatory project for class 12 logic gates
Physics investigatory project for class 12 logic gatesPhysics investigatory project for class 12 logic gates
Physics investigatory project for class 12 logic gates
 
1.1.1 binary systems By Zak
1.1.1 binary systems By Zak1.1.1 binary systems By Zak
1.1.1 binary systems By Zak
 
3110016_BE_GTU_Study_Material_e-Notes_6_02052020063009AM.pdf
3110016_BE_GTU_Study_Material_e-Notes_6_02052020063009AM.pdf3110016_BE_GTU_Study_Material_e-Notes_6_02052020063009AM.pdf
3110016_BE_GTU_Study_Material_e-Notes_6_02052020063009AM.pdf
 
Dee 2034 chapter 1 number and code system (Baia)
Dee 2034 chapter 1 number and code system (Baia)Dee 2034 chapter 1 number and code system (Baia)
Dee 2034 chapter 1 number and code system (Baia)
 
DE notes
DE notesDE notes
DE notes
 
lecture Fatmasultak235555551626342617.pdf
lecture Fatmasultak235555551626342617.pdflecture Fatmasultak235555551626342617.pdf
lecture Fatmasultak235555551626342617.pdf
 
21EC201– Digital Principles and system design.pptx
21EC201– Digital Principles and system design.pptx21EC201– Digital Principles and system design.pptx
21EC201– Digital Principles and system design.pptx
 
Chapter 1 number and code system sss
Chapter 1 number and code system sssChapter 1 number and code system sss
Chapter 1 number and code system sss
 
Cs302 shortnoteslectures1to45
Cs302 shortnoteslectures1to45Cs302 shortnoteslectures1to45
Cs302 shortnoteslectures1to45
 
assignment_mathematics.pptx
assignment_mathematics.pptxassignment_mathematics.pptx
assignment_mathematics.pptx
 
Data Representation
Data RepresentationData Representation
Data Representation
 
Digital electronics & microprocessor Batu- s y computer engineering- arvind p...
Digital electronics & microprocessor Batu- s y computer engineering- arvind p...Digital electronics & microprocessor Batu- s y computer engineering- arvind p...
Digital electronics & microprocessor Batu- s y computer engineering- arvind p...
 
Computers numbering systems
Computers   numbering systemsComputers   numbering systems
Computers numbering systems
 
Digital Logic Design Lecturegyqwdgj-1.pptx
Digital Logic Design Lecturegyqwdgj-1.pptxDigital Logic Design Lecturegyqwdgj-1.pptx
Digital Logic Design Lecturegyqwdgj-1.pptx
 
Number System & Logic Gate
Number System & Logic GateNumber System & Logic Gate
Number System & Logic Gate
 
Chapter+13.ppt
Chapter+13.pptChapter+13.ppt
Chapter+13.ppt
 
Digital Electronics Notes
Digital Electronics NotesDigital Electronics Notes
Digital Electronics Notes
 
Number System and Boolean Algebra
Number System and Boolean AlgebraNumber System and Boolean Algebra
Number System and Boolean Algebra
 

Recently uploaded

會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文
會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文
會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文
中 央社
 
Transparency, Recognition and the role of eSealing - Ildiko Mazar and Koen No...
Transparency, Recognition and the role of eSealing - Ildiko Mazar and Koen No...Transparency, Recognition and the role of eSealing - Ildiko Mazar and Koen No...
Transparency, Recognition and the role of eSealing - Ildiko Mazar and Koen No...
EADTU
 
SPLICE Working Group: Reusable Code Examples
SPLICE Working Group:Reusable Code ExamplesSPLICE Working Group:Reusable Code Examples
SPLICE Working Group: Reusable Code Examples
Peter Brusilovsky
 
MuleSoft Integration with AWS Textract | Calling AWS Textract API |AWS - Clou...
MuleSoft Integration with AWS Textract | Calling AWS Textract API |AWS - Clou...MuleSoft Integration with AWS Textract | Calling AWS Textract API |AWS - Clou...
MuleSoft Integration with AWS Textract | Calling AWS Textract API |AWS - Clou...
MysoreMuleSoftMeetup
 

Recently uploaded (20)

COMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptxCOMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
 
How to Manage Website in Odoo 17 Studio App.pptx
How to Manage Website in Odoo 17 Studio App.pptxHow to Manage Website in Odoo 17 Studio App.pptx
How to Manage Website in Odoo 17 Studio App.pptx
 
OS-operating systems- ch05 (CPU Scheduling) ...
OS-operating systems- ch05 (CPU Scheduling) ...OS-operating systems- ch05 (CPU Scheduling) ...
OS-operating systems- ch05 (CPU Scheduling) ...
 
Supporting Newcomer Multilingual Learners
Supporting Newcomer  Multilingual LearnersSupporting Newcomer  Multilingual Learners
Supporting Newcomer Multilingual Learners
 
Graduate Outcomes Presentation Slides - English (v3).pptx
Graduate Outcomes Presentation Slides - English (v3).pptxGraduate Outcomes Presentation Slides - English (v3).pptx
Graduate Outcomes Presentation Slides - English (v3).pptx
 
Mattingly "AI & Prompt Design: Named Entity Recognition"
Mattingly "AI & Prompt Design: Named Entity Recognition"Mattingly "AI & Prompt Design: Named Entity Recognition"
Mattingly "AI & Prompt Design: Named Entity Recognition"
 
FICTIONAL SALESMAN/SALESMAN SNSW 2024.pdf
FICTIONAL SALESMAN/SALESMAN SNSW 2024.pdfFICTIONAL SALESMAN/SALESMAN SNSW 2024.pdf
FICTIONAL SALESMAN/SALESMAN SNSW 2024.pdf
 
會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文
會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文
會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文
 
The Liver & Gallbladder (Anatomy & Physiology).pptx
The Liver &  Gallbladder (Anatomy & Physiology).pptxThe Liver &  Gallbladder (Anatomy & Physiology).pptx
The Liver & Gallbladder (Anatomy & Physiology).pptx
 
Transparency, Recognition and the role of eSealing - Ildiko Mazar and Koen No...
Transparency, Recognition and the role of eSealing - Ildiko Mazar and Koen No...Transparency, Recognition and the role of eSealing - Ildiko Mazar and Koen No...
Transparency, Recognition and the role of eSealing - Ildiko Mazar and Koen No...
 
Sternal Fractures & Dislocations - EMGuidewire Radiology Reading Room
Sternal Fractures & Dislocations - EMGuidewire Radiology Reading RoomSternal Fractures & Dislocations - EMGuidewire Radiology Reading Room
Sternal Fractures & Dislocations - EMGuidewire Radiology Reading Room
 
AIM of Education-Teachers Training-2024.ppt
AIM of Education-Teachers Training-2024.pptAIM of Education-Teachers Training-2024.ppt
AIM of Education-Teachers Training-2024.ppt
 
When Quality Assurance Meets Innovation in Higher Education - Report launch w...
When Quality Assurance Meets Innovation in Higher Education - Report launch w...When Quality Assurance Meets Innovation in Higher Education - Report launch w...
When Quality Assurance Meets Innovation in Higher Education - Report launch w...
 
Observing-Correct-Grammar-in-Making-Definitions.pptx
Observing-Correct-Grammar-in-Making-Definitions.pptxObserving-Correct-Grammar-in-Making-Definitions.pptx
Observing-Correct-Grammar-in-Making-Definitions.pptx
 
SPLICE Working Group: Reusable Code Examples
SPLICE Working Group:Reusable Code ExamplesSPLICE Working Group:Reusable Code Examples
SPLICE Working Group: Reusable Code Examples
 
ESSENTIAL of (CS/IT/IS) class 07 (Networks)
ESSENTIAL of (CS/IT/IS) class 07 (Networks)ESSENTIAL of (CS/IT/IS) class 07 (Networks)
ESSENTIAL of (CS/IT/IS) class 07 (Networks)
 
8 Tips for Effective Working Capital Management
8 Tips for Effective Working Capital Management8 Tips for Effective Working Capital Management
8 Tips for Effective Working Capital Management
 
VAMOS CUIDAR DO NOSSO PLANETA! .
VAMOS CUIDAR DO NOSSO PLANETA!                    .VAMOS CUIDAR DO NOSSO PLANETA!                    .
VAMOS CUIDAR DO NOSSO PLANETA! .
 
MuleSoft Integration with AWS Textract | Calling AWS Textract API |AWS - Clou...
MuleSoft Integration with AWS Textract | Calling AWS Textract API |AWS - Clou...MuleSoft Integration with AWS Textract | Calling AWS Textract API |AWS - Clou...
MuleSoft Integration with AWS Textract | Calling AWS Textract API |AWS - Clou...
 
Major project report on Tata Motors and its marketing strategies
Major project report on Tata Motors and its marketing strategiesMajor project report on Tata Motors and its marketing strategies
Major project report on Tata Motors and its marketing strategies
 

Computer Proficiency_1-1.pdfdvdfsvfdvfdb

  • 1. COMPUTER PROFICIENCY LESSON 1: DATA REPRESENTATION AND LOGIC GATES
  • 2. All data in a computer is represented using a number system. But what is a number system? 2
  • 3. A number system is a way to represent data. The most common one is the Decimal Number System. But there exists other forms such as the Binary System, Octal System, Hexadecimal System etc. Each number system is uniquely identifiable using the Base. The Base defines which number system is being used to represent the data. 3
  • 4. Data can always be transformed from one number system to the other by using the base. 4
  • 5. Decimal to Binary System Conversion 5
  • 6. Decimal to Octal System Conversion 6
  • 7. Decimal to Hexadecimal System Conversion 7
  • 8. Binary to Decimal System Conversion 8
  • 9. Octal to Decimal System Conversion 9
  • 10. Hexadecimal to Decimal System Conversion 10
  • 11. 11
  • 12. Binary to Octal System Conversion 12
  • 13. Octal to Binary System Conversion 13
  • 14. Binary to Hexadecimal System Conversion 14
  • 15. Hexadecimal to Binary System Conversion 15
  • 16. The binary number system is used for representing data in a computer. Thus, a computer can only understand 0 and 1. 16
  • 17. Inside a computer, all data is a stream of 0’s and 1’s. Thus, a question arises, how to represent negative numbers? 17
  • 18. To represent negative numbers, one’s complement method is used. The ones' complement of a binary number is defined as the value obtained by inverting all the bits in the binary representation of the number. The ones' complement of the number then behaves like the negative of the original number in some arithmetic operations. ONE’s COMPLEMENT 18
  • 19. However, One’s Complement does suffer from a drawback. Representation of 0. In One’s complement form, 0 has two representations for +0 and -0 as illustrated below. ONE’s COMPLEMENT For example: +0 = 0000 0000 -0 = 1111 1111 To mitigate such issues, Two’s Complement is used to represent negative numbers. 19
  • 20. The problems of multiple representations of 0 is circumvented by a system called two's complement. In two's complement, negative numbers are represented by the bit pattern which is one greater than the ones' complement of the positive value. TWO’s COMPLEMENT 20
  • 21. But how is the logic incorporated in the computer? 21
  • 22. A logic gate is an elementary building block of a digital circuit. Most logic gates have two inputs and one output. At any given moment, every terminal is in one of the two binary conditions low (0) or high (1), represented by different voltage levels. The logic state of a terminal can, and generally does, change often, as the circuit processes data. In most logic gates, the low state is approximately zero volts (0 V), while the high state is approximately five volts positive (+5 V). There are seven basic logic gates: AND, OR, XOR, NOT. Logic Gates 22
  • 27. Other than these, there are also the Universal Gates. 27
  • 28. A universal logic gate is a logic gate that can be used to construct all other logic gates. There are two primary Universal Gates: NAND and NOR. In practice, this is advantageous since NAND and NOR gates are economical and easier to fabricate and are the basic gates used in all IC digital logic families. Universal Gates 28