Accenture Interview Question

given some code snippets and asked for outputs