C# library quiz

  • Admin
  • 1 min read

Nine questions on collections, LINQ, exceptions, files and async/await.

C#

C# library quiz

9 questions, instant feedback

Question 1 of 9 Which collection gives O(1) lookup by key?
Question 2 of 9 What does a List do when it grows?
Question 3 of 9 Which LINQ method transforms each element?
Question 4 of 9 What does deferred execution mean for a LINQ query?
Question 5 of 9 Which exception should wrap an invalid argument?
Question 6 of 9 What does a finally block do?
Question 7 of 9 What does using do for a file stream?
Question 8 of 9 What should an async method return when it produces no value?
Question 9 of 9 Why avoid .Result on a Task?

Your answers stay in this browser. Nothing is sent to a server.