ALLInterview.com :: Home Page KalAajKal.com
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   ERRORS new
   Refer this Site  Refer This Site to Your Friends  Site Map  Bookmark this Site  Set it as your HomePage  Contact Us     Login  |  Sign Up                      
tip   To Refer this Site to Your Friends   Click Here
Google
 
Categories  >>  Software  >>  Databases  >>  SQL Server
 
 


 

 
 Oracle interview questions  Oracle Interview Questions
 SQL Server interview questions  SQL Server Interview Questions
 MS Access interview questions  MS Access Interview Questions
 MySQL interview questions  MySQL Interview Questions
 Postgre interview questions  Postgre Interview Questions
 Sybase interview questions  Sybase Interview Questions
 DB Architecture interview questions  DB Architecture Interview Questions
 DB Administration interview questions  DB Administration Interview Questions
 DB Development interview questions  DB Development Interview Questions
 SQL PLSQL interview questions  SQL PLSQL Interview Questions
 Databases AllOther interview questions  Databases AllOther Interview Questions
Question
what is hash table
 Question Submitted By :: Shankar
I also faced this Question!!     Rank Answer Posted By  
 
  Re: what is hash table
Answer
# 1
A hash table, or a hash map, is a data structure that 
associates keys with values. The primary operation it 
supports efficiently is a lookup: given a key (e.g. a 
person's name), find the corresponding value (e.g. that 
person's telephone number). It works by transforming the 
key using a hash function into a hash, a number that is 
used as an index in an array to locate the desired location 
("bucket") where the values should be.
 
Is This Answer Correct ?    2 Yes 2 No
Arun Yadav
 
  Re: what is hash table
Answer
# 2
1.Hashtable is a class which falls into System.Collections 
namespace. 
you can create object for hashtable. For example,
         Hashtable hash = new Hashtable();

2.Key and value should be added to hashtable. For example,
         hash.Add(1,"God");
         hash.Add(2,"Human");

3.The key, value will be sorted automatically based on the 
Hashcode generated[this operation is taken care by CLR].

4.GetHashCode() method is used to get the generated hashcode

5.While retrieving the hashtable values, you can use the 
key tp retrieve the values. For example
    foreach (DictionaryEntry item in hashTable)
    {
      Console.WriteLine("Key is {0}, Value is 
{1}",            item.Key,item.Value);
    }
NOTE: if you add the same key into the hastable, it will 
not throw any compliation error, but during runtime, it 
will throw "ArgumentException" error.
 
Is This Answer Correct ?    1 Yes 1 No
Kumaresh
 
 
 

 
 
 
Other SQL Server Interview Questions
 
  Question Asked @ Answers
 
What is blocking and how would you troubleshoot it?  1
how to rename the table  3
After using delete statement in sql query to delete some records...to retrieve the deleted records we can get using rollback command but till that where it stores means particular location name i need....(after deleting and rollback ) iGate2
When you first load SQL SERVER you will startup with what all databases? CompuSol3
What is mean by "fill factor" ? and what is mean by "Index "in sql? Logica-CMG1
As a part of your job, what are the DBCC commands that you commonly use for database maintenance? HCL1
How to restart SQL Server in single user mode? How to start SQL Server in minimal configuration mode?  1
what is web server? Satyam3
what are the new features of sql server 2005? HP6
How can your resolve deadlocks? IBM3
plz send every query in sql server2000 Infosys1
What are the different types of backup avaible in SQL SErver Emphasis5
Well sometimes sp_reanmedb may not work you know because if some one is using the db it will not accept this command so what do you think you can do in such cases?  2
What are explicit and implicit transactions?  2
Can I remove the default constraint columns in SQL SERVER? Value-Labs3
Explain the architecture of SQL Server?  2
What is the difference between a HAVING CLAUSE and a WHERE CLAUSE? Yardi-Software4
What do u mean by orphan users, how will u list them in the DB IBM2
How do you persist objects, permissions in tempdb  1
What is a cursor in SQL Server 2000 and their types?  4
 
For more SQL Server Interview Questions Click Here 
 
 
 
 
 
   
Copyright Policy  |  Terms of Service  |  Help  |  Site Map 1  |  Articles  |  Site Map  |   Site Map  |  Contact Us interview questions urls   External Links 
   
Copyright © 2007  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  Forum9.com   ::  KalAajKal.com