Multiple choice technology embedded technologies

You design a simple embedded System which glows LED and switches off at equal intervals forever.Which sequence of programming should be followed ?

  1. while(1) { LED(On) Delay(25) LED(Off) }

  2. main() { LED(On) Delay(25) LED(Off) while(1) { } }

  3. while(1) { LED(On) Delay(25) LED(off) Delay(25) )

  4. while(1) { Delay(25) LED(on) Delay(25) }

Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation

To blink an LED at equal intervals indefinitely, the code must loop continuously, toggle the LED state, and apply a delay after both turning it on and turning it off. Option 569320 correctly includes delays in both states within a while(1) loop, whereas others omit crucial delays or loops.