KyaPoocha.com

Huge Collection of Interview Questions


Archive for April, 2006

What is advantage of viewstate and what are benefits? 

When a form is submitted in classic ASP, all form values are cleared. Suppose you have submitted a form with a lot of information and the server comes back with... Read more »

Why does the function arguments are called as “signatures”? 

The arguments distinguish functions with the same name (functional polymorphism). The name alone does not necessarily identify a unique function. However, the... Read more »

Suppose a class acts an Actor in the problem domain, how to represent it in the static model? 

In this scenario you can use “stereotypeâ€. Since stereotype is just a string that gives extra semantic to the particular entity/model element. It is given with... Read more »

What is guard condition? 

Guard condition is one, which acts as a firewall. The access from a particular object can be made only when the particular condition is met. For Example:- customerÂ... Read more »

What is placement new? 

When you want to call a constructor directly, you use the placement new. Sometimes you have some raw memory that’s already been allocated, and you need to... Read more »

When can you tell that a memory leak will occur? 

A memory leak occurs when a program loses the ability to free a block of dynamically allocated memory.  Read more »

What is a node class? 

A node class is a class that, relies on the base class for services and implementation, provides a wider interface to te users than its base class, relies primarily... Read more »

How many different trees are possible with 10 nodes ? 

1014 - For example, consider a tree with 3 nodes(n=3), it will have the maximum combination of 5 different (ie, 23 - 3 =Â 5) trees.  Read more »

Minimum number of queues needed to implement the priority queue? 

Two. One queue is used for actual storing of data and another for storing priorities.  Read more »

In an AVL tree, at what condition the balancing is to be done? 

If the ‘pivotal value’ (or the ‘Height factor’) is greater than 1 or less than –1.  Read more »

What is the bucket size, when the overlapping and collision occur at same time? 

One. If there is only one entry possible in the bucket, when the collision occurs, there is no way to accommodate the colliding value. This results in the overlapping... Read more »

Page 2 of 2«12