TATA ELXSI interview question

Halfwave,full wave recitifer,diff btw microprocessor and Controller,basic c program