eQuiz - Multiple choice test on C # - part 2
- Question 16: The correct header for a class intended to be used is:
- class MyClass IFace
- class MyClass; IFace
- class MyClass: IFace
- class MyClass {IFace}
-
- Question 17: For class to use interface it must:
- Inheriting the characteristics of the interface
- Contains methods like interfaces
- Create an interface object
- All the answers above
-
- Question 18: Any class directly or indirectly expand the following class:
- System
- Object
- Drawing
- Console
-
- Question 19: Composition concept determines that you can:
- Compile good code with C #.
- Compose C # projects with different objects.
- Reduce errors by rewriting during programming.
- All the answers above.
-
- Question 20: Polymorphism occurs when methods of subclasses
- Override parent class methods but still maintain deployment.
- Maintain the same return type and parameters as the parent class, but the implementation is different.
- There are return types and parameters different from the parent class.
- Is virtual.
-
- Question 21: To export multidimensional array values, Console.WriteLines (___):
- myArray [1] [3];
- myArray [1,3];
- myArray {1} {3};
- myArray (1), (3);
-
- Question 22: All methods in abstract base class must be declared abstract.
- It's correct
- False
-
- Question 23: Methods that are abstractly declared in the base class must show the deployment at the time of declaration.
-
- It's correct
-
- False
-
- Question 24: Code:
public class B: A {}
-
- Define a class that derives all methods of A.
-
- Define a class that instructs the protected and public methods of A.
-
- Cod
- Both A and B.
- e on error.
-
- 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?
-
- A constructor takes parameters of type i.
-
- This is just the default constructor.
-
- A constructor takes a parameter of type int.
-
- A and B
-
- Question 26: The classes declared with the sealed keyword cannot be the base class?
- It's correct
- False
-
- Question 27: A method . an exception when the method detects a problem occurs.
-
- Try
-
- Catche
-
- Throw
-
- A and B
-
- Question 28: Exception objects are derived from class?
-
- Try
-
- Catch
-
- Exception
-
- Event
-
- Question 29: An abstract class .
-
- May contain instance variables
-
- May contain a constructor
-
- Can expand another class
-
- All the answers above.
-
- Question 30: A block . with code can throw an exception.
-
- Try
-
- Catch
-
- Exception
-
- A and B
-
5 ★ | 1 Vote
You should read it
May be interested
- Test on JAVA test P5do 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 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 knowledgein 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 testmultiple 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 2in 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 P2multiple 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 XHTMLto 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 SQLthis 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 Practicewelcome 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 1seo - search engine optimization, a total of 18 questions will be answered with no time limit for answering each sentence.