Subject
Body
Address
Salutation
What is the output of the following program?
for(;;) { Statements }
Error
Statemernts 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(); i++) { EEPROM.write(i, 1); digitalWrite(pin, HIGH); exit(0); }
Clear EEPROM
Fill EEPROM with 1's
Export EEPROM data
Fill EEPROM with 0's
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
What will be the output of the following code snippet?
d={3,4,5} for k in d: print(k)
{3, 4, 5},{3, 4, 5}, {3, 4, 5}
345
syntax error
None of the above
Solar System
Digestive system
Both A and B
Transport
Physical
Data-link
Application
UTP
Fiber-Optic
STP
Coaxial
Radio
Microwave
Sound
Mechanical
Network
Data Link
Presentation
IP
UDP
TCP
Telnet
FTP
None of These
2
3
4
5
ATmega328m
ATmega328P
ATmega2560
None
#
$
%
!
General PCB
Connectivity circuit boards
Arduino shields
Other high-end Arduino boards
only loop()
only setup()
Setup() and loop()
can be either loopO or setupO