SlideShare a Scribd company logo
S
CSC 103
Bits & Bytes
The Language of Computers
Digital Data (Bits & Bytes)
 Data on a computer text, numbers &
pixels are stored and represented digitally.
 Digital Data is read in bits and bytes
by computers processors.
 Bits and Bytes make up the binary
language.
Binary Language
 The language of computers is binary.
 Uses series of 1’s and 0’s –
which represent on/off state.
 Used for giving instructions.
 Also used for measuring the quantity
or storing data.
Example of Binary
 Morse Code (in 1844) was sent with
electrical impulses over a wire which
translated to dots and dashes (a form of
binary code) to create messages
heard by the human ear.
 Evolved into telegraph/telegram messages.
Binary Digit (Bit)
 1’s and 0’s are binary digits
 Bit is short for binary digit
 1 bit can only be 1 or 0…
so it is expanded to 8 bits
or 1 byte (28) which allows
for 256 combinations
of 1’s and 0’s
Binary Combinations
Combinations will continue to double
512, 1024, 2048…
1 Byte = 8 Bit
 8 bits = 1 Byte which represents enough
numbers to convert to ASCII letters
(or characters) of the alphabet.
 1000 bytes – kilobyte
 1,000,000 (million) bytes – megabyte
 1,000,000,000 (billion) bytes - gigabyte
Bits translated to Numbers
 Binary can represent numbers
higher than 0 and 1.
 Instead of 1’s, 10’s, 100’s, 1000’s etc.,
like our base 10 number system,
it uses binary or base 2.
 It uses 1’s, 2’s, 4’s, 8’s, 16’s, 32’s, 64’s, etc.
(starting from right (1’s) to left)
Our Base-10 System
(Decimal)
1 0 1 1
1000’s 100’s 10’s 1’s
1000 + 0 + 10 + 1
= 1,011
Our Base-10 System
(Decimal)
9 4 7 0
1000’s 100’s 10’s 1’s
9000 + 400 + 70 + 0
= 9,470
Our Base-10 System
(Decimal)
0 4 7 0
1000’s 100’s 10’s 1’s
0 + 400 + 70 + 0
= 470
Bits converted to Numbers
4-bit example
1 0 1 1
8’s 4’s 2’s 1’s
8 + 0 + 2 + 1
8 + 3 + 1 = 11 (value)
Bits converted to Numbers
4-bit example
1 1 1 1
8’s 4’s 2’s 1’s
8 + 4 + 2 + 1
8 + 4 + 2 + 1 = 15 (value)
Bits converted to Numbers
4-bit example
1 0 1 0
8’s 4’s 2’s 1’s
8 + 0 + 2 + 0
Bits converted to Numbers
4-bit example
__ __ __ __
8’s 4’s 2’s 1’s
What binary number = 9
Bits converted to Numbers
4-bit example
1 0 0 1
8’s 4’s 2’s 1’s
8 + 0 + 0 + 1 = 9
Bits converted to Numbers
8-bit example
1 0 1 0
8’s 4’s 2’s 1’s
128 + 0 + 32 + 0 + 8 + 0 + 2 + 0
160 + 10 = 170 (value)
1 0 1 0
128’s 64’s 32’s 16’s
Bits converted to Numbers
8-bit example
1 1 1 1
8’s 4’s 2’s 1’s
128 + 64 + 32 + 16 + 8 + 4 + 2 + 1
240 + 15 = 255
1 1 1 1
128’s 64’s 32’s 16’s
Bits converted to Numbers
8-bit example
0 0 0 0
8’s 4’s 2’s 1’s
128 + 64 + 32 + 16 + 8 + 4 + 2 + 1
0 + 0 = 0
0 0 0 0
128’s 64’s 32’s 16’s
Shortcut to Count 8-bit
Count each side up to 15
1 1 1 1
8’s 4’s 2’s 1’s
8 + 4 + 2 + 1 8 + 4 + 2 + 1
240 + 15 = 255
1 1 1 1
128’s 64’s 32’s 16’s
15 * (1)15 * (16)
Shortcut to Count 8-bit
Count each side up to 15
0 1 1 1
8’s 4’s 2’s 1’s
8 + 0 + 0 + 1 + 0 + 4 + 2 + 1
9 7
1 0 0 1
__ * (1)__ * (16)
8’s 4’s 2’s 1’s
Shortcut to Count 8-bit
Count each side up to 15
0 1 1 1
8’s 4’s 2’s 1’s
8 + 0 + 0 + 1 + 0 + 4 + 2 + 1
144 + 7 = 151
1 0 0 1
7 * (1)9 * (16)
8’s 4’s 2’s 1’s
Shortcut to Count 8-bit
What binary number is 160?
0 0 0 0
8’s 4’s 2’s 1’s
0 + 0 + 0 + 0 + 0 + 0 + 0 + 0
0 + 0 = 0
0 0 0 0
__ * (1)__ * (16)
8’s 4’s 2’s 1’s
Shortcut to Count 8-bit
What binary number is 160?
160 / 16 = _____
Remainder is the 1’s ________
__ * (1)__ * (16)
Shortcut to Count 8-bit
What binary number is 160?
160 / 16 = 10
Remainder is the 1’s: 0
0 * (1)10 * (16)
Shortcut to Count 8-bit
What binary number is 160?
0 0 0 0
8’s 4’s 2’s 1’s
8 + 0 + 2 + 0 + 0 + 0 + 0 + 0
160 + 0 = 160
1 0 1 0
0 * (1)10 * (16)
8’s 4’s 2’s 1’s
Shortcut to Count 8-bit
This is essentially the Hexadecimal System
0 0 0 0
8’s 4’s 2’s 1’s
8 + 0 + 2 + 0 + 0 + 0 + 0 + 0
160 + 0 = 160
1 0 1 0
0 * (1)10 * (16)
8’s 4’s 2’s 1’s
RGB Color translated to
Hexadecimal Color
 Hexadecimal Color is used to describe
