What will the value of the solution variable be after the code segment below has been run.
int solution = 80;
int number56 = 16, number15 = 7;
solution -= number56 * number15 ;
What will the value of the solution variable be after the code segment below has been run.
int solution = 8;
int number1 = 16, number10 = 3;
solution *= number1 - number10 ;
The formula below decribes how to convert a temperature on the Fahrenheit scale to a temperature on the Kelvin scale.
TempK = (TempF − 32) × 5/9 + 273.15
Using the variables below Write one line of code to implement the formula
// Kelvin temperature
float TempK;
// Fahrenheit temperature
float TempF = 72;
//One line of code to calculate temperature in Kelvin
=
Select all the the devices that can be used by the Arduino as outputs
Display devices
Display devices
Light Sensor
Lights
Lights
Select all the the devices that can be used by the Arduino as outputs
Motors
Lights
Motors
Display devices
Lights
What will the value of the result variable be after the code segment below has been run.
int result ;
int number4 = 6,number11 = 9;
result = number4 + ++number11;
What will the value of the result variable be after the code segment below has been run.
bool result ;
int number3 = 17, number7 = 33;
result = number3 > number7 ;
What will the value of the solution variable be after the code segment below has been run.
bool solution;
int number3 = 9, number7 = 29;
solution = number3 == number7;
The formula below describes Newton's second law of motion
Force = Mass x acceleration
Using the variables below Write one line of code that will calculate the acceleration of a object.
// Mass in Kg
float mass = 50.3;
// Froce in N
int force = 720;
//acceleration
float accel;
//One line of code to calculate the acceleration of a object
=
What scale value would you use with analogWrite() to generate a average vlotage of 1V on PWM pin 10 ?