Bits & Bytes
Digital Information
Circuits & Hardware
Coding
Potpourri!
100

This is the smallest unit of digital information.

What is a bit?

100

This is the type of compression likely used when saving medical records, where no information can be lost.

What is lossless compression?

100

The Arduino IDE is used for this purpose.

What is writing Arduino code?

100

This is the part of the Arduino sketch that gets executed over and over when the code is uploaded to the board.

What is the void loop() function?

100

This word describes a system that can continue to function well, even if something goes horribly wrong.

What is fault-tolerant?

200

This is the largest number of unique items that can be represented using 7 bits.

What is 128?

200

This is the decimal (base-10) equivalent of the binary number 0010 1101.

What is 45? (1 + 4 + 8 + 32)

200

This is the name for the shorter, negative leg of a diode.

What is cathode?

200

Write a line of Arduino code that declares an integer variable called greenPin and initializes its value to 8.

What is int greenPin = 8;

200

Along with Vint Cerf, this man is celebrated as one of the co-creators of the Internet.

Who is Bob Kahn?

300

This is the number of bits in 20 kilobytes.

What is 160,000 bits?

300
This is the number of bits needed to represent the following message using the ASCII system:

Meet at 5?

What is 80?

300

Arduino pins marked with a tilde (~) can be used for pulse width modulation, which allows the pin to do what?

What is simulate analog output using a digital pin?

300

Write a line of code that establishes Arduino pin 5 as an OUTPUT pin.

What is pinMode(5, OUTPUT);

300

This word means "data about a file" (such as the name of the file), rather than the contents of the file itself.

What is metadata?

400

A company has 300 employees and wants to represent each of them with a unique ID in its computer system. How many bits of memory are required to do this?

What is 9 bits?

400

This type of license is more flexible than a traditional copyright, allowing artists and creators to decide exactly how they want their work to be used and shared.

What is Creative Commons?

400

This resistance would produce a current of 120 amps from a 6V battery. Hint: Use Ohm's Law!

What is 1/20 ohm

(V = IR --> 6 = 120xR --> Solve for R by dividing by 120)

400

What is the final value of aNum after the code below finishes executing?

int aNum = 12;

aNum = aNum * 2;

aNum = aNum -1;

What is 23?

400

This term describes a creative work that is not subject to copyright and is freely available for anyone to use.

What is public domain?
500

This is the # of RGB colors that can be made using 2 bits per color channel, minus the number of bytes needed to represent the string "computers!" using the ASCII system.

What is 54? (64 - 10)

500
This is the compression rate (as a %) of a 500 KB file that has been compressed to 100 KB. 

What is 80%?

(500 - 100) / 500 = 400 / 500 = 0.8 = 80%

500

int nums[] = {2, 4, 25, 9, 15};

This is the value of nums[4] - nums[1]

What is 11? (15 - 4)

500

Suppose the variable lightVal stores the value read by a light sensor, which is connected to input pin A0. Write a conditional statement that prints "Hello" to the serial monitor if lightVal is between 100 and 500 (inclusive).

What is:

if (lightVal >= 100 and lightVal <= 500) {

   Serial.println("Hello");

}

500

Suppose an LED is connected to output pin 10 on the Arduino. Write a line of code that turns on the LED to approximately 25% brightness.

What is analogWrite(10, 64);