What do you know about C # P2 programming language?

  1. Question 1. In C #, which of the following preprocessing directives allows creating a level alert from a specific location in your code?
    1. cảnh báo
    2. region
    3. line
    4. lỗi
  2. Question 2. Which answer is correct when talking about exceptions in C #?
    1. Exception classes in C # are mainly taken directly or indirectly from the System.Exception class.
    2. C # exceptions are represented by classes.
    3. Both answers are correct
    4. There is no right answer.
  3. Question 3. Are assignment operators unable to overload?
    1. It's correct
    2. False
  4. Question 4. Which of the following is correct about the member functions of a class?
    1. A member function of a class is a function whose definition or prototype is in the same class definition as any other variable.
    2. The class member function works on any object of the class and has access to all members of the class for that object.
    3. The above two answers are correct.
    4. There is no right answer.
  5. Question 5. Is the System.SystemException class the base class for all predefined system exceptions in C #?
    1. It's correct
    2. False
  6. Question 6. Which of the following preprocessing directives specifies the end of a conditional directive in C #?
    1. elif
    2. endif
    3. if
    4. else
  7. Question 7. To convert a type (integer or string) into a date-time structure in C #, we use:
    1. ToString
    2. ToSingle
    3. ToChar
    4. ToDateTime
  8. Question 8. In C #, which access method allows a class to hide its member variables and functions from other class and function objects, except subclasses in the same application?
    1. Protected Internal
    2. private
    3. Protected
    4. Internal
  9. Question 9. When talking about constructor class, what is the correct answer?
    1. The constructor class is a special member function of the class, executed whenever we create a new object of that class.
    2. The constructor has the same name as the class and has no return type.
    3. Both answers are correct.
    4. There is no right answer
  10. Question 10. To convert a type to a Boolean value in C #, we use:
    1. ToBoolean
    2. ToSingle
    3. ToChar
    4. ToDateTime
3.5 ★ | 2 Vote

May be interested

  • What do you know about programming language C # P1Photo of What do you know about programming language C # P1
    c # programming language is developed based on c and c ++ programming languages. in the article below, network administrator will go with you to learn about c # programming language through multiple choice questions. let's start.
  • Multiple choice questions P2 web designPhoto of Multiple choice questions P2 web design
    currently web design is more and more interested, because a beautiful and lively website can attract many interested people. in this article, network administrators will not give articles but instead multiple choice questions related to this topic, please consult.
  • PowerPoint informatics test P5Photo of PowerPoint informatics test P5
    to make your presentation more interesting and new, tools like powerpoint will help you a lot. in this article, network administrator will learn with you about this tool through the following extremely interesting multiple choice questions.
  • PowerPoint informatics test P6Photo of PowerPoint informatics test P6
    to create an impression for a presentation with listeners, in addition to good content, beautiful powerpoint slides will help you a lot. in this article, network administrator will send a set of multiple choice questions about powerpoint.
  • Multiple choice questions about Photoshop P5Photo of Multiple choice questions about Photoshop P5
    photoshop is the most powerful and powerful image editing and editing software available today. in this article, network administrators will learn about how to use this software through extremely interesting multiple choice questions below.
  • Multiple choice questions about Photoshop P6Photo of Multiple choice questions about Photoshop P6
    in this article, let's join the network administrator to learn about photoshop software through extremely interesting multiple choice questions below. come on, get started !!