-
Why are data members of the Hashtable class stored in the private access specifier?
Skill/Topic: Hash TableA) Data members of the Hashtable class are stored in the private access specifier to ensure the integrity of the data. Only member functions can assign and retrieve values of these data members.
-
Hashing is performed at Bit level.
Skill/Topic: Hash TableA) TrueB) False
-
The C++ version of the hashtable application is simpler than the Java version.
Skill/Topic: Hash TableA) TrueB) FalseExplanation: The Java version of the hashtable application is simpler than the C++ version because the Java version defines the Hashtable class in the Java Collection Classes that are defined in the java.util package
-
The java.util package contains two classes that are designed to work with hashtables. They are _______ and _________.
Skill/Topic: Hash TableA) Hashtable , HashMap class
-
An application iterates the hashtable by calling the ______ and ______ member functions.
Skill/Topic: Hash TableA) hasNext() and getNextKey()Explanation: An application iterates the hashtable by calling the hasNext() and getNextKey() member functions. These two functions are used together with initIterator() to retrieve all the keys from a hashtable
-
The hasNext() function determines if there is another entry in the hashtable based on the current state of the iterator.
Skill/Topic: Hash TableA) TrueB) False
-
GetSize() function is used to protect the integrity of the Data.
Skill/Topic: Hash TableA) TrueB) FalseExplanation: The getSize() member function of the Hashtable class reads the size data member of the Hashtable class and returns its value to the statement that calls the getSize() function. If you gave the application direct access to the size data member, statements within the application could assign an incorrect value to size. By controlling access to size to...
-
The constructor of the Hashtable class initializes data members and creates the hashtable.
Skill/Topic: Hash TableA) TrueB) FalseExplanation: The constructor of the Hashtable class initializes data members and creates the hashtable. The size of the array of pointers (tablesize) is passed to the constructor when the application declares an instance of the Hashtable class
-
-
Structure and union
What is the difference between structure and union?
-
-
Polymorphic Data Type
What is Polymorphic Data Type? Give example
-
Recursive Algorithm
Explain how recursive algorithm is converted into recurrence relation with example.
-
Performance of Algorithm
Explain how performance of algorithm is analysed?
-
Binary Tree Node Data Structure
Explain What is a node data structure Write a function such that the node data structure to visit all of the nodes in a binary tree?
-
Memory Reservation
How is memory reserved using a declaration statement?
-
Forest Data Structure
What is forest data structure? How is it useful?
-
Linked List
Write a program of Linked List using pointers.
-
Deleting Data Elements
Which data structure allows deleting data elements from front and inserting at rear?a. Stacksb. Queuesc. Dequesd. Binary search tree
-
Data Structures Interview Questions
Ans