Report Bug

Qus

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); 
}
Qus

नीचे दिए गए कोड का उद्देश्य क्या है यदि इसे 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); 
}


A. Clear EEPROM
B. Fill EEPROM with 1's
C. Export EEPROM data
D. Fill EEPROM with 0's


Solution
B. Fill EEPROM with 1's



CCC Online Test Python Programming Tutorials Best Computer Training Institute in Prayagraj (Allahabad) Online Exam Quiz O Level NIELIT Study material and Quiz Bank SSC Railway TET UPTET Question Bank career counselling in allahabad Best Website and Software Company in Allahabad Website development Company in Allahabad