C# Interview Questions and Answers

Oracle Asp.Net C# interview Questions for freshers

Q. What is the difference between ExecuteScalar and ExecuteNonQuery ?
A. ExecuteScalar returns output value where as ExecuteNonQuery does not return any value but the number of rows affected by the query. ExecuteScalar used for fetching a single value and ExecuteNonQuery used to execute Insert and Update statements.

Q.What is the difference between methods – “System.Array.Clone()” and “System.Array.CopyTo()” in C# ?
A. “CopyTo()” method can be used to copy the elements of one array to other.
  “Clone()” method is used to create a new array to contain all the elements which are in the original array.

asp.net
Asp.Net interview questions and answers pdf C# Languages using to develop web forms in Visual Studio business requirements
Online Courses

WebForms Development | MVC Core Interview Questions and Answers

Q. How we can sort the array elements in descending order in C#?
A. “Sort()” method is used with “Reverse()” to sort the array in descending order.

Q. Explain circular reference in C#?
A. This is a situation where in, multiple resources are dependent on each other and this causes a lock condition and this makes the resource to be unused.

top asp.net architect interview questions and answers for cSharptop asp.net core interview Questions and Answers

beginners C# with asp.net interview questions and answers

Q. List out some of the exceptions in C# ?
A. Below are some of the exceptions in C#
DivideByZeroException
IndexOutOfRangeException
NullReferenceException
ArgumentNullException
InvalidOperationException
StackOverflowException etc

Q. What you mean by delegate in C#?
A. Delegates are type safe pointers unlike function pointers as in C++.
Delegate is used to represent the reference of the methods of some return type and parameters.


Web development course Data Science courses: Web Development
Online courseOnline Courses: Include Certification
Harisystems is optimized for learning, testing and training. courses are designed to be simplified to improve reading and basic understanding for beginners to expert level. Tutorials and examples are constantly reviewed to avoid errors, however we cannot warrant full correctness of all content. if any found need to correct write us at info@harisystems.com. we Harisystems is not responsible for any with this tutorials, While using this site, you agree to have read and accepted our terms of use, cookie and privacy policy. Copyright 2007-2023 by Harisystems. All Rights Reserved.
Copyright © Harisystems 2023