Answer the following questions from the binary tree.

Show answer
Answer
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. The syllabus covers Stack, Queue, Circular queue, Dequeue, Conversion of Infix to Prefix and Postfix, Single linked list, Binary trees and Tree traversals.
Nothing matches. Try fewer letters.
Answer the following questions from the binary tree.

Answer
Answer the following questions from the binary tree.
Answer
Answer the following questions from the binary tree.
Answer
Write the program described below.
Answer
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
Answer the following questions from the binary tree.
Answer
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 )Answer
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.Data structures is a unit of the ISC Class 12 Computer Science syllabus.
The syllabus lists these topics: Stack, Queue, Circular queue, Dequeue, Conversion of Infix to Prefix and Postfix, Single linked list, Binary trees and Tree traversals.
Prashnika has 87 past-paper questions on Data structures, from papers of 2017-2026, asked in 9 different years. By kind: Binary tree (19), Program (19), Case based (15) and Short answer (13). They carry between 1 and 5 marks, and most are worth 2 marks.
To practise, use the Infix to postfix converter, the Binary tree and BST tool and the paper generator, which can build a practice paper from this chapter.
The syllabus lists Stack, Queue, Circular queue, Dequeue, Conversion of Infix to Prefix and Postfix, Single linked list, Binary trees and Tree traversals.
Prashnika has 87 questions on Data structures, from papers of 2017-2026 (board, specimen, improvement and practice papers together).
By kind: Binary tree (19), Program (19), Case based (15) and Short answer (13).