Buy Questpond's video subscriptions on
huge discount
.
Online: 652
Home
Articles
Interviews
Forums
For Beginners
Popular Questions
ITIL Career Advice
PMP Career Advice
Career Advices
Codes
Videos
ASP.NET
ASP.NET MVC
Android Intel XDK
Sql Server
AngularJS
Bootstrap
Backbone.JS
MongoDB
LESS (CSS)
jQuery
WPF
WWF
SSIS
LightSwitch
Tutorials
News
ASP.NET MVC
|
Be Interview Ready
|
Top Performers
|
DNF MVP
|
Top Posts
|
Winners
|
Subscribe
|
Catalogs
Welcome Guest !
Register
Login
Home
>
Exclusive Interviews
> C#
C# Exclusive Interview Questions and Answers (453) - Page 2
A joint initiative from DotNetFunda.Com and Questpond.
A one stop place on the internet to get trusted and proven Interview Questions (based on more than a decade of experience in this field) to ensure the success of the candidates.
You will find almost all Interview questions from Questpond here and this list is growing day by day with all latest and updated interview questions.
453 records found.
Post Interview
|
Interview Experiences
|
Interview FAQs
|
Online Interviews
|
Interviews Home
Get 650+ Questpond's Interview videos on discount
Loading ...
What are access modifiers used for encapsulation?
The access modifiers in .NET are
1. public
2. private
3. protected
4. internal
5. protected internal
Which Exception will be thrown If TryParse fails?
It will throws FormatException if it fails.
What is the namespace used for StringBuilder Class?
System.Text
What do sub procedures return?
Nothing
Can we change the Size of Array at runtime?
Yes,using Redim we can dynamically change the size of array.
What is Redim in VB.NET?
In VB.NET we use Redim and erase to manipulate Array. Once we declare an array the size set to any its makes limited to that range but with the help of redim we used to change the any size.
How can we use Keywords as Identifiers?
If Keywords have to be used as Identifiers enclose them in [ ]. ex:Function [sub](a as Integer, b as Integer) as Integer return a-b End Function
Can a method be overloaded based on return type?
Having two or more methods with same name and different parameters. parameters must be different either in their datatypes or in their count.
What is the difference between String And StringBuilder ?
For every modification we perform on the string, a new string will be created whereas StringBuilder does not create new object it modifies the existing one. Hence, if there is a need to perform multiple operation on string better choice is StringBuilder.
Why Arrays are called Dynamic ?
Because we can set ( not change) the size of an Array dynamically
What is the use of Step keyword in a For Loop?
To increment or decrement the For loop
Can we overload contructors
Yes, We can have Default Constructor, Parameterised and Copy Contructor in every class.
What is the advantage of Copy constructor
Copy Constructor is used to create a new object by duplicating the state of an existing object and this is done by copying the value of data members of existing object in new object data members.
Define the use of Caspol.exe.
It is DOS command to view and alter code access security policy.
Can a desctructor be declared as public
No, destructor should not have any access specifier.
Instance member of a class cannot access static members of the class: Yes / No ? If No Justify
No. Instance methods can access static members but static members cannot access instance members.
Does Garbage Collection disposes a object even if you abort the application in the middle? How to check this?
Garbage Collector runs as a seperate thread in the .NET runtime and not in the application we create. Even if the application crashes GC will collect all the memory occupied by our program as there is no reference to those objects. To check if it is collected or not we can try some CLR monitoring tools like CLR Profiler
Define protected class-level variable in C#.NET.
It can be inherited by the classes in the same namespace.
Define encapsulation.
Binding of data & behavior that means functionality of an object within a controlled & secured environment is encapsulation.
What is the use of destructor in .net?
Destructor of a class is used to destroy COM objects which are created by it in unmanaged heap.
1
2
3
4
5
6
7
8
9
...
23
More C# Interview Questions & Answers here
Found this useful, bookmark this page to the blog or social networking websites.
Bookmark It
Exclusive Interview Questions and Answers Categories
.NET Certifications
.NET Core
.NET Framework
ADO.NET
AI ML
Android
Angular
AngularJS 1x
Aptitute Test
ASP.NET
ASP.NET AJAX
ASP.NET Core
ASP.NET MVC
ASP.NET Web API
Aurelia
Azure
Best Practices
BizTalk Server
Bootstrap
C#
Cloud
CMS
CSS 3
Data Structures & Algorithms
Design Pattern & Practices
DotNetFunda.Com
Entity Framework
Error and Solution
F#
Function Points (FPA)
HR
HTML 5
IIS
Interview Questions
JavaScript
jQuery
Kinect
LightSwitch
LINQ
Management
Mobile Development
MSBI (SSIS, SSRS, SSAS)
Mule
Networking
News and Community
Node.js
NoSql
OOPS
Oracle
Others
PostgreSQL
PowerShell
Product Reviews
Project Management
Python
QA (Testing)
R Language
Regular Expressions
SEO
SharePoint
SignalR
Silverlight
Sql Server
TypeScript
UML
VB.NET
Visual Studio
WCF
Web Analytics
Web Services, Remoting
Windows 8
Windows Forms
Windows Metro
Windows Phone
WPF
WWF
XML