Sunday 20 May 2012

C Data Structures Interview Questions And Answers For Freshers



1.How can I find the number of possible tree in the given tree?

(A) Number of possible tree = (2 power of n) – n

2. What is Hashing?

(A) Hashing is a technique to retrieve records from memory quickly.

3. What is difference between linear and non linear data structures?

(A) Linear data structures are data structures whose data are in linear. eg: Arrays

Non linear are data structures whose data are non linear format. eg: Trees

4. List the notations used in Evaluation of Arithmetic Expressions using prefix and postfix forms?

(A) Polish and Reverse Polish notations.

5. Can I use Selection method to for sorting?

(A) Yes, Selection method is used for Selection sort.

6. When I can call it complete Binary Tree?

(A) It is said to be complete when each node that has a right child also has a left child. Having a left child does not require a node to have a right child. Alternate Binary tree is a tree where their is always a left node for right node but may be may not be right node for left node.

7. What is AVL tree?

(A) AVL tree is self balancing tree, in which balancing factor lie between the -1 to 1.



No comments:

Post a Comment