Caterpillar Interview Question

Simple basic questions in digital electronics and oops concepts