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(); it+) {
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(); it+) {
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



Online Exam Quiz for One day Exam Online Typing Test CCC Online Test 2026 Best Computer Training Institute in Prayagraj (Allahabad) Best Java Training Institute in Prayagraj (Allahabad) Best Python Training Institute in Prayagraj (Allahabad) O Level Online Test in Hindi Best Website and Software Company in Allahabad