C#.Net Interview Question and Answers

51. What are the features of c#?
 
  • C# is a simple and powerful programming language for writing enterprise edition applications.
  • This is a hybrid of C++ and VB. It retains many C++ features in the area statements,expressions, and operators and incorporated the productivity of VB.
  • C# helps the developers to easily build the web services that can be used across the Internet through any language, on any platform.
  • C# helps the developers accomplishing with fewer lines of code that will lead to the fewer errors in the code.
  • C# introduces the considerable improvement and innovations in areas such as type safety,versioning. events and garbage collections.
 
Your Name Your Email-ID
Your Answer
52. What are the types of errors?
 
  • Syntax error
  • Logic error
  • Runtime error
 
Your Name Your Email-ID
Your Answer
53. What is the difference between break and continue statement?
  The break statement is used to terminate the current enclosing loop or conditional statements in which it appears. We have already used the break statement to come out of switch statements.
The continue statement is used to alter the sequence of execution. Instead of coming out of the loop like the break statement did, the continue statement stops the current iteration and simply returns control back to the top of the loop.
 
Your Name Your Email-ID
Your Answer
54. Define namespace?
  The namespace are known as containers which will be used to organize the hierarchical set of .Net classes.
 
Your Name Your Email-ID
Your Answer
55. What is a code group?
  A code group is a set of assemblies that share a security context.
 
Your Name Your Email-ID
Your Answer