RGB color on web pages.
 It uses 16’s and 1’s (in 2-digits) but
uses letters to represent 10-15
For Example:
 RGB: 255 255 255
(white – highest number)
 Hex: #FF FF FF or #FFF
Credits
 www.mathisfun.com
 introcomputing.org
 sticksandstones.kstrom.com
 e-tutes.com
 Richard Homa ©2019

More Related Content

What's hot

Number system
Number systemNumber system
Number system
Vinoth Loganathan
 
Ram and-rom-chips
Ram and-rom-chipsRam and-rom-chips
Ram and-rom-chips
Anuj Modi
 
Difference between 2d and 3d Animation
Difference between 2d and 3d AnimationDifference between 2d and 3d Animation
Difference between 2d and 3d Animation
Animation Courses, Ahmedabad
 
instruction set Architecture.....(ISA)
instruction set Architecture.....(ISA)instruction set Architecture.....(ISA)
instruction set Architecture.....(ISA)
Rao Mubashar
 
Binary, Decimal and Hexadecimal
Binary, Decimal and HexadecimalBinary, Decimal and Hexadecimal
Binary, Decimal and Hexadecimal
UthraSowrirajan1
 
Lecture ascii and ebcdic codes
Lecture ascii and ebcdic codesLecture ascii and ebcdic codes
Lecture ascii and ebcdic codes
Yazdan Yousafzai
 
Introduction to Game Development
Introduction to Game DevelopmentIntroduction to Game Development
Introduction to Game Development
Reggie Niccolo Santos
 
"The Barcode" Presentation
 "The Barcode" Presentation  "The Barcode" Presentation
"The Barcode" Presentation
sh94880
 
how video works
how video workshow video works
how video works
Atsunori Tezuka
 
Booths Multiplication Algorithm
Booths Multiplication AlgorithmBooths Multiplication Algorithm
Booths Multiplication Algorithm
knightnick
 
Audio Production
Audio ProductionAudio Production
Audio Production
ptcentrum
 
Data representation in computers
Data representation in computersData representation in computers
Data representation in computers
Prof. Dr. K. Adisesha
 
CSC103 Vector vs Raster Graphics
CSC103 Vector vs Raster GraphicsCSC103 Vector vs Raster Graphics
CSC103 Vector vs Raster Graphics
Richard Homa
 
The Future of Multimedia
The Future of MultimediaThe Future of Multimedia
What is mp3
What is mp3What is mp3
What is mp3
Batool Naser
 
Number Representation and Arithmetic Operations.pptx
 Number Representation and Arithmetic Operations.pptx Number Representation and Arithmetic Operations.pptx
Number Representation and Arithmetic Operations.pptx
LikithaK8
 
Lesson 1 introduction to animation
Lesson 1   introduction to animationLesson 1   introduction to animation
Lesson 1 introduction to animation
joelfisher755
 
3 multimedia elements - audio
3   multimedia elements - audio3   multimedia elements - audio
3 multimedia elements - audio
Kelly Bauer
 
Logical and shift micro operations
Logical and shift micro operationsLogical and shift micro operations
Logical and shift micro operations
Sanjeev Patel
 
Chapter 2.1 introduction to number system
Chapter 2.1 introduction to number systemChapter 2.1 introduction to number system
Chapter 2.1 introduction to number system
ISMT College
 

What's hot (20)

Number system
Number systemNumber system
Number system
 
Ram and-rom-chips
Ram and-rom-chipsRam and-rom-chips
Ram and-rom-chips
 
Difference between 2d and 3d Animation
Difference between 2d and 3d AnimationDifference between 2d and 3d Animation
Difference between 2d and 3d Animation
 
instruction set Architecture.....(ISA)
instruction set Architecture.....(ISA)instruction set Architecture.....(ISA)
instruction set Architecture.....(ISA)
 
Binary, Decimal and Hexadecimal
Binary, Decimal and HexadecimalBinary, Decimal and Hexadecimal
Binary, Decimal and Hexadecimal
 
Lecture ascii and ebcdic codes
Lecture ascii and ebcdic codesLecture ascii and ebcdic codes
Lecture ascii and ebcdic codes
 
Introduction to Game Development
Introduction to Game DevelopmentIntroduction to Game Development
Introduction to Game Development
 
"The Barcode" Presentation
 "The Barcode" Presentation  "The Barcode" Presentation
"The Barcode" Presentation
 
how video works
how video workshow video works
how video works
 
Booths Multiplication Algorithm
Booths Multiplication AlgorithmBooths Multiplication Algorithm
Booths Multiplication Algorithm
 
Audio Production
Audio ProductionAudio Production
Audio Production
 
Data representation in computers
Data representation in computersData representation in computers
Data representation in computers
 
