Win Surprise Gifts!!!
Top 5 Contributors of the Month
Post New Question
Subscribe to Interview Questions
List or HashSet seems to be faster?
Posted By :
Posted Date :
April 20, 2011
HashSet is than faster list?
You can also find related Interview Question to
List or HashSet seems to be faster?
You found a code of List which is slower in enumeration. How to make it faster? (Arch level)
Use HashSet class.
List out the areas in which data structures are applied extensively?
3.Database Management System,
4.Statistical analysis package,
If you are using C language to implement the heterogeneous linked list, what pointer type will you use?
The heterogeneous linked list contains different data types in its nodes and we need a link, pointer to connect them. It is not possible to use ordinary pointers for this. So we go for void pointer. Void pointer is capable of storing pointer to any type as it is a generic pointer type.
List the Coffman's conditions that lead to a deadlock.
1. Mutual Exclusion: Only one process may use a critical resource at a time.
2. Hold & Wait: A process may be allocated some resources while waiting for others.
3. No Pre-emption: No resource can be forcible removed from a process holding it.
4. Circular Wait: A closed chain of processes exist such that each process holds at least one resource needed by another process in the chain.
A 'for' loop will run faster in VB.NET or C# ?
List the types of Authentication supported by ASP.NET.
None (Security disabled)
List the various stages of Page-Load lifecycle.
List the event handlers that can be included in Global.asax?
o Application start and end event handlers
o Session start and end event handlers
o Per-request event handlers
o Non-deterministic event handlers
How to find data with generics list in VB.NET (Write code).
In the code example below, the function "FindData" will return list("sublist") of the objects having matchingKey same as viewstate value.
Dim sublist As List(Of MyClass)
sublist = allClient.FindAll(AddressOf FindData) 'sublist will contain objects matching specified matching condition
Function FindData(ByVal b As MyClass) _
If (b.matchingKey = CInt(ViewState("matchingKey "))) Then 'matching condition
Describe the difference between a list and a library in sharepoint?
Lists are collections of metadata or columns, that can have attached documents. Libraries are collections of documents (Excel, InfoPath, Word, etc.) plus optional metadata.
List out some of the Agile followed practises?
Test Driven Development (TDD)
Behavior Driven Development (BDD)
List out some DBCC command options
DBCC CHECKDB - Ensures that tables in the db and the indexes are correctly linked.and DBCC CHECKALLOC - To check that all pages in a db are correctly allocated. DBCC SQLPERF - It gives report on current usage of transaction log in percentage. DBCC CHECKFILEGROUP - Checks all tables file group for any damage.
How to Update SharePoint List Items without Creating New Versions?
SystemUpdate method avoids updating modified and modifier fields.
here is the sample below.
SPSite site = new SPSite("http://mossportal/");
SPWeb web = site.OpenWeb();
SPList leaveslist = web.Lists["My Leaves"];
SPListItem collection = leaveslist.Items;
collection["Earned_x0020_Leaves"] = "1";
Differences between Array And array list?
1)It is used when same datatypes r having
2)I's mainly for static list
3)Array can accesses by using Indexes
1)It is used when poly datatypes r having
2)I's mainly for dynamic list
3)Array can accesses by using keys
Quick Links For Interview Questions Categories:
Find questions, FAQ's and their answers related to .NET, C#, Vb.Net, Sql Server and many more.
Now you can find lots of .NET, C#, Vb.Net, SQL Server,Windows, ASP.Net related Questions and their Answers here at www.dotnetspark.com. Our aim is to help you pass your certification Exams (MCP, MCSD, MCAD etc.,) with flying scores and get good name in your company.
So, Start looking our
section daily and improve your .NET Skills. You can also help others by posting Interview Questions and their Answers in this section.
Hall of Fame
Terms of Service
Tell A Friend