Using code, how to add a Separator in a menu named mnu1?
A -
mnu1.MemuItems.Add("-");
B -
mnu1.MemuItems.Add("&");
C -
mnu1.MemuItems.Add("_");
D -
mnu1.MemuItems.Add(Menu.Separator);
9-
Value types differ from reference types as ____.
A -
data in the value type variable is easily accessible
B -
Variables of the value directly contain their data, whereas variables of the reference types store references to objects.
C -
variables of the reference types directly contain their data, whereas variables of the value store references to objects.
D -
None of the above
10-
using System;
class Myclass
{
int Var1=1; int Var2;
public static void Main(){
int LocalVar=3;
MyClass m1=new MyClass();
Console.WriteLine(m1.Var1.m1.Var2+LocalVar);
}
}
The output of above code will be:
A -
The code does not compile because local variable is not initialized correctly
B -
The code does not compile because Var2 is not initialized