CSC103 Vector vs Raster Graphics
CSC103 Vector vs Raster GraphicsCSC103 Vector vs Raster Graphics
CSC103 Vector vs Raster Graphics
 
The Future of Multimedia
The Future of MultimediaThe Future of Multimedia
The Future of Multimedia
 
What is mp3
What is mp3What is mp3
What is mp3
 
Number Representation and Arithmetic Operations.pptx
 Number Representation and Arithmetic Operations.pptx Number Representation and Arithmetic Operations.pptx
Number Representation and Arithmetic Operations.pptx
 
Lesson 1 introduction to animation
Lesson 1   introduction to animationLesson 1   introduction to animation
Lesson 1 introduction to animation
 
3 multimedia elements - audio
3   multimedia elements - audio3   multimedia elements - audio
3 multimedia elements - audio
 
Logical and shift micro operations
Logical and shift micro operationsLogical and shift micro operations
Logical and shift micro operations
 
Chapter 2.1 introduction to number system
Chapter 2.1 introduction to number systemChapter 2.1 introduction to number system
Chapter 2.1 introduction to number system
 

Similar to CSC103 Bits, Bytes & Binary

Representation of Positive Numbers
Representation of Positive NumbersRepresentation of Positive Numbers
Representation of Positive Numbers
Forrester High School
 
SD & D Representing Positive Numbers
SD & D Representing Positive NumbersSD & D Representing Positive Numbers
SD & D Representing Positive Numbers
Forrester High School
 
Binary code - Beginning
Binary code - BeginningBinary code - Beginning
Binary code - Beginning
Debbie Eitner
 
binarycode.pptx
binarycode.pptxbinarycode.pptx
binarycode.pptx
WilliamLugo12
 
W 9 numbering system
W 9 numbering systemW 9 numbering system
W 9 numbering system
W 9 numbering systemW 9 numbering system
Number System.pptx
Number System.pptxNumber System.pptx
Number System.pptx
Lovely Professional University
 
Number systems
Number systemsNumber systems
Number systems
pyingkodi maran
 
Topic 1 Data Representation
Topic 1 Data RepresentationTopic 1 Data Representation
Topic 1 Data Representation
ekul
 
Topic 1 Data Representation
Topic 1 Data RepresentationTopic 1 Data Representation
Topic 1 Data Representation
Kyle
 
Binary systemn
Binary systemnBinary systemn
Binary systemn
Donna Pizzigoni
 
Numbering Systems
Numbering SystemsNumbering Systems
Numbering Systems
ImranulHasan6
 
Number Systems
Number  SystemsNumber  Systems
Number Systems
Nasir Jumani
 
Number system
Number system Number system
Number system
Khinda Saab
 
Data representation
Data representationData representation
Data representation
vikram mahendra
 
04 chapter03 02_numbers_systems_student_version_fa16
04 chapter03 02_numbers_systems_student_version_fa1604 chapter03 02_numbers_systems_student_version_fa16
04 chapter03 02_numbers_systems_student_version_fa16
John Todora
 
004 NUMBER SYSTEM (1).pdf
004 NUMBER SYSTEM (1).pdf004 NUMBER SYSTEM (1).pdf
004 NUMBER SYSTEM (1).pdf
MaheShiva
 
Binaryconversion 090715011937-phpapp01
Binaryconversion 090715011937-phpapp01Binaryconversion 090715011937-phpapp01
Binaryconversion 090715011937-phpapp01
Abhay kadu
 
Int 2 data representation 2010
Int 2 data representation 2010Int 2 data representation 2010
Int 2 data representation 2010
iarthur
 
Chapter 3.pptx
Chapter 3.pptxChapter 3.pptx
Chapter 3.pptx
Wollo UNiversity
 

Similar to CSC103 Bits, Bytes & Binary (20)

Representation of Positive Numbers
Representation of Positive NumbersRepresentation of Positive Numbers
Representation of Positive Numbers
 
SD & D Representing Positive Numbers
SD & D Representing Positive NumbersSD & D Representing Positive Numbers
SD & D Representing Positive Numbers
 
Binary code - Beginning
Binary code - BeginningBinary code - Beginning
Binary code - Beginning
 
binarycode.pptx
binarycode.pptxbinarycode.pptx
binarycode.pptx
 
W 9 numbering system
W 9 numbering systemW 9 numbering system
W 9 numbering system
 
W 9 numbering system
W 9 numbering systemW 9 numbering system
W 9 numbering system
 
Number System.pptx
Number System.pptxNumber System.pptx
Number System.pptx
 
Number systems
Number systemsNumber systems
Number systems
 
Topic 1 Data Representation
Topic 1 Data RepresentationTopic 1 Data Representation
Topic 1 Data Representation
 
Topic 1 Data Representation
Topic 1 Data RepresentationTopic 1 Data Representation
Topic 1 Data Representation
 
Binary systemn
Binary systemnBinary systemn
Binary systemn
 
Numbering Systems
Numbering SystemsNumbering Systems
Numbering Systems
 
Number Systems
Number  SystemsNumber  Systems
Number Systems
 
Number system
Number system Number system
Number system
 
Data representation
Data representationData representation
Data representation
 
04 chapter03 02_numbers_systems_student_version_fa16
04 chapter03 02_numbers_systems_student_version_fa1604 chapter03 02_numbers_systems_student_version_fa16
04 chapter03 02_numbers_systems_student_version_fa16
 
