Answer the following questions from the binary tree.
List the leaf nodes of the tree.

Show answer
Answer
Checked answer.
The leaf nodes (nodes with no children) are $G, H$ and $F$.
87 past-paper questions on Data structures from ISC Class 12 Computer Science papers (2026-2017), newest first, in full. Questions 81-87 are on this page, 20 to a page. Tap "Show answer" under a question to see its answer.
Nothing matches. Try fewer letters.
Answer the following questions from the binary tree.

Answer the following questions from the binary tree.
Answer the following questions from the binary tree.
Write the program described below.
void addele(int v)
{
if (rear == size)
System.out.println("Overflow");
else
{
Que[rear] = v;
rear++;
}
}
int delele()
{
if (front == rear)
{
System.out.println("Underflow");
return -9999;
}
else
{
int v = Que[front];
front++;
return v;
}
}Explanation: elements are added at the rear and removed from the front. The queue is full when rear == size (Overflow) and empty when front == rear (Underflow, returning -9999). Tested by running with a queue of size 3: adding a 4th element printed Overflow, deleting 10, 20, 30 worked and a 4th delete printed Underflow and returned -9999.Convert the following notation as directed.
Answer the following questions from the binary tree.
Write the program described below.
class Node
{
int num;
Node next;
}
Write an Algorithm OR a Method to count the nodes that contain only odd integers from an existing linked list and returns the count.
The method declaration is as follows:
int CountOdd( Node startPtr )int CountOdd(Node startPtr)
{
int count = 0;
Node ptr = startPtr;
while (ptr != null)
{
if (ptr.num % 2 != 0)
count++;
ptr = ptr.next;
}
return count;
}Explanation: start at the first node, visit every node until ptr becomes null, add 1 to count whenever the value of num is odd (num % 2 != 0, which also works for negative numbers) and finally return count. Tested by running: the list 5, 8, -3, 12, 7 gives 3 and an empty list gives 0.