Main content
Course: Computers and the Internet > Unit 1
Lesson 1: Bits and bytesHow do computers represent data?
When we look at a computer, we see text and images and shapes.
To a computer, all of that is just binary data, 1s and 0s.
The following 1s and 0s represents a tiny GIF:
This next string of 1s and 0s represents a command to add a number:
You might be scratching your head at this point. Why do computers represent information in such a hard to read way? And how can 1s and 0s represent so many different things? That's what we'll explore in this lesson.
To start off, check out the next video from Code.org where engineers from Microsoft and Adafruit introduce the basics of bits and binary data.
Want to join the conversation?
- Why do computers use 1s and 0s specifically? Wouldn't it become very challenging for them to convert trillions of 1s and 0s so using 2s, 3s, 4s, etc would shorten the input they need to process?(50 votes)
- It really has more to do with the way computers work. At the fundamental level, the transceiver is how the computer interprets anything (this is where you can find binary). A wire can either be sent electrical signals, or it cannot (there is no in between for on and off after all). This means that the representation for when a wire is sent an electrical signal has to be of 2 possible values. As such, binary is used.(135 votes)
- 1)
How much jargon does one need to know before beginning the course?
2) Is there a jargon dictionary?
3) What is a GIF?(20 votes)- Good question! There's a lot of jargon in the world of computers, so it's possible that I use jargon that some folks aren't familiar with.
A GIF is a type of image file that's popular on the internet these days, but you're right, "GIF" is jargon. I'd encourage learners to search the internet for jargon that is unfamiliar or ask a question as you've done here. I can then decide whether to reword something to avoid the jargon.
There is a vocabulary review here:
https://www.khanacademy.org/computing/ap-computer-science-principles/ap-csp-exam-preparation/prepare-for-the-2019-ap-cs-p-exam/a/vocabulary-review
That only goes over the high-level vocabulary that's covered by the exam, it does not include all the jargon used in the articles and exercises.(28 votes)
- comments are so funny(27 votes)
- how is this class going to get better?(6 votes)
- doing AP comp sci this year and I have no idea what im doing and no prior comp sci knowledge lmao. wish me luck(18 votes)
- When you get used to it, it's not that hard, but if it's still difficult for you then you may want to practice coding in your free time(4 votes)
- why do we have to use 1 and 0's why not different numbers?(4 votes)
- We use base 10 because we have 10 fingers. Computers at the lowest level only understand On/Off. On is represented by a 1 and off is represented by a 0. So we talk to computers using a series of ons and offs (1s and 0s).(17 votes)
- How do software engineers simplify this coding process? Or do they end up having to enter in all of those ones and zeros(4 votes)
- Nobody really programs in binary code anymore. People realized a while ago how difficult it is to write programs in binary, so they created alternative programming languages that were much easier to use. Now, we use languages such as Javascript and Python. If you are interested in learning to program, Khan Academy has lessons for beginners.(15 votes)
- why would i learn this if i can just use my laptop and roll tiktoks(11 votes)
- While it's true that technology makes many tasks easier, and TikTok can certainly be a fun way to pass the time, there are many reasons why learning is valuable. For one, gaining knowledge and skills can help you in your personal and professional life, opening up new opportunities and allowing you to achieve your goals. Additionally, learning can be a fulfilling and enriching experience, giving you a deeper understanding of the world and helping you grow as a person. So while it's okay to enjoy some entertainment on your laptop, it's also important to prioritize learning and personal growth.This answer was written using AI. Lmao(2 votes)
- me losing brain cells by looking at this(11 votes)
- Is AP Computer Science Principles good for people just getting into coding?(4 votes)
- Yes! Khan Academy's version gives a good base for learning coding and understanding how it works rather than diving into it face first.(4 votes)