# 2.4 – Boolean logic Flashcards

1
Q

What is the operator ^

A

Exponentiation
(to the power of)

2
Q

The operator: AND

A

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

3
Q

What is Binary Data Representation?

A

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

4
Q

Operator: DIV

A

Integer division
Returns a whole number only from a division without rounding
eg. 10 DIV 3 would give 3

5
Q

What is a Logic Diagram?

A

A method of showing Boolean Logic in a diagram using a set of symbols called logic gates
(the circuits, including AND OR NOT)

6
Q

Operator: MOD

A

Modulus
Returns the remainder left over from integer division
eg. 10 MOD 3 would give 1

7
Q

Operator: NOT

A

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

8
Q

Operator: OR

A

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

9
Q

What is a Truth Table?

A

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

10
Q

What would the value of x be in:
x = “6” + “5”

A

65
They are both strings so are joined together instead of being added
6 + 5 = 11, “6” + “5” = 65

11
Q

What is the value of x when:
x = 6 - 5

A

1

12
Q

What is the value of x when:
x = 6*5

A

30
* is a multiplier

13
Q

What is the value of x when:
x = 6/5

A

1.2
/ is a divide operator