Web and basic programming interview questions
1. 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.
2. 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.
3. 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.
4. 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.
5. 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.
search topic
Thursday, May 15, 2008
Web Related Interview Questions 2008
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment