In C#, what is the purpose of the 'this' keyword?
A. Refers to the current instance
B. Refers to the base class
C. Refers to the derived class
D. Refers to the global namespace
Answer: Option A
A. Refers to the current instance
B. Refers to the base class
C. Refers to the derived class
D. Refers to the global namespace
Answer: Option A
What is the correct syntax to declare a variable in C#?
A. num = int;
B. var num;
C. num int;
D. int num;
What is the purpose of the 'var' keyword in C#?
A. Declares a constant
B. Converts a variable to string
C. Implicitly declares a variable
D. Defines a method
Join The Discussion