C SHARP Interview Questions

How can we display crystal report in button click?

Which is the best way for keeping the data in XML or SQL server and why?

Write the sample code for threading in c# .net.?

Can we have the method in derived class with the same name which is there in base class?

What is read only and constant ?

What is the real use of interface in c#, other than that multiple inheritance is not possible ?

How can we give strong name to assembly? What is satellite assembly?

What is the minimum size (in bytes) of string data type in c#? Give its compatible data type
in .NET Framework.?

Can we throw exception from catch block ?

How do you do exception management ?

What is serialization?

What is garbage collection?

Can we return two values from a function?

In c# how to connect crystal report?

WHAT IS THE EXACT USE OF INTERFACE(DONT TELL USE FOR MULTIPLE
INHERITANCE) ?

What is namespace? Explain its uses?

What is reference parameter? what is out parameter? what is difference b/w these two?

What is collection and what is generic?

How you will connect to windows directory in c#?

Any exceptions are there which are not caught by any catch blocks? what are they?

In Main function another function is there and to that function if we pass string as
parameter ,then that string value is passed by value or reference type?

Syntax for writing private method in a interface ?

What are STA And MTA in threading?

What is application domain?

What are delegates?

Which type of variables are under the control of garbage collector?

What are value types and reference types? where they are stored?

If a class is having 4 variables namely type double,type integer,type string,type decimal. If we
create an instance of that class those variables which gets into this instance value types or reference types?

Can we have a non static member function in a base class to be override in derived with static
modifier?

What is the Difference between read only and constant variables?

Where test director stores its data ?

Is array reference type / value type?

What is difference between value and reference types?

How can you prevent classes to be inherited?

Can we assign null value to value type in c#?

Indexers in c#?

If u declare two interfaces withsame methodname .prototype how can u call the particular
method from class?

Why sturcture ? why class?why you prefer structure and in which cases u go for class?

the selected inf of other combobox?How do you achieve it?

Difference between multi-level and multiple inheritance?

How do you implement multiple inheritance in .NET?

What are the security issues if we send a query from the application?

How do you create multiple inheritance in C#?

What are object oriented concepts?

How to transpose rows into columns and columns into rows in a multi-dimensional array?

Does C# supports multi-dimensional arrays?

What is a template?

What are the events in delegate?

What is a delegate? what it is used for?

How do you remove the objects which are not in use? Explicitly or implicitly? What is the exact
mechanism going behind?

Does C# supports destructors?

What is a constructor?

Why instance? what are the uses of instance?

What are the advantages of c# over vb.net?

What is the difference between interface and abstraction?

Can an Assembly have multiple versions ?

Difference between C++ and C#.net ?

Coding for delegates?

Write code for Factorial?

Write code for palindrome?

What happens in synchronization?

What is Abstraction?

What is Encapsulation?

Tell me something about Exceptions. What is the common exception class?

Explain about throw keyword?

What is the difference between finally and dispose methods?

How many catch blocks can be there for a single try block?

Can we create instance for Abstract class?

What is the difference between Abstract and Interface?

Write the Syntax for Function or Method Overriding?

What is the overhead, if i use binary transmission. and will it be sent using xml text or how ?

If i want to transmit binary data, will it be support by Webservices or any exceptions ? Can u
create multiple threads of execution ?

Give an example for suspending, resuming, and stopping a thread ?

How is the memory managed in C#.?

How can we convert XML Data to DataBase Table in C#.Net?

What is shared inheritance ?

Difference between keyword internal and protected?

What is the difference between Hash Table and Arrays?

Diff b/w casting and boxing ?

What is arraylist? what the use of Hashtables?

What is the use of New Keyword ?

What r collections in C sharp?

How u make an application remotable?

Explain DIFFERENCE BETWEEN CLASS AND MODULE?

Is string reference type / value type ?

Is array reference type / value type ?

What is difference between value and reference types ?

About multi level and multiple inheritance how to achieve in .net ?

If I want to override a method 1 of class A and in class B then how do you declare ?

How do you implement Inheritance in dot net ?

