Cognizant Interview Question

Questions on java, c, oops concepts.