Data Structure Interview Questions



Page 5 of 11« First...«34567»...Last »

The size of an array queue can change during runtime?

View the Answer

Why is the destructor of the StackLinkedList class empty?

View the Answer

Why is the constructor of the StackLinkedList class empty?

View the Answer

Why does the StackLinkedList class inherit the LinkedList class?

View the Answer

_______ is the maximum number of nodes that you can have on a stack-linked list.

View the Answer

inked list C++ application is organized into three files.They are _____, ______ and _____.

View the Answer

data; temp = temp->Next; }}?">dentify the error in the following example of the use of a displayNodesReverse() member function void displayNodesReverse(){ cout << "Nodes in reverse order:"; NODE* temp = back; while(temp != NULL) { cout << " " << temp->data; temp = temp->Next; }}?

data; temp = temp->Next; }}?">View the Answer

What is the use of displayNodesReverse() member function?

View the Answer

The destructor is responsible for allocating all the memory that was allocated for the linked list.

View the Answer

The destroyList() member function deletes the contents of the linked list and

View the Answer

Look at the following example LinkedList(){ front = NULL; back = NULL;}In this example, Both the front and back pointers are assigned a NULL value.

View the Answer

The node in a single linked list can reference the previous node in the linked list.

View the Answer

What is the use of displayNodesReverse() member function?

View the Answer

The destructor is responsible for allocating all the memory that was allocated for the linked list.

View the Answer

The destroyList() member function deletes the contents of the linked list and

View the Answer

Page 5 of 11« First...«34567»...Last »