What is the purpose of the 'is' keyword in C#?
A. Checks if two objects are equal
B. Compares two values
C. Checks if an object is compatible with a type
D. Checks if an object is null
Answer: Option C
A. Checks if two objects are equal
B. Compares two values
C. Checks if an object is compatible with a type
D. Checks if an object is null
Answer: Option C
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