eQuiz - Multiple choice test on C # - part 2

  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

May be interested

  • Test on JAVA test P5Test on JAVA test P5
    do you like java programming and want to learn useful knowledge to apply to work? to meet the needs of readers, network administrators have collected and sent a series of quiz questions about java programming. invite your reference.
  • JAVA test on P3JAVA test on P3
    java is a high-level programming language, if you are interested in learning about this programming language, the following test of network administrator will give you lots of useful information.
  • eQuiz - Multiple choice test on HTML knowledgeeQuiz - Multiple choice test on HTML knowledge
    in this test, we will proceed with the small html test, there will be 30 questions in total with no response time, you must choose the answer in each question. can continue to the next sentence.
  • Test on JAVA P10 testTest on JAVA P10 test
    multiple choice questions on java programming help you test your basic knowledge of this programming language. the set of questions includes 10 sentences to try.
  • eQuiz - Multiple choice test on Java Swing Practice - Part 2eQuiz - Multiple choice test on Java Swing Practice - Part 2
    in the previous article, we introduced you to part 1 of the test of basic java swing knowledge. and below is part 2 of the quiz series with 14 questions, including some questions with many different answer options.
  • Testing test on JAVA P2Testing test on JAVA P2
    multiple choice questions on java programming help you test your basic knowledge of this programming language. the set of questions includes 10 sentences to try.
  • eQuiz - Multiple choice test on XHTMLeQuiz - Multiple choice test on XHTML
    to be able to compare html and xhtml readers can refer to html and xhtml articles, but if you want to start familiarizing with new things related to xhtml, you can try some of the multiple choice questions below. here to see where your level of knowledge is.
  • eQuiz - Multiple choice test on SQLeQuiz - Multiple choice test on SQL
    this is a small test of the sql database administration system, there will be 10 questions in total with no time for answering each sentence.
  • eQuiz - Multiple choice test on Java Swing PracticeeQuiz - Multiple choice test on Java Swing Practice
    welcome to the test series of tipsmake.com with topics related to the fields of information technology. and this time we will continue with the java swing practice test, a total of 13 questions will be answered with no time to answer each sentence. there will be some questions with many different answer options
  • eQuiz - A multiple choice test on SEO - Part 1eQuiz - A multiple choice test on SEO - Part 1
    seo - search engine optimization, a total of 18 questions will be answered with no time limit for answering each sentence.