About Virtual functions and their use ?

What is overloading and how can this be done ?

About a class access specifiers and method access specifiers ?

Can we write one page in c# and other in vb in one application ?

Error handling and how this is done ?

What are the types of threading models ?

What are the collection classes ?

What is difference between interface inheritance and class inheritance ?

What is abstract class ?

What is manifest ?

What does assemblyinfo.cs consists ?

How do you implement multiple inheritance in .NET?

Difference between ByVal and ByRef?

Does C# supports multi-dimensional arrays ?

What are the three types of DAO ?

How can you clean up objects holding resources from within the code?

Where does the dispose method lie and how can it be used to clean up resources?

Describe ways of cleaning up objects.?

What is a system lock?

What is a resource? Provide an example from your recent project.?

Explain constructor.?

What is the raise event used for?

What are the two kinds of properties?

What is the Difference between value and reference type?

What is the Difference between imperative and interrogative code?

What are the Different kinds of methods?

Explain the Scope of public/private/friend/protected/protected friend.?

Explain manifest & metadata. ?

What is the Difference between a sub and a function?

directcast(123.34,integer) – should it throw an error? Why or why not?

ctype(123.34,integer) – should it throw an error? Why or why not?

What is the Difference between directcast and ctype?

What is the difference between c-sharp and vb.net? What kind of security or advances we find in
both languages?

What is early binding and late binding

What is indexers in C# Bodhtree ?

What does Dispose method do with the connection object?

Why would you use untrusted verification?

Explain ACID rule of thumb for transactions.?

Can you change the value of a variable while debugging a C# application?

How do you debug an ASP.NET Web application?

Where is the output of TextWriterTraceListener redirected?

Why are there five tracing levels in System.Diagnostics.TraceSwitcher?

What does assert() do?

What debugging tools come with the .NET SDK?

How do you generate documentation from the C# file commented properly with a command-line
compiler?

What namespaces are necessary to create a localized application?

What’s a satellite assembly?

What are the ways to deploy an assembly?

How is the DLL Hell problem solved in .NET?

What’s a multicast delegate?

Why is it a bad idea to throw your own exceptions?

Can multiple catch blocks be executed?

What’s the C# equivalent of C++ catch (?), which was a catch-all statement for any possible
exception?

Will finally block get executed if the exception had not occurred?

What’s class SortedList underneath?

What’s the .NET datatype that allows the retrieval of data by a unique key?

How can you sort the elements of the array in descending order?

What’s the difference between the System.Array.CopyTo() and System.Array.Clone()?

Can you store multiple data types in System.Array?

What’s the advantage of using System.Text.StringBuilder over System.String?

What’s the difference between System.String and System.StringBuilder classes?

How can you overload a method?

What’s the difference between an interface and abstract class?

Can you inherit multiple interfaces?

Why can’t you specify the accessibility modifier for methods inside the interface?

What’s an interface class?

When do you absolutely have to declare a class as abstract (as opposed to free-willed educated
choice or decision based on UML diagram)?

What’s an abstract class?

Can you allow class to be inherited, but prevent the method from being over-ridden?

Can you prevent your class from being inherited and becoming a base class for some other
classes?

Can you override private virtual methods?

Can you declare the override method static while the original method is non-static?

What does the keyword virtual mean in the method definition?

How’s method overriding different from overloading?

What’s the top .NET class that everything is derived from?

Are private class-level variables inherited?

When you inherit a protected class-level variable, who is it available to?

Does C# support multiple inheritance?

How do you inherit from a class in C#?

What’s the implicit name of the parameter that gets passed into the class? set method?

What’s the Difference between DataView and DataTable?

What is a pre-requisite for connection pooling?

What does Dispose method do with the connection object?

What connections does Microsoft SQL Server support?

Explain ACID rule of thumb for transactions.?

Can you change the value of a variable while debugging a C# application?

What are three test cases you should go through in unit testing?

Where is the output of TextWriterTraceListener redirected?

Why are there five tracing levels in System.Diagnostics.TraceSwitcher?

What’s the difference between the Debug class and Trace class?