004 NUMBER SYSTEM (1).pdf
004 NUMBER SYSTEM (1).pdf004 NUMBER SYSTEM (1).pdf
004 NUMBER SYSTEM (1).pdf
 
Binaryconversion 090715011937-phpapp01
Binaryconversion 090715011937-phpapp01Binaryconversion 090715011937-phpapp01
Binaryconversion 090715011937-phpapp01
 
Int 2 data representation 2010
Int 2 data representation 2010Int 2 data representation 2010
Int 2 data representation 2010
 
Chapter 3.pptx
Chapter 3.pptxChapter 3.pptx
Chapter 3.pptx
 

More from Richard Homa

Programming 1: Compilers, Interpreters & Bytecode
Programming 1: Compilers, Interpreters & BytecodeProgramming 1: Compilers, Interpreters & Bytecode
Programming 1: Compilers, Interpreters & Bytecode
Richard Homa
 
CSC103 Digital Security
CSC103 Digital SecurityCSC103 Digital Security
CSC103 Digital Security
Richard Homa
 
CSC 103 Databases Overview
CSC 103 Databases OverviewCSC 103 Databases Overview
CSC 103 Databases Overview
Richard Homa
 
CSC103 Intro to Programming
CSC103 Intro to ProgrammingCSC103 Intro to Programming
CSC103 Intro to Programming
Richard Homa
 
CSC103 Gaming Overview (for Everyone)
CSC103 Gaming Overview (for Everyone)CSC103 Gaming Overview (for Everyone)
CSC103 Gaming Overview (for Everyone)
Richard Homa
 
CSC103 3D Software & Technology
CSC103 3D Software & TechnologyCSC103 3D Software & Technology
CSC103 3D Software & Technology
Richard Homa
 
CSC103 Web Technologies: HTML, CSS, JS
CSC103 Web Technologies: HTML, CSS, JSCSC103 Web Technologies: HTML, CSS, JS
CSC103 Web Technologies: HTML, CSS, JS
Richard Homa
 
CSC103 Digital Devices: Device Basics
CSC103 Digital Devices: Device BasicsCSC103 Digital Devices: Device Basics
CSC103 Digital Devices: Device Basics
Richard Homa
 
CSC103 Internet
CSC103 InternetCSC103 Internet
CSC103 Internet
Richard Homa
 
CSC103 Digital Images, Pixels, RGB Colors
CSC103 Digital Images, Pixels, RGB ColorsCSC103 Digital Images, Pixels, RGB Colors
CSC103 Digital Images, Pixels, RGB Colors
Richard Homa
 
Excel Review Quiz
Excel Review QuizExcel Review Quiz
Excel Review Quiz
Richard Homa
 
CSC102 Excel Basics
CSC102 Excel BasicsCSC102 Excel Basics
CSC102 Excel Basics
Richard Homa
 
CSC102 Word Paragraph Formatting
CSC102 Word Paragraph FormattingCSC102 Word Paragraph Formatting
CSC102 Word Paragraph Formatting
Richard Homa
 
CSC102 Computer Software
CSC102 Computer SoftwareCSC102 Computer Software
CSC102 Computer Software
Richard Homa
 
CSC102 Computer Connectivity
CSC102 Computer ConnectivityCSC102 Computer Connectivity
CSC102 Computer Connectivity
Richard Homa
 
CSC 102 Computer Intro
CSC 102 Computer IntroCSC 102 Computer Intro
CSC 102 Computer Intro
Richard Homa
 
Creating Immersive Technology Experiences with Web-based Software & Resources
Creating Immersive Technology Experiences with Web-based Software & ResourcesCreating Immersive Technology Experiences with Web-based Software & Resources
Creating Immersive Technology Experiences with Web-based Software & Resources
Richard Homa
 
Creating Immersive Technology Experiences with Web-based Software & Resources
Creating Immersive Technology Experiences with Web-based Software & ResourcesCreating Immersive Technology Experiences with Web-based Software & Resources
Creating Immersive Technology Experiences with Web-based Software & Resources
Richard Homa
 
CSC 103 Networking pt2
CSC 103 Networking pt2CSC 103 Networking pt2
CSC 103 Networking pt2
Richard Homa
 
CSC103 Networking pt1
CSC103 Networking pt1CSC103 Networking pt1
CSC103 Networking pt1
Richard Homa
 

More from Richard Homa (20)

Programming 1: Compilers, Interpreters & Bytecode
Programming 1: Compilers, Interpreters & BytecodeProgramming 1: Compilers, Interpreters & Bytecode
Programming 1: Compilers, Interpreters & Bytecode
 
CSC103 Digital Security
CSC103 Digital SecurityCSC103 Digital Security
CSC103 Digital Security
 
CSC 103 Databases Overview
CSC 103 Databases OverviewCSC 103 Databases Overview
CSC 103 Databases Overview
 
CSC103 Intro to Programming
CSC103 Intro to ProgrammingCSC103 Intro to Programming
CSC103 Intro to Programming
 
CSC103 Gaming Overview (for Everyone)
CSC103 Gaming Overview (for Everyone)CSC103 Gaming Overview (for Everyone)
CSC103 Gaming Overview (for Everyone)
 
