KyaPoocha.com

Huge Collection of Interview Questions


Archive for December, 2006

How is any Data Structure application is classified among files? 

A linked list application can be organized into a header file, source file and main application file. The first file is the header file that contains the definition... Read more »

What member function places a new node at the end of the linked list? 

The appendNode() member function places a new node at the end of the linked list. The appendNode() requires an integer representing the current data of the node.  Read more »

What is Linked List ? 

Linked List is one of the fundamental data structures. It consists of a sequence of nodes, each containing arbitrary data fields and one or two (”links”)... Read more »

What does each entry in the Link List called? 

Each entry in a linked list is called a node. Think of a node as an entry that has three sub entries. One sub entry contains the data, which may be one attribute... Read more »

How is the front of the queue calculated ? 

The front of the queue is calculated by front = (front+1) % size.  Read more »

Why is the isEmpty() member method called? 

The isEmpty() member method is called within the dequeue process to determine if there is an item in the queue to be removed i.e. isEmpty() is called to decide whether... Read more »

Which process places data at the back of the queue? 

Enqueue is the process that places data at the back of the queue.  Read more »

What is the relationship between a queue and its underlying array? 

Data stored in a queue is actually stored in an array. Two indexes, front and end will be used to identify the start and end of the queue. When an element is removed... Read more »

What is a queue ? 

A Queue is a sequential organization of data. A queue is a first in first out type of data structure. An element is inserted at the last position and an element... Read more »

What does isEmpty() member method determines? 

isEmpty() checks if the stack has at least one element. This method is called by Pop() before retrieving and returning the top element.  Read more »

What method removes the value from the top of a stack? 

The pop() member method removes the value from the top of a stack, which is then returned by the pop() member method to the statement that calls the pop() member... Read more »

What method is used to place a value onto the top of a stack? 

push() method, Push is the direction that data is being added to the stack. push() member method places a value onto the top of a stack.  Read more »

Run Time Memory Allocation is known as…. 

Allocating memory at runtime is called a dynamically allocating memory. In this,you dynamically allocate memory by using the new operator when declaring the array,... Read more »

How do you assign an address to an element of a pointer array ? 

We can assign a memory address to an element of a pointer array by using the address operator, which is the ampersand (&), in an assignment statement such as... Read more »

Why do we Use a Multidimensional Array? 

A multidimensional array can be useful to organize subgroups of data within an array. In addition to organizing data stored in elements of an array, a multidimensional... Read more »

Page 3 of 5«12345»