What is the keyword used to declare a method that does not return a value in C#?
A. null
B. none
C. return
D. void
Answer: Option D
A. null
B. none
C. return
D. void
Answer: Option D
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