Pergunta de entrevista da empresa Tata Consultancy Services

what is the scope of global and local variable?