Multiple Choice
Look at the following code sample that creates an array of Pet structure objects: struct Pet
{
Public string name;
Public int age;
Public string type;
}
Const int SIZE = 4;
Pet[] cats = new Pet[SIZE];
Which one of the following statements assigns the string "Pickles" to the name member of cats[2]?
A) "Pickles" = cats[2];
B) cats[2].name = "Pickles";
C) cats.name[2] = "Pickles";
D) cats[2].name("Pickles") ;
Correct Answer:

Verified
Correct Answer:
Verified
Q37: You will find the ImageList control in
Q38: Which one of the following is not
Q39: Look at the following code sample: enum
Q40: The _ method removes specified characters from
Q41: In code, you can determine the number
Q43: Because char variables can hold only one
Q44: The _ method returns the lowercase equivalent
Q45: The process of dividing a string into
Q46: When you declare an enumerated type, the
Q47: Assume the following declarations:<br>enum Days { Mon,