Pergunta de entrevista da empresa CGI

Explain working of compiler? What kind of kernel programming have you done? How to detect run time error without changing code or using debug feature?