What are the three logic Gates?
What do logic gates look like
How do you combine Boolean operators?
What are Logic Gates?
Why data is represented in binary form
A computer is basically a collection of transistors and circuits. These components have two states:
These two states can easily be represented by using binary:
State
State refers to the output of a circuit. If a circuit has one input and one output, and the input and output each have two states - on and off - this gives two combinations of state:
More complex circuits have many inputs, and the output state depends on the various combinations of the inputs and the logic gates they pass into.
Logic gates
In its most basic form, a computer is a collection of powered and unpowered circuits and transistors. A logic gate is a series of transistors connected together to give one or more outputs, each output being based on the input or combination of inputs supplied to it. There are three types of gate to consider:
Each type of gate can be represented either as a diagram, in algebraic form, or as a truth table.
Boolean algebra
Boolean algebra is a notation used to represent logic. For example:
This notation can also be represented using symbols:
What is the NOT gate?
What is the AND gate?
What is the OR gate?
How can you combine logic gates?
How do you generate random numbers in Python?
How do you create a randome integer between 1 and 6 inclusive?
How do you create a random real number between -5.0 and 5.0?