KPIT Technologies interview question

Basic electronics questions were asked with c programming