Programming ConceptsLesson 22Free preview
Bits and Bytes
This lesson is part of Intro to Programming · All levels
Summary
This lesson describes bits as the smallest unit of data of value 0 or 1, and bytes as a set of 8 bits. All the data on the computer is eventually stored in bits, from numbers to text. Understanding bits and bytes helps to understand storage capacity, the size of data types, and how bitwise operations work.
Key points
- Bit is a binary digit with a value of 0 or 1.
- 1 byte is 8 bits and is capable of representing 256 combinations (2^8)
- Computer data is all stored in bit form
- 1024 units of storage multiples: KB, MB, GB
Full lesson
Code examples and quizzes
Full lessons, code examples, and quizzes are available to subscribers. 5 questions.