Multiple Choice
Look at the following code sample:
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
Q23: Before you can use a structure to
Q30: _ are spaces that appear at the
Q31: Subscript notation provides _ access to the
Q38: Which one of the character testing methods
Q39: Structures are value types, so creating an
Q44: The _ method returns the lowercase equivalent
Q62: Which one of the following character testing
Q63: The images stored in an ImageList control
Q64: Because enumerators represent integer values, they can
Q82: The character that separates tokens is known