Google

Basic programming interview questions

Question: What is an HTML tag?
Answer: An HTML tag is a syntactical construct in the HTML language that abbreviates specific instruction to be executed when the HTML script is loaded into a Web brower. It is like a method in Java, a function in C++, a procedure in Pascal, or a routine in FORTRAN.


Question: What is polymorphism?
Answer: In object-oriented programming, the term "polymorphism" refers to the ability of objects to take the form objects of difference classes.

Question: What is the difference between a component and a container?
Answer:
A component is an object, like a button or a sroll bar, that has a visual representation in a sreen window.
A container is a window-like component that can contain other components.
Every component has a unique container that directly contains it.


Question: What is the difference between a constructor and a method?
Answer:
A constructor is a member function of a class that is used to create objects of that class. It has the same name as the class itself, has no return type, and is invoked using the new operator.
A method is an ordinary member function of a class. It has its own name, a return type (which may be void), and is invoked using the dot operator.


Question: What are the advantages and disadvantages of using an AVL tree?

The advantage of an AVL tree is that it is always balanced, guaranteeing the O(lgn) speed of the Binary Search algorithm.
The disadvantages the complex rotations used by the insertion and removal algorithms needed to maintain the tree’s balance.

0 comments:

To link to this blog, copy and paste the code below into your site.

  © Blogger template 'Tranquility' by Ourblogtemplates.com 2008

Back to TOP