Skip to main content
BharatBoard

Last verified: 28 November 2026 across official school board and government recruitment portals.

BharatBoard is a private, independent guide. It does not represent any government entity and does not provide any government service. Information is summarised from official board and government websites.

CISCE (ICSE/ISC) · Guide

ISC Class 12 Computer Science (868) Java: Recursion, Inheritance, Stacks/Queues & Binary Trees

Complete revision guide for Part II Sections B & C (30 marks) of ISC Class 12 Computer Science Paper 1 — 2D Matrix/String/Number Java Classes, Recursive Functions, Inheritance (super), Stack/Queue/Circular Queue/Dequeue implementations, Binary Tree Traversals, and 2D Array Address Calculation.

Reviewed July 2026

2D Array Row-Major vs Column-Major Address Formulas and Section B Recursive Java Classes

In ISC Computer Science Paper 1, Part I includes a guaranteed 2-mark 2D array memory-address calculation and a 3-mark recursive dry-run output question, while Section B (20 marks) tests two 10-mark complete Java classes.

  • 2D Array Memory Address Calculation (A[I][J] with R rows, C columns, Word Size W bytes, Base Address B, lower bounds L_r, L_c): Row-Major Wise: Address(A[I][J]) = B + W × [C(I - L_r) + (J - L_c)]; Column-Major Wise: Address(A[I][J]) = B + W × [(I - L_r) + R(J - L_c)]. (If L_r and L_c are not stated in the question, take L_r = 0, L_c = 0!).
  • Section B (Attempt any 2 out of 3 — 20 marks): Typically offers one Number/Recursion class (Disarium, Automorphic, Happy, Magic, Armstrong, Prime-Adam, or GCD/Binary conversion using a recursive helper method with a clear base case), one String/Sentence class, and one 2D Matrix class.

Section C (10 marks): Inheritance (extends/super), Stack/Queue code & Binary Tree Traversals

  • Question 9 — Inheritance (5 marks): You are given the superclass specification so you DO NOT rewrite the superclass code or constructor! Simply write class SubClass extends SuperClass, call super(...) as the very first line of the subclass constructor, and invoke super.display() inside void display().
  • Question 10 — Stack (LIFO) or Queue / Dequeue (FIFO) Array Implementation (5 marks): Always write the exact Overflow check (if (top == cap - 1) in Stack; if (rear == cap - 1) in Linear Queue) and Underflow check (if (top == -1) in Stack; if (front == rear) or if (front > rear) in Queue) before pushing/popping.
  • Question 11 — Binary Tree Traversals & Properties (5 marks): Preorder = Root → Left → Right; Inorder = Left → Root → Right; Postorder = Left → Right → Root; plus root, height, degree, internal nodes, and external leaves (leaf nodes).

Official sources

Timing is typical months only — always verify the exact dates on the official board website, which change every session.