Cadernos de Questões

Provas Favoritas

Filtros Salvos

Foram encontradas 60 questões.
#1874760

Considere o seguinte código escrito na linguagem PHP. <?php function inversa($x) {     if ($x==0) {      throw new Exception(' exception ');   }    return 1/$x; } try   {      echo inversa(0);      echo " try "; } catch (Exception $e) {      echo " catch ";      echo $e->getMessage(); } finally {      echo " finally "; } Ao se executar esse código, será impressa na tela a seguinte sequência de palavras:

  • try catch exception finally
  • try catch finally
  • catch exception finally
  • catch exception
  • finally catch exception
Fale com IAgo
IAgo - Assistente IAProva
IA
Olá! Sou o IAgo, seu assistente aqui no IAProvatec 😊
Veja como posso te ajudar:
Agora