C# control flow quiz

  • Admin
  • 1 min read

Nine questions on conditions, switch expressions, loops, arrays and methods.

C#

C# control flow quiz

9 questions, instant feedback

Question 1 of 9 Which condition type does an if statement require?
Question 2 of 9 What does the null-coalescing operator ?? return?
Question 3 of 9 What does a switch expression need to be exhaustive?
Question 4 of 9 Which loop checks its condition after the body?
Question 5 of 9 What is the index range of new int[4]?
Question 6 of 9 Which property gives an array's length?
Question 7 of 9 What is an expression-bodied method?
Question 8 of 9 What does a method returning void produce?
Question 9 of 9 What does the params keyword allow?

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