adplus-dvertising
frame-decoration

Question

In order to get the contents of a Binary search tree in ascending order, one has to traverse it in

a.

pre-order

b.

in-order

c.

post order

d.

not possible

Answer: (b).in-order

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. In order to get the contents of a Binary search tree in ascending order, one has to traverse it in

Similar Questions

Discover Related MCQs

Q. In order to get the information stored in a Binary Search Tree in the descending order, one should traverse it in which of the following order?

Q. A __________is a non-linear data structure representing the hierarchical structure of one or more elements known as nodes.

Q. Each node of a tree stores a data value and has zero or more pointers pointing to the other nodes of the tree, which are also known as its__________.

Q. The node at the top of a tree is known as the ________of the tree.

Q. Internal nodes have___________.

Q. Which concept is useful while writing programming code for implementing various operations on trees?

Q. A binary tree is a special type of tree, which can either be empty or have a finite set of nodes, such that, one of the nodes is designated as the root node and the remaining nodes are partitioned into sub trees of the root nodes known as__________.

Q. Unlike a general tree, each node in a binary tree is restricted to have at the most __________child nodes only.

Q. A binary tree is a ________data structure; each node belongs to a particular level number.

Q. The nodes belonging to the same parent node are known as_______.

Q. The depth of a binary tree is the highest level number of any ______ in the binary tree.

Q. Which line connects any two nodes?

Q. The degree of a node is equal to the number of its__________.

Q. The nodes belonging to the same parent node are known as_________.

Q. A binary tree is said to be a complete binary tree if all the leaf nodes of the tree are at ________.

Q. A binary tree is said to be an extended binary tree (also known as 2-tree) if all of its nodes are of _______.

Q. Like _________- binary trees can also be represented in two ways in the memory—array (sequential) representation and linked representation.

Q. In the array representation, what is represented sequentially in memory using a single one-dimensional
array?

Q. The linked representation of a binary tree is implemented by using a linked list having an_________.

Q. Traversing a binary tree refers to the process of visiting each and every node of the tree exactly how many times?