What is the output of the following program?
for(;;)
{
Statements
}
Error
Statements will run forever
This an infinite loop
Both (B) and (C)
What is the objective of the code given below if it is executed on the Arduino Uno?
#include<EEPROM.h> int pin=13; void setup() { pinMode(pin,OUTPUT); Serial.begin(9600); { void loop() for(int i-0; i<EEPROM.length(); it+) { EEPROM.write(i, 1) digitalWrite(pin,HIGH; exit(0); }
Clear EEPROM
Fill EEPROM with 1's
Export EEPROM data
Fill EEPROM with 0's
for(;;) { Statements }
Statemernts will run forever
#include<EEPROM.h> int pin=13; void setup(){ pinMode(pin,OUTPUT); Serial.begin(9600); void loop(){ for(int i-0; i<EEPROM.length(); i++) { EEPROM.write(i, 1); digitalWrite(pin, HIGH); exit(0); }
Predict the output of the following code if the object is moving towards the sensor.
int op = 6; int isBarrier = HIGH; void setup() { pinMode(op, INPUT) Serial.begin(9600); } void loop(){ isBarrier = digitalRead(op); if (isBarrier == LOW) { Serial.println("1+"); } else{ Serial.print("clear+"); delay(100); }
clear+clear+1+1
1+1+clear+1
1+1+clear+clear
clear+clear+clear+clear
Use internet for collecting and sharing data
Need microcontrollers
Use wireless technology
Are completely safe
Partition larger task into smaller tasks
Code reusability
Manage complexity
All of these
ATmega328m
ATmega328P
ATmega2560
None
Add on modules
extra peripherals
connectivity modules
another arduinos
True
False
May be
None of the above
Massimo Banzi
Kevin Ashton
Tim berner Lee
None of the Above
Python
JAVA
Android
C++
void setup(), void loop()
void setup(), void main()
void main(), void loop ()
void setup(), void event ()
VHDL programming
IDE
ICSP
इनमें से कोई नहीं
Open source programmable circuit board.
proprietary programmable circuit board.
Open source non-programmable circuit board.
None of the Above.
50-60
0-1023
0-255
Arduino Duemileanove
Arduino Diecimila
Arduino Esplora
Arduino Due
Analog
Digital
Both A & B
1
2
3
4
// (two adjacent slashes )
/**/
*/ */