Q13
Q13
__________ does not contain any code or data; it just specifies the methods
and properties that a class that implements it must provide.
A. An enumeration
B. A structure
C. An interface
D. An abstract class
Q02. Which one of the following enables you to completely separate the names and
signatures of the methods of a class from the method’s implementation?
A. An enumeration
B. A structure
C. An interface
D. An abstract class
Q03. Which one of the following are similar to interfaces in many ways?
A. An enumeration
B. A structure
C. A delegate
D. An abstract class
Q13. Which rule is not required to meet, when you implement an interface?
A. The method names and return types match exactly
B. Any parameters (including ref and out keyword modifiers) match exactly
C. The methods have override keyword
D. All methods implementing an interface must be publicly accessible if you are
using an explicit interface implementation
Q15. The Horse class inherits from the Mamma class and implements ILandBound. How
do you define it?
A. class Horse : Mammal ,ILandBound { ... }
B. class Horse : Mammal : ILandBound { ... }
C. class Horse : ILandBound, Mammal { ... }
D. class Horse : Mammal inherits ILandBound { ... }
Q20. You can use public access modifier to a method when you explicitly
implementing an interface.
A. True
B. False
Q21. You are allowed to define any fields in an interface, not even static fields.
A. True
B. False
Q23. You cannot specify an access modifier for any method in an interface.
A. True
B. False
Q25. How can you prevent a class from being used as a base class?
A. By adding the abstract keyword
B. By adding the sealed keyword
C. By adding the private keyword
D. By adding the protected keyword