Logic Flashcards
What do logical operators include, where are they used. What are they
Logical operators or Boolean operators include AND, OR, Not
They are used in selection statements such as IF
Logical value combines logical data, which only uses 2 values true or false (Boolean). 2 of these truth values are combined to give another truth value
With performing calculations computers take decisions on the results. The computer has only 2 options, act or not act. It will decide to do so depending on the logical value of a data item. If TRUE computer acts, if FALSE no action occurs
TRUE and FALSE are the only 2 data values allowed in logical operations. They can be combined to determine how the computer takes a decision
AND is used when the result needs to be TRUE only when both items are TRUE
OR is used when the result needs to be TRUE when either data items is TRUE
NOT is used when the result needs to be the opposite of the item, so NOT TRUE becomes FALSE and NOT FALSE becomes TRUE
What is operator precedence
Order in which you apply the operators in a mathematical equation
1. Brackets
2. NOT
3. AND
4. OR
What is a truth table
A table showing all possible combinations of the inputs and outputs of an operator
What is a logic circuit
Electronic circuit that has the inputs and the outputs that follow one of the Boolean operators. The three logic operators AND, OR, and NOT are very easy to build as electronic circuits are known as logic circuits