Logic Diagrams + Truth Tables (Logic and Languages) Flashcards
1
Q
What does 1 and 0 represent in binary?
A
1 = True
0 = False
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
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
4
Q
use in irl flashies
A