- Online Exam Test Papers | - MCQs[multiple choice questions and answers ] | - Mock Test Papers | - Practice Papers | - Sample Test Papers |

Question:
What result will you get when you run the following LINQ query in .Net framework 4.0?

List<string> alphabets = new List<string>() { "whats", "new", "in", "aspnet" };
  var alphabetsquery = from alphabet in alphabets select alphabet.Substring(0, 1);
  foreach (var alpha in alphabetsquery)
  {
    Response.Write(alpha);
  }

1.wina

2.whats

3.whatsnewinaspnet

4.aspnetinnewwhats

Posted Date:-2022-08-16 06:23:01


More MCQS Questions and answers

Search