2.4 – Boolean logic Flashcards

1
Q

What is the operator ^

A

Exponentiation
(to the power of)

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

The operator: AND

A

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

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

What is Binary Data Representation?

A

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

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

Operator: DIV

A

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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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)

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

Operator: MOD

A

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

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

Operator: NOT

A

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

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

Operator: OR

A

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

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

What is a Truth Table?

A

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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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

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

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

A

1

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

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

A

30
* is a multiplier

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

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

A

1.2
/ is a divide operator

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