# 2.4 – Boolean logic Flashcards

What is the operator ^

Exponentiation

(to the power of)

The operator: AND

Works by only returning TRUE if both values being compared are true

What is Binary Data Representation?

Patterns of 1s and 0s used to represent all forms of data in a digital format

Operator: DIV

Integer division

Returns a whole number only from a division without rounding

eg. 10 DIV 3 would give 3

What is a Logic Diagram?

A method of showing Boolean Logic in a diagram using a set of symbols called logic gates

(the circuits, including AND OR NOT)

Operator: MOD

Modulus

Returns the remainder left over from integer division

eg. 10 MOD 3 would give 1

Operator: NOT

NOT works by returning FALSE if the input is TRUE and vice versa

Operator: OR

OR returns TRUE as long as either value being compared is TRUE

What is a Truth Table?

The output of a logic gate/circuit for all possible combinations of inputs

What would the value of x be in:

x = “6” + “5”

65

They are both strings so are joined together instead of being added

6 + 5 = 11, “6” + “5” = 65

What is the value of x when:

x = 6 - 5

1

What is the value of x when:

x = 6*5

30

* is a multiplier

What is the value of x when:

x = 6/5

1.2

/ is a divide operator