Boolean Algebra Flashcards

You may prefer our related Brainscape-certified 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
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What is meant by a transistor?

A

Acts as a switch/ gate, regulates current

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

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