Question:

Consider the following statements :
A. In a binary search tree, left sub tree has smaller value than right sub tree

B. In doubly linked list, only forward traversal is possible

C. In C, a function may not always return a value

D. Two dim array requires two index variables

E. A tree must have at least two nodes

Choose the correct answer from the options given below :

Show Hint

"Binary" in BST refers to the two-way split, but "Search" is enabled by the specific ordering: Left $<$ Root $<$ Right.
Updated On: Aug 6, 2026
  • A, B, C only
  • B, A, D only
  • C, D, E only
  • D, C, A only
Show Solution
collegedunia
Verified By Collegedunia

The Correct Option is D

Solution and Explanation

Concept:
• Binary Search Trees (BST) maintain a specific ordering to facilitate efficient searching.
• Different data structures (Lists, Arrays, Trees) have unique properties regarding traversal and connectivity.
• Programming languages like C have specific rules for function definitions.

Step 1:
Analyze BST properties (A)
In a BST, for any node \(N\), all values in the left subtree are smaller than \(N\), and all values in the right subtree are larger than \(N\). Consequently, the left subtree values are always smaller than the right subtree values. Statement A is correct.

Step 2:
Analyze Doubly Linked Lists (B)
A doubly linked list contains two pointers per node: next and prev. This allows for bidirectional traversal (both forward and backward). Statement B is incorrect.

Step 3:
Analyze C function returns (C)
In C, a function declared with the void return type does not return a value. For example, void display() { ... }. Therefore, it is true that a function may not always return a value. Statement C is correct.

Step 4:
Analyze 2D Array indexing (D)
To access a specific element in a two-dimensional array, one must specify both the row index and the column index (e.g., arr[i][j]). Thus, two index variables are required. Statement D is correct.

Step 5:
Analyze the definition of a Tree (E)
A tree can be empty (a NULL tree) or consist of only a single node (the root). It does not strictly require two nodes. Statement E is incorrect.
Was this answer helpful?
0
0

Top CUET PG Data Science A.I Cyber Security and Computer Sci. Questions

View More Questions

Top CUET PG Programming and Data Structures Questions

View More Questions