Microchip Technology interview question

Questions from Digital Integrated Circuits and Obiected-Oriented Programming.