CSC103 3D Software & Technology
CSC103 3D Software & TechnologyCSC103 3D Software & Technology
CSC103 3D Software & Technology
 
CSC103 Web Technologies: HTML, CSS, JS
CSC103 Web Technologies: HTML, CSS, JSCSC103 Web Technologies: HTML, CSS, JS
CSC103 Web Technologies: HTML, CSS, JS
 
CSC103 Digital Devices: Device Basics
CSC103 Digital Devices: Device BasicsCSC103 Digital Devices: Device Basics
CSC103 Digital Devices: Device Basics
 
CSC103 Internet
CSC103 InternetCSC103 Internet
CSC103 Internet
 
CSC103 Digital Images, Pixels, RGB Colors
CSC103 Digital Images, Pixels, RGB ColorsCSC103 Digital Images, Pixels, RGB Colors
CSC103 Digital Images, Pixels, RGB Colors
 
Excel Review Quiz
Excel Review QuizExcel Review Quiz
Excel Review Quiz
 
CSC102 Excel Basics
CSC102 Excel BasicsCSC102 Excel Basics
CSC102 Excel Basics
 
CSC102 Word Paragraph Formatting
CSC102 Word Paragraph FormattingCSC102 Word Paragraph Formatting
CSC102 Word Paragraph Formatting
 
CSC102 Computer Software
CSC102 Computer SoftwareCSC102 Computer Software
CSC102 Computer Software
 
CSC102 Computer Connectivity
CSC102 Computer ConnectivityCSC102 Computer Connectivity
CSC102 Computer Connectivity
 
CSC 102 Computer Intro
CSC 102 Computer IntroCSC 102 Computer Intro
CSC 102 Computer Intro
 
Creating Immersive Technology Experiences with Web-based Software & Resources
Creating Immersive Technology Experiences with Web-based Software & ResourcesCreating Immersive Technology Experiences with Web-based Software & Resources
Creating Immersive Technology Experiences with Web-based Software & Resources
 
Creating Immersive Technology Experiences with Web-based Software & Resources
Creating Immersive Technology Experiences with Web-based Software & ResourcesCreating Immersive Technology Experiences with Web-based Software & Resources
Creating Immersive Technology Experiences with Web-based Software & Resources
 
CSC 103 Networking pt2
CSC 103 Networking pt2CSC 103 Networking pt2
CSC 103 Networking pt2
 
CSC103 Networking pt1
CSC103 Networking pt1CSC103 Networking pt1
CSC103 Networking pt1
 

Recently uploaded

Unlock the Future of Search with MongoDB Atlas_ Vector Search Unleashed.pdf
Unlock the Future of Search with MongoDB Atlas_ Vector Search Unleashed.pdfUnlock the Future of Search with MongoDB Atlas_ Vector Search Unleashed.pdf
Unlock the Future of Search with MongoDB Atlas_ Vector Search Unleashed.pdf
Malak Abu Hammad
 
TrustArc Webinar - 2024 Global Privacy Survey
TrustArc Webinar - 2024 Global Privacy SurveyTrustArc Webinar - 2024 Global Privacy Survey
TrustArc Webinar - 2024 Global Privacy Survey
TrustArc
 
GraphSummit Singapore | Graphing Success: Revolutionising Organisational Stru...
GraphSummit Singapore | Graphing Success: Revolutionising Organisational Stru...GraphSummit Singapore | Graphing Success: Revolutionising Organisational Stru...
GraphSummit Singapore | Graphing Success: Revolutionising Organisational Stru...
Neo4j
 
Let's Integrate MuleSoft RPA, COMPOSER, APM with AWS IDP along with Slack
Let's Integrate MuleSoft RPA, COMPOSER, APM with AWS IDP along with SlackLet's Integrate MuleSoft RPA, COMPOSER, APM with AWS IDP along with Slack
Let's Integrate MuleSoft RPA, COMPOSER, APM with AWS IDP along with Slack
shyamraj55
 
“I’m still / I’m still / Chaining from the Block”
“I’m still / I’m still / Chaining from the Block”“I’m still / I’m still / Chaining from the Block”
“I’m still / I’m still / Chaining from the Block”
Claudio Di Ciccio
 
みなさんこんにちはこれ何文字まで入るの?40文字以下不可とか本当に意味わからないけどこれ限界文字数書いてないからマジでやばい文字数いけるんじゃないの?えこ...
みなさんこんにちはこれ何文字まで入るの?40文字以下不可とか本当に意味わからないけどこれ限界文字数書いてないからマジでやばい文字数いけるんじゃないの?えこ...みなさんこんにちはこれ何文字まで入るの?40文字以下不可とか本当に意味わからないけどこれ限界文字数書いてないからマジでやばい文字数いけるんじゃないの?えこ...
みなさんこんにちはこれ何文字まで入るの?40文字以下不可とか本当に意味わからないけどこれ限界文字数書いてないからマジでやばい文字数いけるんじゃないの?えこ...
名前 です男
 
Observability Concepts EVERY Developer Should Know -- DeveloperWeek Europe.pdf
Observability Concepts EVERY Developer Should Know -- DeveloperWeek Europe.pdfObservability Concepts EVERY Developer Should Know -- DeveloperWeek Europe.pdf
Observability Concepts EVERY Developer Should Know -- DeveloperWeek Europe.pdf
Paige Cruz
 
