Multiple Choice
Look at the following code sample: struct Pet
{
Public string name;
Public int age;
Public string type;
}
Which one of the following statements declares a Pet structure variable named hound and initializes the object's fields with their default values?
A) new Pet = hound;
B) Pet hound = new Pet() ;
C) hound = new Pet() ;
D) Pet hound;
Correct Answer:

Verified
Correct Answer:
Verified
Q17: C# allows you to access the individual
Q18: String subscripts must be at least 0,
Q19: The char data type provides a single
Q20: The _ method returns true if the
Q21: Methods for modifying strings do not actually
Q23: Before you can use a structure to
Q24: When the data in a spreadsheet is
Q25: Which one of the character testing methods
Q26: If you know the _ value for
Q27: The string data type has several methods