C Sharp Interview Questions and Answers - 1
Question: 1
Can you prevent your class from being inherited by another class?
Yes. The keyword “sealed” will prevent the class from being inherited.
Question: 2
What is value type?
A value type is a class whose state may be passed between a client and remote service as a method parameter or return value.
For example, an account class may have account number, account owner and amount field.
These information may be passed between client and server as a method deposit parameter and a return value of method account query.
Question: 3
What does the keyword “virtual” declare for a method or property?
The method or property can be overridden.
Question: 4
Is there an equivalent of exit () for quitting a C# .NET application?
Yes, you can use System.Environment.Exit (int exitCode) to exit the applications or Application.Exit() if it’s a Windows Forms app.
Question: 5
Is there regular expression (regex) support available to C# developers?
Yes, the .NET class libraries provide support for regular expressions.
Look at the System.Text.RegularExpressions namespace.
- C# Interview Questions and Answers for Freshers
- C# Interview Questions for Experienced Professionals
- C# Interview Questions and Answers for Experienced
- C# Interview Questions with Answers Pdf
- C Sharp Interview Questions and Answers
- C Sharp Interview Questions and Answers for Freshers Pdf
- Top 200+ Advanced C# Interview Questions 2019-2020
- C# Programming Online Test Questions and Answers
- C# Algorithm Interview Questions and Answers
Basic Electronics Quiz Questions with Answers Pdf More
Wireless Communication MCQ Questions with Answers More
Digital Communication Quiz Questions and Answers Pdf More
Advanced Communication Quiz Questions and Answers Pdf More
Synchronous Machines Quiz Questions and Answers Pdf More
7000+ GATE Mechanical Question Paper with Solutions Pdf More
Chemical Engineering Thermodynamics MCQ Questions & Answers Pdf More
1000+ Bank Exams Question Papers with Answers Pdf Download More
1000+ Fertilizer Technology Interview Questions and Answers Pdf More
1000+ Petroleum Refinery Engineering MCQ Questions and Answers More