Introducing Milvus Lite: Easy-to-Install, Easy-to-Use vector database for you...
Introducing Milvus Lite: Easy-to-Install, Easy-to-Use vector database for you...Introducing Milvus Lite: Easy-to-Install, Easy-to-Use vector database for you...
Introducing Milvus Lite: Easy-to-Install, Easy-to-Use vector database for you...
Zilliz
 
Enchancing adoption of Open Source Libraries. A case study on Albumentations.AI
Enchancing adoption of Open Source Libraries. A case study on Albumentations.AIEnchancing adoption of Open Source Libraries. A case study on Albumentations.AI
Enchancing adoption of Open Source Libraries. A case study on Albumentations.AI
Vladimir Iglovikov, Ph.D.
 
20240605 QFM017 Machine Intelligence Reading List May 2024
20240605 QFM017 Machine Intelligence Reading List May 202420240605 QFM017 Machine Intelligence Reading List May 2024
20240605 QFM017 Machine Intelligence Reading List May 2024
Matthew Sinclair
 
Alt. GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using ...
Alt. GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using ...Alt. GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using ...
Alt. GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using ...
James Anderson
 
Microsoft - Power Platform_G.Aspiotis.pdf
Microsoft - Power Platform_G.Aspiotis.pdfMicrosoft - Power Platform_G.Aspiotis.pdf
Microsoft - Power Platform_G.Aspiotis.pdf
Uni Systems S.M.S.A.
 
Removing Uninteresting Bytes in Software Fuzzing
Removing Uninteresting Bytes in Software FuzzingRemoving Uninteresting Bytes in Software Fuzzing
Removing Uninteresting Bytes in Software Fuzzing
Aftab Hussain
 
20240609 QFM020 Irresponsible AI Reading List May 2024
20240609 QFM020 Irresponsible AI Reading List May 202420240609 QFM020 Irresponsible AI Reading List May 2024
20240609 QFM020 Irresponsible AI Reading List May 2024
Matthew Sinclair
 
Full-RAG: A modern architecture for hyper-personalization
Full-RAG: A modern architecture for hyper-personalizationFull-RAG: A modern architecture for hyper-personalization
Full-RAG: A modern architecture for hyper-personalization
Zilliz
 
Presentation of the OECD Artificial Intelligence Review of Germany
Presentation of the OECD Artificial Intelligence Review of GermanyPresentation of the OECD Artificial Intelligence Review of Germany
Presentation of the OECD Artificial Intelligence Review of Germany
innovationoecd
 
GraphSummit Singapore | The Future of Agility: Supercharging Digital Transfor...
GraphSummit Singapore | The Future of Agility: Supercharging Digital Transfor...GraphSummit Singapore | The Future of Agility: Supercharging Digital Transfor...
GraphSummit Singapore | The Future of Agility: Supercharging Digital Transfor...
Neo4j
 
Artificial Intelligence for XMLDevelopment
Artificial Intelligence for XMLDevelopmentArtificial Intelligence for XMLDevelopment
Artificial Intelligence for XMLDevelopment
Octavian Nadolu
 
Video Streaming: Then, Now, and in the Future
Video Streaming: Then, Now, and in the FutureVideo Streaming: Then, Now, and in the Future
Video Streaming: Then, Now, and in the Future
Alpen-Adria-Universität
 
Essentials of Automations: The Art of Triggers and Actions in FME
Essentials of Automations: The Art of Triggers and Actions in FMEEssentials of Automations: The Art of Triggers and Actions in FME
Essentials of Automations: The Art of Triggers and Actions in FME
Safe Software
 

Recently uploaded (20)

Unlock the Future of Search with MongoDB Atlas_ Vector Search Unleashed.pdf
Unlock the Future of Search with MongoDB Atlas_ Vector Search Unleashed.pdfUnlock the Future of Search with MongoDB Atlas_ Vector Search Unleashed.pdf
Unlock the Future of Search with MongoDB Atlas_ Vector Search Unleashed.pdf
 
TrustArc Webinar - 2024 Global Privacy Survey
TrustArc Webinar - 2024 Global Privacy SurveyTrustArc Webinar - 2024 Global Privacy Survey
TrustArc Webinar - 2024 Global Privacy Survey
 
GraphSummit Singapore | Graphing Success: Revolutionising Organisational Stru...
GraphSummit Singapore | Graphing Success: Revolutionising Organisational Stru...GraphSummit Singapore | Graphing Success: Revolutionising Organisational Stru...
GraphSummit Singapore | Graphing Success: Revolutionising Organisational Stru...
 
Let's Integrate MuleSoft RPA, COMPOSER, APM with AWS IDP along with Slack
Let's Integrate MuleSoft RPA, COMPOSER, APM with AWS IDP along with SlackLet's Integrate MuleSoft RPA, COMPOSER, APM with AWS IDP along with Slack
Let's Integrate MuleSoft RPA, COMPOSER, APM with AWS IDP along with Slack
 
“I’m still / I’m still / Chaining from the Block”
“I’m still / I’m still / Chaining from the Block”“I’m still / I’m still / Chaining from the Block”
“I’m still / I’m still / Chaining from the Block”
 
