What will the value of the result variable be after the code segment below has been run.
(round to 4 decimal places)
float result ;
int number3 = 253, number6 = 26;
float number11 = 3;
result = ( number3 - number6 ) / number11 ;
If the voltage on pin A3 is 3.954V, what value will analogRead(A3) return from the ADC?
Select all the the devices that can be used by the Arduino as inputs
Electromagnets
Light Sensor
Lights
Temperature sensor
Touch Sensor
Select all the the devices that can be used by the Arduino as inputs
Temperature sensor
Motors
Pressure Sensor
Pressure Sensor
Motors
What is the maximum DC Current per I/O Pin of the Adruino Uno?
What will the value of the result variable be after the code segment below has been run.
int number1 = 93;
int answer = 128;
if( number1 > 49 )
{
answer -= number1 ;
}
else
{
answer += number1 ;
}
What will the value of the solution variable be after the code segment below has been run?
bool solution ;
int number2 = 10, number7 = 25, number9 = 16;
solution = number2 >= number7 && number2 > number9 ;
What will the value of the result variable be after the code segment below has been run.
int number2 = 39;
int result = 33;
if( number2 <= 83 )
{
result *= number2 ;
}
Write a C++ program to perform 128-bit encryption and decryption using XOR operation.
Your program must ask for 128-bit key and plain text then perform encryption and decryption.
The information about colours is to be stored in bits of a variable called colour. The bit
number 0 to 7, each represent 8 colours of a rainbow, i.e. bit 1 represents Blue, 2 represents Green,
and so on (see table below). Write a C++ program that asks the user to enter a number and based on
this number, an eight lined rainbow (of asterisks *) is to be displayed, such that, if the bit is ON,
respective colour is displayed otherwise black line is drawn (not visible).