Cognizant Interview Question

Javascript logical questions with console outputs