Midterm Flashcards

1
Q

Binary base/radix

A

2

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

binary possible values

A

0 and 1

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

binary digits

A

bit

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

Nibble

A

4 bits

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

Byte

A

8 bits

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

Word

A

16 bits

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

B01101101

A

Binary (don’t count first 0)

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

number of possible values for binary

A

2^8

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

octal base/radix

A

8

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

octal possible values

A

0-7

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

012364

A

octal (don’t count first 0)

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

octal number of possible values

A

8^5

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

3 bit direct correlation of octal and binary

A

0=000;1=001;2=010;3=011;4=100;5=101

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

hexidecimal base/radix

A

16

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

hexidecimal possible values

A

0-F

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

0xC5SF

A

hexidecimal

17
Q

hex vs binary relations (4 bits)

A

0=0000;1=0001;2=0010;3=0011;4=0100;5=0101

18
Q

how to convert decimal into binary

A

divide by 2, have quotient table and remainder

19
Q

convert decimal into octal

A

divide by 8, have quotient table and remainder

20
Q

convert decimal into hex

A

divide by 16, have quotient table and remainder

21
Q

How do you add binary

A

convert numbers into binary and then put them on top like beginner multiplication

22
Q

When using a pullup resistor, what is the state of the input when the button is pressed?

A

the pin is low when the button is pressed

23
Q

For an up/down counter, when is the output of the counter true?

A

When it has reached zero

24
Q

When are PLCs used?

A

In dirty, uncomfortable, high vibration, high EMI (electromagnetic interference) environments. In industrial and manufacturing plants.

25
Q

What built in safety features do PLCs have?

A

Convection cooling if mounted on vertical surface, opto-isolator protected inputs, transistor and relay isolated outputs, and a faraday cage.

26
Q

What is the benefit of using interrupts vs polling?

A

Avoids missing button presses.

27
Q

A pushbutton that has a default state of being connected is normally…

A

Normally closed

28
Q

What is the major difference to a do loop as compared to a while or for loop?

A

a do loop always runs once

29
Q

Two other examples of while(1);

A

while(true){} and while(x=1); if its already established in the code

30
Q

to flash a single light a 2Hz, what should the delay lengths be?

A

delay(250);

31
Q

How would you write (if x is less than 5 or equal to 10)?

A

if(x<5||x==10){blahblah}

32
Q

what is the difference between = and ==

A

= makes it that value. == checks if its the same value

33
Q

what does millis() do?

A

It returns the number of milliseconds passed since the arduino program started.

34
Q

What is an unsigned long?

A

has storage of 32 bits

35
Q

what does randomSeed() do?

A

random number generator, but always the same.