Logic Diagrams + Truth Tables (Logic and Languages) Flashcards

1
Q

What does 1 and 0 represent in binary?

A

1 = True
0 = False

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

What is modulus?

A

Modulus gives the remainder from a division calculation:

7 MOD 3 = 1 (7/3 = 2 remainder 1)

Many programming languages use % to represent modulus

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

What is integer division?

A

Integer division discards the remainder:

7 DIV 3 = 2 (7/3 = 2 remainder 1 - remainder is discarded)

Some programming languages use // to represent integer division

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

use in irl flashies

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