Which is the String method used to compare two strings with each other?
A. Compare To()
B. Compare()
C. Copy()
D. ConCat()
Answer: Option B
A. Compare To()
B. Compare()
C. Copy()
D. ConCat()
Answer: Option B
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