Cognizant Interview Question

In interview they asked some aptitude questions, as I mentioned c program they gave a scenario and write a code. Then some basic electrical questions.