Answer the following in short.
Show answer
Answer
87 past-paper questions on Data structures from ISC Class 12 Computer Science papers (2026-2017), newest first, in full. Questions 61-80 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 in short.
Answer
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
Answer the following in short.
Answer
Differentiate between the following.
Answer
Differentiate between the following.
Answer
Answer the following about the data structure described.
Answer
Answer the following about the data structure described.
Answer
void pushadd(String n)
{
if (end == size)
System.out.println("NO SPACE");
else
{
Q[end] = n;
end++;
}
}
String popadd()
{
if (start == end)
return "?????";
else
{
String val = Q[start];
start++;
return val;
}
}Explanation: pushadd(String) checks whether end has reached size (diary full) before storing the address n at index end and incrementing end; otherwise it prints "NO SPACE". popadd() checks whether the diary is empty (start==end), returning "?????" in that case; otherwise it returns the address at index start and advances start, so addresses always leave from the front in the order they were added. Tested (run for real, capacity 3): after 3 successful pushadd calls a 4th correctly printed "NO SPACE"; popadd() correctly returned the addresses in FIFO order and finally returned "?????" once the diary was emptied.Answer the following questions from the binary tree.
Answer
Answer the following questions from the binary tree.
Answer
Answer the following in short.
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 find and display the sum of even integers from an existing linked list.
The method declaration is as follows:
void SumEvenNode( Node str )Answer
void SumEvenNode(Node str)
{
int sum = 0;
Node temp = str;
while (temp != null)
{
if (temp.num % 2 == 0)
sum = sum + temp.num;
temp = temp.next;
}
System.out.println("Sum of even integers = " + sum);
}(Verified by running the code: for a list 3->4->7->10->5, the method correctly printed "Sum of even integers = 14", i.e. 4+10.)Write the program described below.
Answer
void push(String n)
{
if (top == cap - 1)
System.out.println("OVERFLOW");
else
{
top++;
stud[top] = n;
}
}
String pop()
{
if (top == -1)
return "$$";
else
{
String val = stud[top];
top--;
return val;
}
}Explanation: push(String) checks whether the register is full (top has reached cap-1); if so it prints "OVERFLOW", otherwise it increments top and stores the new name at that top location. pop() checks whether the register is empty (top == -1), returning "$" in that case; otherwise it returns the name at the current top location and decrements top, so names are always added and removed from the same (topmost) end. Tested (run for real, capacity 3): after 3 successful push calls, a 4th correctly printed "OVERFLOW"; pop() correctly returned the names in LIFO order (ROHIT, SUMIT, AMIT) and finally returned "$" once emptied.Answer the following questions from the binary tree.

Answer
Answer the following questions from the binary tree.

Answer
Answer the following.
class Node
{
int n;
Node link;
}
Write an Algorithm OR a Method to search for a number from an existing linked list.
The method declaration is as follows:
void FindNode( Node str, int b )Answer
void FindNode(Node str, int b)
{
Node temp = str;
while (temp != null)
{
if (temp.n == b)
{
System.out.println(b + " is found");
return;
}
temp = temp.link;
}
System.out.println(b + " is not found");
}(Verified by running the code on a 3-node list: correctly reports a middle value as found and a value absent from the list as not found.)Answer the following.
Answer
Write the program described below.
Answer
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).