Buy Questpond's video subscriptions on
huge discount
.
Online: 2372
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 1
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 ...
Is .NET platform independent?
NOTE: This is objective type question, Please click question title for correct answer.
What is difference between Compilation and Runtime.
A high level language which means it is meant for humans to
understand not for computers. For a computer to understand a program
it has to be compiled, that is changed into machine language. Once a
program is in machine language then the computer can understand it
and perform the actions it describes (that is to run the program). A
program need only be compiled once but (once compiled) it can be run
any number of times.
What is the difference between un-safe code & un-managed code. ?
Un-managed code runs outside the CLR control while the Un-safe
code runs inside the CLR control. Both of these may use pointers &
direct memory access.
Name the assembly that is required to build any sort of WCF application?
System.Servicemodel.dll
How many classes can a single .NET DLL contain ?
Unlimited
Child class destructor always executes before parent class destructor.
NOTE: This is objective type question, Please click question title for correct answer.
Can we declare a non static method of parent class as static in child class
Yes, but then it should be also declared
as new and this child class method shadows (hides) the parent class
method.
Which of the following are correct about contructor?
NOTE: This is objective type question, Please click question title for correct answer.
Can we instantiate an interface?
We can't instantiate an interface
but we can get a reference to an interface
Why do you prefer that a function (member of an object) not return a boolean value to the calling function in order to indicate that it (the called member/function) successfully completed its operation.
Like mentioned in the question, it isjust a preference and not a rule. It is a commonly accepted way ofdoing OOPS methodology. There is nothing wrong with returning a boolean value but it is not PREFERRED. Hence refrain from it. It is preferred that the called function/member throw/raise an exception to indicate that something went wrong in it. Again, this is just a preference and there is nothing wrong in doing it. If you do choose to use it extensively, you are moving away from doing Object Orientation or Object Oriented Programming.
What is the difference between CLS and CTS?
CTS When different languages are integrated and want to communicate, it is certain that the languages have their own data types and different declaration styles. CTS define how these different variables are declared and used in run time. E.g. VB offers an Integer data type while C++ offers long data type. Using CTS, these data types are converted to System32 which itself a data type of CLS. CLS Any language(s) that intend to use the Common Language Infrastructure needs to communicate with other CLS-Compliant language. This communication is based on set of rules laid by CLS. These rules define a subset of CTS.
Explain the elements of the .NET Framework.
CLR (Common Language Runtime): It is a common managed environment where all the .net programs run. Supports multiple languages and has the garbage collector. .Net Framework Class Libraries: For each source code compiler (VB.NET, C#.NET, etc.), there is a minimum set of coding standards that must be met. The minimum set of coding standards that must be met to compile .NET code into MSIL code is known as CLS - Common Language Specification. The role of the Common Language Specification is to ensure that all generated code (MSIL) that meets the minimum set of coding standards can operate successfully within the .NET framework. THE CTS (Common Type System) handles conversion of programming-language data types into .NET compatible (MSIL) data types. The implicit benefit of the CTS is the reduction of development time when attempting to coordinate data types between two sets of different programming-language code. Data and XML: Support for disconnected programming model and XML. XML webservices: creating webservices for distributed architecture. Webforms: Provides support and functionality for Web based UI. Windows forms: Provides support and functionality for Windows based UI.
Explain the role of assembly in the .Net Framework
.Net Framework keeps executable code or DLL in the form of assembly. .Net Framework maintains multiple versions of the application in the system through assembly. The assemblies have MSIL code and manifest that contains metadata. The metadata contains version information of the assembly.
What is .Net Framework?
The .NET Framework is the infrastructure for the new Microsoft .NET Platform. The .NET Framework is a common environment for building, deploying, and running Web Services and Web Applications
Where is the version information stored of an assembly?
Inside the manifest.
What is a private constructor?
It does not allow to create object for its derived class and used generally in Singleton pattern.
What is .Net?
It is a frame work tool which is integrated with many programming languages.
Namespace is a collection of
NOTE: This is objective type question, Please click question title for correct answer.
What are the different types of JIT compilers?
1.Standard JIT.
2.Econo JIT.
3.Pre JIT.
Econo JIT is similar to Standard JIT except for Caching.It is ideal for small devices like Pocket PC and Mobile Phones
What is visual inheritance?
Visual elements are implemented as full featured .NET objects. so other objects can inherit from Them.
1
2
3
4
5
6
7
8
...
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
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