Correct statement about strings are?
A. a string is created on the stack
B. a string is primitive in nature
C. a string created on heap
D. created of string on a stack or on a heap depends on the length of the string
Answer: Option C
A. a string is created on the stack
B. a string is primitive in nature
C. a string created on heap
D. created of string on a stack or on a heap depends on the length of the string
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