semester 1 Flashcards

1
Q

What are smart systems?

A

Smart systems use sensors to gather data, transmit it to control units that describe and analyse a
situation, to make decisions and control actuators to perform “smart” actions.

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

What is a sensor?

A

A device that measures a physical property

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

What are control units?

A

Computers or microcontrollers that can be programmed to perform advanced functions.

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

Actuators

A

Devices that affect the physical environment by doing work (actual work)

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

Binary

A

Information stored in the form of 0 and 1

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

How is Boolean function similar to binary?

A

In both systems there are two states 0 and 1 vs true and false

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

What is the Boolean function?

A

The concept of boolean is that there are only two possible states true and false.

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

What are the boolean gates?

A

Boolean gates are components that take one or more inputs and implement a Boolean function (determining true or false)

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

The types of Boolean gates?

A

(DULL ROUND TEETH) And gate- both streams of information has to be true to get a true output

(SHARK TEETH) Or gate- either one or both has to be true to get true output

(TRIANGLE) Not gate- Inverts the input

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

What are truth tables used for?

A

They are used to represent the result of a logical expression (Boolean) for all possible combinations of the input values.

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

Logical Circuits

A

A graphical way to represent logic (like a flowchart) using logical actions and gates.

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

What are:
Bit-
Byte-
ASCII

A

Bit

A bit of information stores a single binary value

Byte

8 bits of information form a byte.

ASCII

The American Standard Code for Information Interchange is a data interchange format that allows the encoding of letters, symbols, etc into number equivalents that can be stored as binary values.

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

Comments

A

Commenting in python is done by putting a # hash symbol before text. Anything after the # is considered a comment on the same line.

We use comments to write ‘notes’ or ‘document’ sections of code.

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

Console

A

The console is where the python interpreter runs (i.e. command line). This provides an interactive means to talk to Python (via input provided).

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

Output

A

We can display output to the user on the console using the print() syntax.

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

Data Types

A

Python allows for storage and use of certain types of data (data types). The basic ones we talked about here are: string (i.e. text), integers (whole numbers), and floats (decimals).

17
Q

Variables

A

We can use a variable to store values temporarily (they exist in memory while your python program is running).

18
Q

input

A

We can get input from the user on the console using the input() syntax. Note that the value provided from input() is always a string.

19
Q

Remainder

A

x%y

20
Q

Rounding

A

round(x, precision)

21
Q

power

A

x**y

22
Q

get data types

A

type(x)

23
Q

Converting between data types

A

to intiger- int(x)

to float- float(x)

to string- str(x)

24
Q

Module

A
Value of PI
math.pi
Degrees to radians
math.radians(x)
Radians to degrees
math.degrees(x)
Sine
math.sin(x)
Cosine
math.cos(x)
Tangent
math.tan(x)
Square Root
math.sqrt(x)
Round down
math.floor(x)
Round up
math.ceil(x)