Test your understanding of using variables for math, conversions, and clear Serial output
32-Week Course � Semester 1
Which variable type is the best choice for a temperature value like 23.5?
23.5
If int apples = 3; and int oranges = 5;, what does apples + oranges equal?
int apples = 3;
int oranges = 5;
apples + oranges
What does this formula do? float fahrenheit = (celsius * 9.0 / 5.0) + 32.0;
float fahrenheit = (celsius * 9.0 / 5.0) + 32.0;
What is the purpose of a line like const int totalPoints = 10;?
const int totalPoints = 10;
If a student scores 8 out of 10, which expression correctly calculates the percentage?
Which code best prints a label and a value clearly, like Score: 8, to the Serial Monitor?
Score: 8
Explain what happens in this code snippet:
int score = 8; int total = 10; float percentage = (score / 10.0) * 100.0; Serial.println(percentage);
Describe the simple calculator-style program you created. What values did you use, what calculation did your code perform, and what did it print to the Serial Monitor?
These results have been automatically sent to your instructor.