Circuit Elements
Coding
Binary and Resistors
Arrays
Schematics
100
How can you distinguish and LED cathode from an anode?
Cathodes have: Flat side bigger inside shorter wire
100
How many seconds is the following code delaying? delay(500)
half a second
100
What are the color bands for a 10k ohm resistor.
Brown, Black, Orange
100
Which is the correct way to initialize an array? a. byte nums[10]; b. int nums(10); c. byte nums() = {10}; d. int nums()= {1,2,3,4,5,6,7,8,9,10};
a. byte nums[10];
100
Draw the schematic symbol for a resistor.
200
Which of the following is a polar circuit element? a. LED b. Resistor c. Buzzer d. Ceramic Capacitor
a. LED
200
Write a for loop that starts at 2 and increases by 1 while your variable is less than 8. The loop should print out your variable in each iteration of the loop.
for(int i = 2; i <8; i++) { Serial.println(i); }
200
What is 3 in binary?
11
200
nums = [2, 4, 6, 8, 10] What is nums[2]?
6
200
Draw the schematic symbol for an LED
300
Draw and label the segments of a 7-segment display.
300
What is the purpose of the following code? digitalWrite(latch, LOW); shiftOut(data, clock, MSBFIRST, B10000110); digitalWrite(latch, HIGH);
To shift out the byte 10000110 to a shift register.
300
What is 100000 in decimal?
32
300
nums = [2, 4, 6, 8, 10] What is nums[6/2]?
8
300
Draw the symbol for ground.
400
What does a debouncer circuit do?
400
What is the purpose of the following code? int nums[] = {0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14 ,15, 16, 17, 18, 19, 20}; for (int i = 0; i < nums.length(); i = i + 5) { Serial.println(nums[i]); }
print out every 5th number in the array.
400
What is the value of a resistor with color bands: blue, orange, black?
63 ohms
400
nums = [2, 4, 6, 8, 10] What is nums[nums[1]]?
10
400
Draw and identify output pins on a shift register.
500
What does common anode mean?
Elements that are common anode share power instead of ground
500
What is the purpose of the following code? if(digitalRead(8)==HIGH) { Serial.println("hi"); }
To print out "hi" to the serial monitor if the input connected to pin 8 is high.
500
What is the value of a resistor with color bands: white, red, orange?
92,000 ohms
500
nums = [2, 4, 6, 8, 10] What is nums[3-nums[0]]?
4
500
Draw and identify the clock, data, and latch pins on a shift register.
M
e
n
u