Buy Questpond's video subscriptions on
huge discount
.
Online: 7823
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 22
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 ...
can we have insert method in HashTable
No, because in hash table we do not have index, so we cannot insert in hashtable.
What is the default capacity of an arraylist
Default capacity is 0. When the 1st element is added , the capacity will be 4 . Again when the 5th element is added the capacity will be 8 and so on.
How is dictionary entry added to Hash table
Using "Add(,) " we can add the dictionary entry. For example:
Dim dic As New Dictionary(Of Integer, String)()
dic.Add(105, "Student1")
dic.Add(102, "Student2")
dic.Add(100, "Student3")
dic.Add(104, "Student4")
Can an arraylist accept duplicate elements
Yes
In a Hashtable _______ must be unique, but ______ need not be unique.
Key, VALUE
When do we use HASH TABLE and when we use HASH MAP
Whenthere is necessity store the key value pairs, should go for the
hashtable or hashmap, preferred one is Hashmap as the hashtable is
synchronized. The basic objective is to maintain the pairs. Knowing the key you can iterate through these collections and get the values.
Can we override the ToString() method
Yes,the ToString() method is by default a Virtual method in the Object
class and we can override it and return any other value according to our
requirement.
Is "insertion" and "deletion" possible using Array? What is an alternate solution to this
No,Array does not allow insertion and deletion of items which is possible
using ArrayList which can dynamically grow in size.
Heap memory is divided into ________ generations?
3
When is the object ready for garbage collection?
when all the references to the object are lost
What does IDictionary Interface represent
IDictionary interface represents a non-generic collection of key/value pairs.
The data types to be used in a Generic class are determined at ___________
NOTE: This is objective type question, Please click question title for correct answer.
can we disable connection pooling?
By default it is always enabled.
But if we want to disable explicitly set Pooling=false in your connection string for disabling
connection and enable by setting set Pooling=true
Advantages of Generic Classes are _______________________
1. Type Safety
2. Performance
3. Reusability
Every Collection is implemented from the Interface _______________
Every Collection is implemented from the Interface:IEnumerable.
IEnumerable & IEnumerator have direct relationship?
IEnumerable and IEnumerator doesn't have any direct relationship.
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
When is the class loaded by class loader in CLR
A class is loaded when either the first instance of the class is created
or when the static member of the class is accessed for the first time.
Can we suppress the calling of destructor when the object is garbage collected?
Yes,
System.GC.SuppressFinalize(ob) //ob is reference to object whose
destructor should not be called when the object is Garbage Collected.
Define Object
An object is self describing complete entity. At a glance, one should be
able to describe what is the state of the object, this what the object
can perform and certain things the object cannot perform.
1
...
15
16
17
18
19
20
21
22
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