Cadernos de Questões

Provas Favoritas

Filtros Salvos

Foram encontradas 50 questões.
#2301354

Analise o trecho de código C# a seguir:


consulta = lista

                   .Where(s => s.Length > 5)

                   .OrderByDescending (s => s)

                   .Select (s => s.ToLower());


Na plataforma .NET, obtém-se o mesmo resultado com o código:

  • consulta = from s in listawhere s.Length > 5orderby sselect s.ToLower ();
  • consulta = from s in listawhere s.Length <= 5select s.ToLower ();
  • consulta = from s in listawhere 5 < s.Lengthorderby s descendingselect s.ToLower ();
  • consulta = from s in listawhere s.Key.Length > 5orderby s.Key descendingselect s.Key.ToLower ();
  • consulta = from listawhere lista.Length > 5orderby lista descendingselect lista.ToLower ();
Fale com IAgo
IAgo - Assistente IAProva
IA
Olá! Sou o IAgo, seu assistente aqui no IAProvatec 😊
Veja como posso te ajudar:
Agora