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


Correct Option: C

Find more quizzes: