Pregunta de entrevista de Caterpillar

Simple basic questions in digital electronics and oops concepts