Checking It

Select the correct answer to the following questions.

Multiple Choice

1:Which of the following statements is true?
  1. An attribute is implemented using a property.

  2. An attribute is implemented using a field.

  3. An attribute is implemented using a property and a field.

  4. An attribute is implemented using a property, field, or both.

2:A friend property can be accessed from:
  1. Anyone in the same assembly and outside it.

  2. Anyone in the same assembly.

  3. Anyone in the same namespace.

  4. Anyone in the same class.

3:A read-only property has:
  1. A Set block only.

  2. A Get block only.

  3. A Get block and sometimes a Set block.

  4. Both a Get and a Set block.

4:A calculated property ...

Get Visual Basic® .NET by Example now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.