Cognizant interview question

Questions on Java basics, C memory allocations