Quiz Yourself: C# Basics
Check your understanding of C# case sensitivity, syntax rules, type casting, and control flow structures.
We'll cover the following...
We'll cover the following...
C# Basics Quiz
1.
What is the final value of the variables x and y after executing the following code?
int x = 5;
int y = 10;
(x, y) = (y, x + y);
A.
x becomes 10 and y becomes 15.
B.
x becomes 10 and y becomes 20.
C.
x becomes 15 and y becomes 15.
D.
The code causes a runtime error due to circular dependency.
1 / 14