Binary Flashcards
Explain Binary in Computer Science
Binary is a numeric system that only uses two digits “0” and “1”
What is the idea of boolean logic?
All values are either true or false
What is the name of a single binary digit?
“Bit”
What does a single binary digit, Bit, represent?
A single binary digit, bit, “0” will represent “False.”
A single binary digit, bit, “1” will represent “True.”
Define “Byte”
A “Byte” represents 8 bits
28 or 256 different values
How is the place value in a binary system followed?
It’s followed by exponents
20, 21, 22, 23, 24, 25, 26
=
1, 2, 4, 8, 16, 32, 64, 128, 256
How do you convert from decimal into binary
- Divide the number by 2
- Take note of its remainder
- Repeat until you’re left with a remainder of 1 that can’t get smaller
- Write the remainders from last to first
- That will be it’s binary number
Convert the number 86 into binary
86/2 = 43 (0 remainders)
43/2 = 21 (1 remainder)
21/2 = 10 (1 remainder)
10/2 = 5 (0 remainders)
5/2 = 2 (1 remainder)
2/2 = 1 (0 remainders)
1/2 = 0 (1 remainder)
172 = 1010110
How are negative numbers represented in binary?
The leftmost binary digit will be “1” if “Negative”
or “0” if “Positive”
Define “Floating Point” numbers
It’s a mode of representing numbers with two sequences of bits
Explain how Floating Point numbers are organized?
The first sequence represents the digits in the number
The second sequence represents the exponent (Position of the decimal point.)
What does “ASCII” Represent
“ASCII” stands for “American Standard Code for Information Interchange.”
Explain ASCII
ASCII is a character encoding that uses numeric codes to represent characters.
(Uppercase Letters, Lowercase Letters, numbers, punctuation symbols.)