Accenture interview question

given some code snippets and asked for outputs