Home / MCQ Bank / Computer
Computer Arrays And Strings In C Sharp

What is the result of the expression string[] fruits = {"Apple", "Banana", "Orange"}; in C#?

Select the best option to verify your answer:
Show Correct Answer
Correct Answer: Option C • Declares an array with three elements

Related Computer Questions

Space signal is of how many unit? What will be the output of the following Java code? class asciicodes { public static void main(String args[]) { char var1 = 'A'; char var2 = 'a'; System.out.println((int)var1 + " " + (int)var2); } } Suppose X is the starting symbol of the given grammar with the following transition rules. Compute the value of X as the root of the parse tree for the expression: 3 & 4 % 7. X → X1 & B | B {X.value = X1.value + B.value, X.value = B.value} B → B1 % D | D {B.value = B1.value * D.value, B.value = D.value} D → num {D.value = num.value} How do you check the class of an object in R? In Data Science, what is the term for a data point that is missing a value for one or more features?