C#.Net Interview Question and Answers

66. What are the features of abstract class?
 
  • An abstract class cannot be instantiated, and it is an error to use the new operator on an abstract class.
  • An abstract class is permitted (but not required) to contain abstract methods and accessors.
  • An abstract class cannot be scaled.
 
Your Name Your Email-ID
Your Answer
67. What is the use of abstract keyword?
  The modifier abstract is a keyword used with a class, to indicate that this class cannot itself have direct instances or objects, and it is intended to be only a 'base' class to other classes.
 
Your Name Your Email-ID
Your Answer
68. What is the use of goto statement?
  The goto statement is also included in the C# language. This goto can be used to jump from inside a loop to outside. But jumping from outside to inside a loop is not allowed.
 
Your Name Your Email-ID
Your Answer
69. What is the difference between console and window application?
 
  • A console application, which is designed to run at the command line with no user interface.
  • A Windows application, which is designed to run on a user’s desktop and has a user interface.
 
Your Name Your Email-ID
Your Answer
70. What is the use of return statement?
 
    The return statement is associated with procedures (methods or functions). On executing the return statement, the system passes the control from the called procedure to the calling procedure. This return statement is used for two purposes :
  • to return immediately to the caller of the currently executed code
  • to return some value to the caller of the currently executed code.
 
Your Name Your Email-ID
Your Answer