What’s the difference between and XML documentation tag?

How do you generate documentation from the C# file commented
properly with a command-line compiler?

What namespaces are necessary to create a localized application?

What’s a satellite assembly?

What are the ways to deploy an assembly?

What’s a multicast delegate?

Why is it a bad idea to throw your own exceptions?

Can multiple catch blocks be executed?

Will finally block get executed if the exception had not occurred?

What is class SortedList underneath?

What is the .NET datatype that allows the retrieval of data by a
unique key?

How can you sort the elements of the array in descending order?

Can you store multiple data types in System.Array?

If a base class has a bunch of overloaded constructors, and an
inherited class has another bunch of overloaded constructors, can
you enforce a call from an inherited constructor to an arbitrary
base constructor?

How can you overload a method?

What is the difference between an interface and abstract class?

Can you inherit multiple interfaces?

Why can’t you specify the accessibility modifier for methods inside
the interface?

What is an interface class?

What is an abstract class?

Can you allow class to be inherited, but prevent the method from
being over-ridden?

Can you prevent your class from being inherited and becoming a base
class for some other classes?

Can you override private virtual methods?

Can you declare the override method static while the original
method is non-static?

What does the keyword virtual mean in the method definition?

How is method overriding different from overloading?

Are private class-level variables inherited?

When you inherit a protected class-level variable, who is it
available to?

How do you inherit from a class in C#?

What is the implicit name of the parameter that gets passed into
the class set method?

How does a function pointer returns a function pointer?

What is different about switch statements in C#?

Is goto statement supported in C#? How about Java?

Explain about Protected and protected internal, ?internal? access-
specifier?

What are the access-specifiers available in c#?

What are Sealed Classes in C#?

What is a pre-requisite for connection pooling?

What does Dispose method do with the connection object?

What is the data provider name to connect to Access database?

What does the parameter Initial Catalog define inside Connection
String?

Explain ACID rule of thumb for transactions.?

What is the wildcard character in SQL?

What is the role of the DataReader class in ADO.NET connections?

What are advantages and disadvantages of Microsoft-provided data
provider classes in ADO.NET?

Explain the three services model (three-tier application).?

Can you change the value of a variable while debugging a C#
application?

How do you debug an ASP.NET Web application?

Where is the output of TextWriterTraceListener redirected?

Why are there five tracing levels in
System.Diagnostics.TraceSwitcher?

What is the difference between the Debug class and Trace class?

What does the This window show in the debugger?

What debugging tools come with the .NET SDK?

Is XML case-sensitive?

How do you generate documentation from the C# file commented
properly with a command-line compiler?

What is the difference between // comments, /* */ comments and ///
comments?

What namespaces are necessary to create a localized application?

What are the ways to deploy an assembly?

How can you sort the elements of the array in descending order?

Can you store multiple data types in System.Array?

If a base class has a bunch of overloaded constructors, and an inherited class has another bunch of overloaded constructors, can you enforce a call from an inherited constructor to an arbitrary base constructor?

How can you overload a method?

Can you inherit multiple interfaces?

Why can’t you specify the accessibility modifier for methods inside
the interface?

When do you absolutely have to declare a class as abstract (as
opposed to free-willed educated choice or decision based on UML
diagram)?

Can you allow class to be inherited, but prevent the method from
being over-ridden?

Can you prevent your class from being inherited and becoming a base
class for some other classes?

Can you override private virtual methods?

Can you declare the override method static while the original
method is non-static?

What does the keyword virtual mean in the method definition?

Describe the accessibility modifier protected internal.?

Are private class-level variables inherited?

When you inherit a protected class-level variable, who is it
available to?

What is raise event and what is its use?

How can you clean up objects holding resources from within the
code?

What is a system lock?

What are the different ways to cleaning up objects?

Difference between imperative and interrogative code?

Explain manifest & metadata?

Explain the difference between a sub and a function?

What is stack and heap?

What is value type and reference type?

How to store image file in Sql server database?

0 Response to "C SHARP Interview Questions"

Post a Comment

Powered by Blogger