Quiz Yourself: Additional Features
Test your knowledge of the C# programming language additional features.
We'll cover the following...
We'll cover the following...
Technical Quiz
1.
What is the fundamental difference between a traditional switch statement and a modern switch expression in C#?
A.
A switch statement is meant for mathematical operations, whereas a switch expression is exclusively for string manipulation and formatting.
B.
A switch statement executes blocks of code for control flow, whereas a switch expression evaluates directly to a single returning value.
C.
A switch statement uses the yield return keyword to produce values, whereas a switch expression relies exclusively on the break keyword.
D.
A switch statement evaluates data asynchronously in the background, whereas a switch expression blocks the main thread until it evaluates.
1 / 12