Prepare
Practice
Interview
Aptitude
Reasoning
English
GD
Placement papers
HR
Current affairs
Engineering
MCA
MBA
Online test
Login
Key value pair is usually seen in Hash Tables - Data Structure
Home
>>
Category
>>
Programming Language (MCQ) questions
>>
Data Structure
Q. Key value pair is usually seen in __________.
- Published on 25 Aug 15
a.
Hash Tables
b.
Heaps
c.
Both a and b
d.
Skip list
ANSWER: Hash Tables
Related Content
Networking (
207
)
Database (
97
)
C programming (
58
)
Software Engineering (
28
)
SQL (
5
)
HTML (
74
)
Web Technologies (
11
)
Data Structure (
140
)
Operating System (
96
)
Java (
25
)
Oracle (
5
)
C++ (
50
)
Algorithms (
7
)
PL/SQL (
13
)
JavaScript (
7
)
XML (
0
)
CSS (
1
)
Discussion
Nirja Shah
-Posted on 21 Nov 15
HashTable works on key value pair. If you provide a key, then it will return the corresponding value. A hash table uses a hash function to compute an index and provide the respective value. Suppose that you storing empID and empName as key, value pair, then if you pass empID, it will give you the empName as result. In general, search time of hashtable is O(1) i.e constant time.
➨
Post your comment / Share knowledge
Required!
Required!
Invalid Email Id!
Required!
Enter the code shown above:
Please enter the code shown above
(Note: If you cannot read the numbers in the above image, reload the page to generate a new one.)
MCQs
English
Tutorials
Download
▲