TATA ELXSI Interview Question

Very basic electronics and coding questions.