みなさんこんにちはこれ何文字まで入るの?40文字以下不可とか本当に意味わからないけどこれ限界文字数書いてないからマジでやばい文字数いけるんじゃないの?えこ...
みなさんこんにちはこれ何文字まで入るの?40文字以下不可とか本当に意味わからないけどこれ限界文字数書いてないからマジでやばい文字数いけるんじゃないの?えこ...みなさんこんにちはこれ何文字まで入るの?40文字以下不可とか本当に意味わからないけどこれ限界文字数書いてないからマジでやばい文字数いけるんじゃないの?えこ...
みなさんこんにちはこれ何文字まで入るの?40文字以下不可とか本当に意味わからないけどこれ限界文字数書いてないからマジでやばい文字数いけるんじゃないの?えこ...
 
Observability Concepts EVERY Developer Should Know -- DeveloperWeek Europe.pdf
Observability Concepts EVERY Developer Should Know -- DeveloperWeek Europe.pdfObservability Concepts EVERY Developer Should Know -- DeveloperWeek Europe.pdf
Observability Concepts EVERY Developer Should Know -- DeveloperWeek Europe.pdf
 
Introducing Milvus Lite: Easy-to-Install, Easy-to-Use vector database for you...
Introducing Milvus Lite: Easy-to-Install, Easy-to-Use vector database for you...Introducing Milvus Lite: Easy-to-Install, Easy-to-Use vector database for you...
Introducing Milvus Lite: Easy-to-Install, Easy-to-Use vector database for you...
 
Enchancing adoption of Open Source Libraries. A case study on Albumentations.AI
Enchancing adoption of Open Source Libraries. A case study on Albumentations.AIEnchancing adoption of Open Source Libraries. A case study on Albumentations.AI
Enchancing adoption of Open Source Libraries. A case study on Albumentations.AI
 
20240605 QFM017 Machine Intelligence Reading List May 2024
20240605 QFM017 Machine Intelligence Reading List May 202420240605 QFM017 Machine Intelligence Reading List May 2024
20240605 QFM017 Machine Intelligence Reading List May 2024
 
Alt. GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using ...
Alt. GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using ...Alt. GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using ...
Alt. GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using ...
 
Microsoft - Power Platform_G.Aspiotis.pdf
Microsoft - Power Platform_G.Aspiotis.pdfMicrosoft - Power Platform_G.Aspiotis.pdf
Microsoft - Power Platform_G.Aspiotis.pdf
 
Removing Uninteresting Bytes in Software Fuzzing
Removing Uninteresting Bytes in Software FuzzingRemoving Uninteresting Bytes in Software Fuzzing
Removing Uninteresting Bytes in Software Fuzzing
 
20240609 QFM020 Irresponsible AI Reading List May 2024
20240609 QFM020 Irresponsible AI Reading List May 202420240609 QFM020 Irresponsible AI Reading List May 2024
20240609 QFM020 Irresponsible AI Reading List May 2024
 
Full-RAG: A modern architecture for hyper-personalization
Full-RAG: A modern architecture for hyper-personalizationFull-RAG: A modern architecture for hyper-personalization
Full-RAG: A modern architecture for hyper-personalization
 
Presentation of the OECD Artificial Intelligence Review of Germany
Presentation of the OECD Artificial Intelligence Review of GermanyPresentation of the OECD Artificial Intelligence Review of Germany
Presentation of the OECD Artificial Intelligence Review of Germany
 
GraphSummit Singapore | The Future of Agility: Supercharging Digital Transfor...
GraphSummit Singapore | The Future of Agility: Supercharging Digital Transfor...GraphSummit Singapore | The Future of Agility: Supercharging Digital Transfor...
GraphSummit Singapore | The Future of Agility: Supercharging Digital Transfor...
 
Artificial Intelligence for XMLDevelopment
Artificial Intelligence for XMLDevelopmentArtificial Intelligence for XMLDevelopment
Artificial Intelligence for XMLDevelopment
 
Video Streaming: Then, Now, and in the Future
Video Streaming: Then, Now, and in the FutureVideo Streaming: Then, Now, and in the Future
Video Streaming: Then, Now, and in the Future
 
Essentials of Automations: The Art of Triggers and Actions in FME
Essentials of Automations: The Art of Triggers and Actions in FMEEssentials of Automations: The Art of Triggers and Actions in FME
Essentials of Automations: The Art of Triggers and Actions in FME
 

