P4-M 4/28 Binary Lesson HACKS
Learn the basics of binary including truth tables, boolean expressions, binary conversions, and binary searches.
Lesson Note Taker
Fill in the blanks below during the binary presentation. You can visit our website here!
Binary
- Binary is a base 2 number system.
- 0 represents false and 1 represents true.
- A byte is the minimum unit of binary information stored in a computer system.
Boolean Expressions
- A _ ___ is a logical statement that is either TRUE or FALSE and compares data.
Truth Tables
- The logical operations shown in truth tables are , , , and .
# AND
5 > 3 and 5 == 3 + 2
5 < 3 and 5 == 5
5 == 5 or 5 != 5
5 < 3 or 5 != 5
age = 18
citizen = True
if age >= 18 and citizen:
print("You are eligible to vote.")
else:
print("You are not eligible to vote.")
Binary Conversions
Binary to Decimal
- We can count in binary by using powers of __.
- In binary, we read from to .
- 0111 has a value of __.
Binary to Hexadecimal
Binary to ASCII
Binary Search
- For a binary search, the list must be _.
- In a binary search, computers start at the _(front,middle,end)/
- The number of steps required in a binary search follows the equation: _.
- Binary searches also work with a list of __. We can sort them alphabetically.
- Binary searches can be represented in __ diagrams.
Hacks
You will NOT be awarded any points for sections that are INCOMPLETE
Note Taker
- Fill in all of the blanks above.
Lesson Quiz
- Complete this lesson quiz2. SCREENSHOT SCORE and paste it here (or paste screenshot with submission)