Logic Flashcards

You may prefer our related Brainscape-certified flashcards:
1
Q

What do logical operators include, where are they used. What are they

A

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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is operator precedence

A

Order in which you apply the operators in a mathematical equation
1. Brackets
2. NOT
3. AND
4. OR

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What is a truth table

A

A table showing all possible combinations of the inputs and outputs of an operator

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What is a logic circuit

A

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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly