eQuiz - Multiple choice test on C # - part 2

We will continue with part 2 of the small test series on C #, there will be 15 questions in total with no time to answer each sentence.
  1. Question 16: The correct header for a class intended to be used is:
    1. class MyClass IFace
    2. class MyClass; IFace
    3. class MyClass: IFace
    4. class MyClass {IFace}
  2. Question 17: For class to use interface it must:
    1. Inheriting the characteristics of the interface
    2. Contains methods like interfaces
    3. Create an interface object
    4. All the answers above
  3. Question 18: Any class directly or indirectly expand the following class:
    1. System
    2. Object
    3. Drawing
    4. Console
  4. Question 19: Composition concept determines that you can:
    1. Compile good code with C #.
    2. Compose C # projects with different objects.
    3. Reduce errors by rewriting during programming.
    4. All the answers above.
  5. Question 20: Polymorphism occurs when methods of subclasses
    1. Override parent class methods but still maintain deployment.
    2. Maintain the same return type and parameters as the parent class, but the implementation is different.
    3. There are return types and parameters different from the parent class.
    4. Is virtual.
  6. Question 21: To export multidimensional array values, Console.WriteLines (___):
    1. myArray [1] [3];
    2. myArray [1,3];
    3. myArray {1} {3};
    4. myArray (1), (3);
  7. Question 22: All methods in abstract base class must be declared abstract.
    1. It's correct
    2. False
  8. Question 23: Methods that are abstractly declared in the base class must show the deployment at the time of declaration.
      1. It's correct
      1. False
  9. Question 24: Code:
     public class B: A {} 
      1. Define a class that derives all methods of A.
      1. Define a class that instructs the protected and public methods of A.
      1. Cod
      2. Both A and B.
      3. e on error.
  10. Question 25: Suppose that: public class B: A {public B (int i): base (i) {}} compile and run correctly, what can we conclude about constructors in class A?
      1. A constructor takes parameters of type i.
      1. This is just the default constructor.
      1. A constructor takes a parameter of type int.
      1. A and B
  11. Question 26: The classes declared with the sealed keyword cannot be the base class?
    1. It's correct
    2. False
  12. Question 27: A method . an exception when the method detects a problem occurs.
      1. Try
      1. Catche
      1. Throw
      1. A and B
  13. Question 28: Exception objects are derived from class?
      1. Try
      1. Catch
      1. Exception
      1. Event
  14. Question 29: An abstract class .
      1. May contain instance variables
      1. May contain a constructor
      1. Can expand another class
      1. All the answers above.
  15. Question 30: A block . with code can throw an exception.
      1. Try
      1. Catch
      1. Exception
      1. A and B
5 ★ | 1 Vote