CSC103 Bits, Bytes & Binary

  • 1. S CSC 103 Bits & Bytes The Language of Computers
  • 2. Digital Data (Bits & Bytes)  Data on a computer text, numbers & pixels are stored and represented digitally.  Digital Data is read in bits and bytes by computers processors.  Bits and Bytes make up the binary language.
  • 3. Binary Language  The language of computers is binary.  Uses series of 1’s and 0’s – which represent on/off state.  Used for giving instructions.  Also used for measuring the quantity or storing data.
  • 4. Example of Binary  Morse Code (in 1844) was sent with electrical impulses over a wire which translated to dots and dashes (a form of binary code) to create messages heard by the human ear.  Evolved into telegraph/telegram messages.
  • 5. Binary Digit (Bit)  1’s and 0’s are binary digits  Bit is short for binary digit  1 bit can only be 1 or 0… so it is expanded to 8 bits or 1 byte (28) which allows for 256 combinations of 1’s and 0’s
  • 6. Binary Combinations Combinations will continue to double 512, 1024, 2048…
  • 7. 1 Byte = 8 Bit  8 bits = 1 Byte which represents enough numbers to convert to ASCII letters (or characters) of the alphabet.  1000 bytes – kilobyte  1,000,000 (million) bytes – megabyte  1,000,000,000 (billion) bytes - gigabyte
  • 8. Bits translated to Numbers  Binary can represent numbers higher than 0 and 1.  Instead of 1’s, 10’s, 100’s, 1000’s etc., like our base 10 number system, it uses binary or base 2.  It uses 1’s, 2’s, 4’s, 8’s, 16’s, 32’s, 64’s, etc. (starting from right (1’s) to left)
  • 9. Our Base-10 System (Decimal) 1 0 1 1 1000’s 100’s 10’s 1’s 1000 + 0 + 10 + 1 = 1,011
  • 10. Our Base-10 System (Decimal) 9 4 7 0 1000’s 100’s 10’s 1’s 9000 + 400 + 70 + 0 = 9,470
  • 11. Our Base-10 System (Decimal) 0 4 7 0 1000’s 100’s 10’s 1’s 0 + 400 + 70 + 0 = 470
  • 12. Bits converted to Numbers 4-bit example 1 0 1 1 8’s 4’s 2’s 1’s 8 + 0 + 2 + 1 8 + 3 + 1 = 11 (value)
  • 13. Bits converted to Numbers 4-bit example 1 1 1 1 8’s 4’s 2’s 1’s 8 + 4 + 2 + 1 8 + 4 + 2 + 1 = 15 (value)
  • 14. Bits converted to Numbers 4-bit example 1 0 1 0 8’s 4’s 2’s 1’s 8 + 0 + 2 + 0
  • 15. Bits converted to Numbers 4-bit example __ __ __ __ 8’s 4’s 2’s 1’s What binary number = 9
  • 16. Bits converted to Numbers 4-bit example 1 0 0 1 8’s 4’s 2’s 1’s 8 + 0 + 0 + 1 = 9
  • 17. Bits converted to Numbers 8-bit example 1 0 1 0 8’s 4’s 2’s 1’s 128 + 0 + 32 + 0 + 8 + 0 + 2 + 0 160 + 10 = 170 (value) 1 0 1 0 128’s 64’s 32’s 16’s
  • 18. Bits converted to Numbers 8-bit example 1 1 1 1 8’s 4’s 2’s 1’s 128 + 64 + 32 + 16 + 8 + 4 + 2 + 1 240 + 15 = 255 1 1 1 1 128’s 64’s 32’s 16’s
  • 19. Bits converted to Numbers 8-bit example 0 0 0 0 8’s 4’s 2’s 1’s 128 + 64 + 32 + 16 + 8 + 4 + 2 + 1 0 + 0 = 0 0 0 0 0 128’s 64’s 32’s 16’s
  • 20. Shortcut to Count 8-bit Count each side up to 15 1 1 1 1 8’s 4’s 2’s 1’s 8 + 4 + 2 + 1 8 + 4 + 2 + 1 240 + 15 = 255 1 1 1 1 128’s 64’s 32’s 16’s 15 * (1)15 * (16)
  • 21. Shortcut to Count 8-bit Count each side up to 15 0 1 1 1 8’s 4’s 2’s 1’s 8 + 0 + 0 + 1 + 0 + 4 + 2 + 1 9 7 1 0 0 1 __ * (1)__ * (16) 8’s 4’s 2’s 1’s
  • 22. Shortcut to Count 8-bit Count each side up to 15 0 1 1 1 8’s 4’s 2’s 1’s 8 + 0 + 0 + 1 + 0 + 4 + 2 + 1 144 + 7 = 151 1 0 0 1 7 * (1)9 * (16) 8’s 4’s 2’s 1’s
  • 23. Shortcut to Count 8-bit What binary number is 160? 0 0 0 0 8’s 4’s 2’s 1’s 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 0 + 0 = 0 0 0 0 0 __ * (1)__ * (16) 8’s 4’s 2’s 1’s
  • 24. Shortcut to Count 8-bit What binary number is 160? 160 / 16 = _____ Remainder is the 1’s ________ __ * (1)__ * (16)
  • 25. Shortcut to Count 8-bit What binary number is 160? 160 / 16 = 10 Remainder is the 1’s: 0 0 * (1)10 * (16)
  • 26. Shortcut to Count 8-bit What binary number is 160? 0 0 0 0 8’s 4’s 2’s 1’s 8 + 0 + 2 + 0 + 0 + 0 + 0 + 0 160 + 0 = 160 1 0 1 0 0 * (1)10 * (16) 8’s 4’s 2’s 1’s
  • 27. Shortcut to Count 8-bit This is essentially the Hexadecimal System 0 0 0 0 8’s 4’s 2’s 1’s 8 + 0 + 2 + 0 + 0 + 0 + 0 + 0 160 + 0 = 160 1 0 1 0 0 * (1)10 * (16) 8’s 4’s 2’s 1’s
  • 28. RGB Color translated to Hexadecimal Color  Hexadecimal Color is used to describe RGB color on web pages.  It uses 16’s and 1’s (in 2-digits) but uses letters to represent 10-15 For Example:  RGB: 255 255 255 (white – highest number)  Hex: #FF FF FF or #FFF
  • 29. Credits  www.mathisfun.com  introcomputing.org  sticksandstones.kstrom.com  e-tutes.com  Richard Homa ©2019