Pular para o conteúdo principal

Questão de TI - Desenvolvimento de Sistemas — Linguagem C# ("CSharp) — VUNESP 2019

TI - Desenvolvimento de SistemasLinguagem C# ("CSharp)
Código
vu140502
Banca
VUNESP
Órgão
Pref Olímpia
Ano
2019
Cargo
AnaTI ( )
Observe o método C# a seguir: public static void Main() {    try {      try {      int x = 0;      int y = 10 / x;    } catch (DivideByZeroException){      Console.Write(“1”);      throw;    } catch (ArithmeticException){      Console.Write(“2”);      throw;    } catch (Exception){      Console.Write(“3”);      throw;    }   } catch {   Console.Write(“4”);   } } A execução desse código vai imprimir no console a mensagem:
  1. A14
  2. B34
  3. C1234
  4. D3214
  5. E4321
Revelar gabarito e comentário

GabaritoA — 14

Link permanente: /questoes/vu140502