Programming ConceptsLesson 25Free preview
Boolean Algebra
This lesson is part of Intro to Programming · All levels
Summary
This lesson discusses Boolean algebra, the basic logic behind the program and digital circuit conditions. The three main operations are AND, OR, and NOT that work at the value true/false. Laws such as commutative, associative, and distributive facilitate the simplification of logical expression, and truth tables help verify it.
Key points
- Major Boolean operations: AND, OR, and NOT
- AND true if all the operands are true; OR true if one is true
- NOT reversing the logic value of the operand
- The truth table lists the results of all input combinations
Full lesson
Code examples and quizzes
Full lessons, code examples, and quizzes are available to subscribers. 5 questions.