Boolean Algebra Flashcards
1
Q
Imagine a class called CAR. A car class will have methods and attributes to define itself. Using the example Car describe and give an example of
- Method
- Attribute
A
Method - Drive: car moving forward - Reverse: car moving backwards Attribute - colour - wheel size
2
Q
For the class DOG give 3 attributes and 2 methods
A
Attributes 1. Breed 2. Colour 3. Age Methods 1. Bark 2. Walk
3
Q
For the class BANK ACCOUNT give 3 attributes and 2 methods
A
Attributes 1. interest rate 2. Name of bank account 3. PIN number Methods 1. Input money 2. Check total
4
Q
What is meant by a transistor?
A
Acts as a switch/ gate, regulates current
5
Q
In chip there are millions or billions of transistors. What is the function of a microchip?
A
Processor that executes instructions. Only does one thing at a time; does it really fast.