---
title: "ISC Class 12 Computer Science Specimen Paper 2027 Practice"
description: "ISC Class 12 computer science specimen paper 2027 practice: an original 70-mark paper in the published design, each answer worked and the Java programs run."
canonical: https://learn.modernagecoders.com/isc-class-12-computer-science-specimen-paper-practice
source: src/pages/isc-class-12-computer-science-specimen-paper-practice.html
---
> ISC Class 12 computer science specimen paper 2027 practice: an original 70-mark paper in the published design, each answer worked and the Java programs run.

Start here

## Courses behind a paper like this

A practice paper shows where the marks leak. These three repair the leak, depending on whether it is the whole subject, the Java or the data structures.

[![Computer Science Class 11 and 12 course thumbnail](/images/ip-cs-class-11-12.webp)  Whole subject Computer Science 11 and 12 The ISC lessons take Boolean algebra and Karnaugh maps beside Java, then move to stack, queue, linked list and trees. Open the course →](/courses/cbse-icse-computer-science-class-11-12-python-java-complete-course)[![Java Programming for Teens course thumbnail](/images/java-teens.webp)  Section B weak Java for Teens For a student whose programs do not compile yet: arrays, strings, methods and classes, built up by writing many small programs. Open the course →](/courses/java-programming-masterclass-for-teens)[![Data Structures and Algorithms course thumbnail](/images/dsa-college.webp)  Section C strong Data Structures and Algorithms For the student who finds Section C easy and plans a computing degree: complexity, linked lists, trees and graphs in depth. Open the course →](/courses/data-structures-algorithms-masterclass-college)

Ans. The short version

An ISC Class 12 computer science specimen paper carries 70 marks in three hours: Part I (20 marks, two compulsory questions) and Part II (50 marks) with Sections A, B and C of three questions each, any two from each. That is the CISCE 2025 specimen, the latest one we could read; check cisce.org for a 2027 one. This page adds an original paper in that design with worked answers. In our personalised one to one live classes a teacher marks your paper with you, at your timing, and a priority demo lets you try that first.

Q1. What does the specimen look like?

## What is the design of the ISC computer science specimen paper?

In the CISCE specimen we could read (2025), eleven questions are printed and eight are answered: both questions of Part I, and two from each section of Part II.

| Where | Questions | You answer | Marks |
| --- | --- | --- | --- |
| Part I | 1 and 2 | both | 10 + 10 |
| Section A | 3, 4, 5 | any two | 10 each |
| Section B | 6, 7, 8 | any two | 10 each |
| Section C | 9, 10, 11 | any two | 5 each |
| **Paper 1** | **11** | **8** | **70** |

It allows 15 minutes for reading before the three hours begin, during which nothing may be written. In a multiple choice question only one option is to be written.

### Is there a 2027 specimen?

We have not been able to read one, so nothing on this page is presented as the 2027 specimen. The place to look is the specimen question papers section of cisce.org. If a 2027 paper for code 868 is there, download it and write it as well, and let it overrule us on any difference in design.

The paper itself is reported for 17 March 2027 at 2:00 PM; your admit card has the last word. What may be asked is in [the ISC 868 syllabus for 2027, decoded](/isc-class-12-computer-science-syllabus-2027).

**How to use this paper:** write it by hand in one sitting, choose your two questions in each section before starting it, and open the answers only at the end.

Practice paper. Part I, 20 marks

## ISC computer science specimen paper practice: Part I

Both questions are compulsory. Show working and reasons briefly. Allow about 40 minutes.

### Question 1 (ten parts of 1 mark)

1. The complement of the Boolean expression (P + Q′) · R′ is: (a) P′ · Q + R (b) P′ · Q · R (c) P′ + Q · R (d) P · Q′ + R Answer**(a) P′ · Q + R.** By De Morgan the product becomes a sum: (P + Q′)′ + (R′)′ = P′ · Q + R.
2. **Assertion:** In a four-variable Karnaugh map, six adjacent cells cannot be taken as one group. **Reason:** The number of cells in a group must be a power of two. (a) Both are true and the Reason explains the Assertion. (b) Both are true, but the Reason does not explain the Assertion. (c) The Assertion is true and the Reason is false. (d) The Assertion is false and the Reason is true. Answer**(a).** Groups have 1, 2, 4, 8 or 16 cells, and that rule is exactly why six is refused.
3. By the principle of duality, X + X′ · Y = X + Y becomes: (a) X · (X′ + Y) = X · Y (b) X′ · (X + Y′) = X′ · Y′ (c) X + X′ · Y = X · Y (d) X · X′ + Y = X · Y Answer**(a).** Swap + with · everywhere. The letters and their complements stay as they are.
4. The contrapositive of "if the door is shut then the lamp is off" is: (a) If the lamp is off then the door is shut. (b) If the door is not shut then the lamp is not off. (c) If the lamp is not off then the door is not shut. (d) The door is shut and the lamp is not off. Answer**(c).** Reverse the two parts and negate both. Option (a) is the converse and (b) is the inverse.
5. The reduced form of F(A, B, C) = Σ(0, 2, 4, 6) is: (a) A′ (b) B′ (c) C′ (d) A · C Answer**(c) C′.** All four minterms are even, so C = 0 in each, while A and B take every pair of values.

1. **Assertion:** An abstract class in Java can have a constructor. **Reason:** An object of an abstract class can be created with `new`. Options as in (ii). Answer**(c).** The constructor runs when a subclass object is made, through `super`. Writing `new` with the abstract class itself does not compile.
2. **Assertion:** Binary search can be used on any array of integers. **Reason:** Binary search leaves out half of the remaining cells by comparing the key with the middle one. Options as in (ii). Answer**(d).** The Reason describes the method correctly, and it works only if the array is sorted, so the Assertion is false.
3. A class has `static int made = 0; int no;` and the constructor `Ticket() { made++; no = made; }`. Objects a, b and c are created in that order. Which are true? I. `Ticket.made` is 3. II. `a.no` is 3. III. `b.no` is 2. (a) I and II (b) I and III (c) II and III (d) Only I Answer**(b) I and III.** There is one `made` for the class, but each object keeps the `no` it was given: 1, 2 and 3.
4. The steps of a method are counted as 3n² + 40n + 900. Name the dominant term and give the Big O. Answer The dominant term is 3n², and the order is **O(n²)**. The factor 3 is dropped.
5. How many NAND gates make an AND gate, and how are they joined? Answer**Two.** The first takes A and B and gives (AB)′. Its output goes to both inputs of the second, which gives AB.

### Question 2 (10 marks)

1. Convert `(P + Q) * R - S / (T + U)` to postfix. **[2]**Answer**P Q + R * S T U + / -**. (P + Q) gives PQ+, then R and * follow. (T + U) gives TU+, so S divided by it is STU+/. The minus comes last. One mark for each side of it.
2. An array X[1..12, -2..7] is stored in row major order with 4 bytes for each element. The base address is 3200. Find the address of X[6][4]. **[2]**Answer Columns = 7 - (-2) + 1 = 10. Address = B + W x [(i - Lr) x columns + (j - Lc)] = 3200 + 4 x [(6 - 1) x 10 + (4 + 2)] = 3200 + 4 x 56 = **3424**.
3. The function below is part of a class. Assume a and b are positive. **[3]**

  ***A function to trace**Question 2 (iii)*

  ```
  int grow(int a, int b)
  {
      if (b == 0)
          return 0;
      if (b % 2 == 0)
          return grow(a + a, b / 2);
      return grow(a + a, b / 2) + a;
  }
  ```

  (a) What does grow(6, 13) return? Show the calls. [2] (b) What does the function compute? [1] Answer (a) **78**. The calls go down to b = 0 and the additions are made on the way back:

  | Call | b is | Returns |
  | --- | --- | --- |
  | grow(6, 13) | odd | grow(12, 6) + 6 = 78 |
  | grow(12, 6) | even | grow(24, 3) = 72 |
  | grow(24, 3) | odd | grow(48, 1) + 24 = 72 |
  | grow(48, 1) | odd | grow(96, 0) + 48 = 48 |
  | grow(96, 0) | zero | 0 |

  (b) The product of a and b, by doubling one and halving the other.
4. This function returns true if the first n cells of an array are in ascending order. Give what should stand at ?1?, ?2? and ?3?. **[3]**

  ***Fill three gaps**Question 2 (iv)*

  ```
  boolean inOrder(int a[], int n)
  {
      if (n == ?1?)
          return true;
      if (a[n - 1] < ?2?)
          return false;
      return ?3?;
  }
  ```

  Answer ?1? is `1`, since one cell alone is in order. ?2? is `a[n - 2]`, the neighbour on the left. ?3? is `inOrder(a, n - 1)`. One mark each.

Practice paper. Part II, Section A, 20 marks

## Section A: truth table, Karnaugh map and circuits

Answer any two of Questions 3, 4 and 5. Each carries 10 marks. Allow about 45 minutes.

### Question 3

**(i)** The cargo alarm of a refrigerated truck rings when any one of these holds: **[5]**

- the cargo door is open while the truck is moving, or
- the temperature is above the limit and the backup power is not on, or
- the cargo door is open and the temperature is above the limit, with the truck standing still.

Inputs: T = temperature above the limit, D = door open, M = truck moving, B = backup power on. 1 means yes. Output X = alarm rings. Draw the truth table and write the canonical SOP expression for X(T, D, M, B).

**(ii)** Reduce X(T, D, M, B) with a four-variable Karnaugh map, showing the groups, and draw the logic circuit with AND and OR gates. Variables and their complements are available. **[5]**

Worked answer

(i) The three conditions in symbols are DM, TB′ and TDM′, joined by OR.

| T | D | M | B | X |
| --- | --- | --- | --- | --- |
| 0 | 0 | 0 | 0 | 0 |
| 0 | 0 | 0 | 1 | 0 |
| 0 | 0 | 1 | 0 | 0 |
| 0 | 0 | 1 | 1 | 0 |
| 0 | 1 | 0 | 0 | 0 |
| 0 | 1 | 0 | 1 | 0 |
| 0 | 1 | 1 | 0 | 1 |
| 0 | 1 | 1 | 1 | 1 |
| 1 | 0 | 0 | 0 | 1 |
| 1 | 0 | 0 | 1 | 0 |
| 1 | 0 | 1 | 0 | 1 |
| 1 | 0 | 1 | 1 | 0 |
| 1 | 1 | 0 | 0 | 1 |
| 1 | 1 | 0 | 1 | 1 |
| 1 | 1 | 1 | 0 | 1 |
| 1 | 1 | 1 | 1 | 1 |

X(T, D, M, B) = Σ(6, 7, 8, 10, 12, 13, 14, 15)

= T′DMB′ + T′DMB + TD′M′B′ + TD′MB′ + TDM′B′ + TDM′B + TDMB′ + TDMB

(ii) The small number in each cell is its minterm.

| TD \ MB | 00 | 01 | 11 | 10 |
| --- | --- | --- | --- | --- |
| **00** | 0 0 | 0 1 | 0 3 | 0 2 |
| **01** | 0 4 | 0 5 | **1** 7 | **1** 6 |
| **11** | **1** 12 | **1** 13 | **1** 15 | **1** 14 |
| **10** | **1** 8 | 0 9 | 0 11 | **1** 10 |

| Group | Cells | Term |
| --- | --- | --- |
| Quad 1 | m6, m7, m14, m15 | DM |
| Quad 2 | m8, m10, m12, m14 | TB′ |
| Quad 3 | m12, m13, m14, m15 | TD |

**X = DM + TB′ + TD.** Quad 3 is needed because m13 is in no other quad. Quad 2 joins the first and last columns, which are neighbours on the map.

### Question 4

**(i)** (a) Reduce F(A, B, C, D) = π(0, 1, 2, 3, 6, 7, 8, 10, 11, 12, 14, 15) with a four-variable Karnaugh map, showing the groups. **[4]** (b) Draw the circuit of the reduced expression. **[1]**

**(ii)** From the circuit below: (a) write the Boolean expression for X and draw its truth table, and (b) find X when A = 1, B = 0 and C = 1. **[4 + 1]**

Worked answer

(i) (a) The zeros are grouped.

| AB \ CD | 00 | 01 | 11 | 10 |
| --- | --- | --- | --- | --- |
| **00** | **0** 0 | **0** 1 | **0** 3 | **0** 2 |
| **01** | 1 4 | 1 5 | **0** 7 | **0** 6 |
| **11** | **0** 12 | 1 13 | **0** 15 | **0** 14 |
| **10** | **0** 8 | 1 9 | **0** 11 | **0** 10 |

| Group | Cells | Sum term |
| --- | --- | --- |
| Octet | M2, M3, M6, M7, M10, M11, M14, M15 | C′ |
| Quad 1 | M0, M1, M2, M3 | A + B |
| Quad 2 | M8, M10, M12, M14 | A′ + D |

**F = C′ · (A + B) · (A′ + D).** In a POS map a variable that is 0 over the whole group is written plain, and one that is 1 is written with a bar.

(b)

(ii) (a) The upper gate is XOR, the lower one NAND and the last one AND. So **X = (A ⊕ B) · (B · C)′**.

| A | B | C | A⊕B | (BC)′ | X |
| --- | --- | --- | --- | --- | --- |
| 0 | 0 | 0 | 0 | 1 | 0 |
| 0 | 0 | 1 | 0 | 1 | 0 |
| 0 | 1 | 0 | 1 | 1 | 1 |
| 0 | 1 | 1 | 1 | 0 | 0 |
| 1 | 0 | 0 | 1 | 1 | 1 |
| 1 | 0 | 1 | 1 | 1 | 1 |
| 1 | 1 | 0 | 0 | 1 | 0 |
| 1 | 1 | 1 | 0 | 0 | 0 |

(b) A ⊕ B = 1 and (0 · 1)′ = 1, so **X = 1**.

### Question 5

**(i)** What is a multiplexer? Give the truth table, output expression and logic circuit of a 4:1 multiplexer. **[5]**

**(ii)** Verify with a truth table whether ((P ⇒ Q) ∧ (Q ⇒ R)) ⇒ (P ⇒ R) is valid. **[3]**

**(iii)** Both inputs of a half adder are 1. (a) State its two outputs. (b) Name the gate that gives each. **[1 + 1]**

Worked answer

(i) A multiplexer has many data inputs and one output. Its select lines decide which input reaches the output. With four inputs I0 to I3 there are two select lines, S1 and S0.

| S1 | S0 | Y |
| --- | --- | --- |
| 0 | 0 | I0 |
| 0 | 1 | I1 |
| 1 | 0 | I2 |
| 1 | 1 | I3 |

Y = S1′S0′I0 + S1′S0I1 + S1S0′I2 + S1S0I3

(ii)

| P | Q | R | P⇒Q | Q⇒R | both | P⇒R | whole |
| --- | --- | --- | --- | --- | --- | --- | --- |
| 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 |
| 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 |
| 0 | 1 | 0 | 1 | 0 | 0 | 1 | 1 |
| 0 | 1 | 1 | 1 | 1 | 1 | 1 | 1 |
| 1 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
| 1 | 0 | 1 | 0 | 1 | 0 | 1 | 1 |
| 1 | 1 | 0 | 1 | 0 | 0 | 0 | 1 |
| 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 |

The last column is 1 in all eight rows, so the proposition is **valid**. It is the chain rule.

(iii) (a) Sum 0 and carry 1. (b) XOR gives the sum, AND gives the carry.

More maps and circuits of every kind: [ISC Boolean algebra, worked](/isc-class-12-computer-science-boolean-algebra).

Practice paper. Part II, Section B, 20 marks

## Section B: three Java classes, answer any two

Questions 6, 7 and 8 carry 10 marks each. Write Java with meaningful names and comments; flowcharts and algorithms are not needed. Allow about 55 minutes.

### Question 6 [10]

Design a class **Weave** that joins two sentences by taking their words in turn, the first sentence first. When one sentence runs out of words, the rest of the other follows.

Example: "red green blue sky" and "one two" give "red one green two blue sky".

| Member | Purpose |
| --- | --- |
| first, second | the two sentences |
| woven | the sentence formed |
| Weave() | default constructor, sets legal initial values |
| void readLines() | accepts the two sentences |
| void join() | forms woven, using StringTokenizer |
| void show() | displays the three sentences |

Specify the class with all its methods. Define main() to create an object and do the task.

Worked answer

***Weave.java**Java 21*

```
import java.util.*;

class Weave {
    private String first, second, woven;

    Weave() {                        // legal initial values
        first = "";
        second = "";
        woven = "";
    }

    void readLines() {
        Scanner sc = new Scanner(System.in);
        System.out.println("First sentence:");
        first = sc.nextLine();
        System.out.println("Second sentence:");
        second = sc.nextLine();
    }

    void join() {
        StringTokenizer a = new StringTokenizer(first);
        StringTokenizer b = new StringTokenizer(second);
        // go on while either sentence still has a word
        while (a.hasMoreTokens() || b.hasMoreTokens()) {
            if (a.hasMoreTokens())
                woven = woven + a.nextToken() + " ";
            if (b.hasMoreTokens())
                woven = woven + b.nextToken() + " ";
        }
        woven = woven.trim();        // drop the last space
    }

    void show() {
        System.out.println("1: " + first);
        System.out.println("2: " + second);
        System.out.println("Woven: " + woven);
    }

    public static void main(String args[]) {
        Weave w = new Weave();
        w.readLines();
        w.join();
        w.show();
    }
}
```

***Output**typed: red green blue sky, then one two*

```
First sentence:
Second sentence:
1: red green blue sky
2: one two
Woven: red one green two blue sky
```

The usual slip is `&&` in the loop, which stops at the shorter sentence and loses the remaining words.

### Question 7 [10]

A class **SlideGrid** holds an integer matrix of order m x n, with both at most 10. Form a new matrix in which row 0 is unchanged, row 1 is rotated left by one place, row 2 by two places, and so on.

| Member | Purpose |
| --- | --- |
| g[][], m, n | the matrix, its rows and columns |
| SlideGrid(int mm, int nn) | sets m and n and makes the matrix |
| void fillGrid() | accepts the elements |
| SlideGrid slide(SlideGrid p) | returns an object holding the rotated form of p |
| void show() | displays the matrix row by row |

Specify the class. Define main() to accept the order, create objects and display both matrices.

Worked answer

***SlideGrid.java**Java 21*

```
import java.util.*;

class SlideGrid {
    private int g[][];
    private int m, n;
    static Scanner sc = new Scanner(System.in);

    SlideGrid(int mm, int nn) {
        m = mm;
        n = nn;
        g = new int[m][n];
    }

    void fillGrid() {
        System.out.println("Enter " + (m * n) + " numbers:");
        for (int i = 0; i < m; i++)
            for (int j = 0; j < n; j++)
                g[i][j] = sc.nextInt();
    }

    SlideGrid slide(SlideGrid p) {
        SlideGrid r = new SlideGrid(p.m, p.n);
        for (int i = 0; i < p.m; i++)
            for (int j = 0; j < p.n; j++)
                r.g[i][j] = p.g[i][(j + i) % p.n]; // i places on
        return r;
    }

    void show() {
        for (int i = 0; i < m; i++) {
            for (int j = 0; j < n; j++)
                System.out.print(g[i][j] + "\t");
            System.out.println();
        }
    }

    public static void main(String args[]) {
        System.out.println("Rows and columns:");
        int mm = sc.nextInt();
        int nn = sc.nextInt();
        if (mm < 1 || nn < 1 || mm > 10 || nn > 10) {
            System.out.println("Order out of range");
            return;
        }
        SlideGrid a = new SlideGrid(mm, nn);
        a.fillGrid();
        SlideGrid b = new SlideGrid(mm, nn);
        b = b.slide(a);
        System.out.println("Original");
        a.show();
        System.out.println("After sliding");
        b.show();
    }
}
```

***Output**typed: 3 4, then 11 12 13 14 21 22 23 24 31 32 33 34*

```
Rows and columns:
Enter 12 numbers:
Original
11	12	13	14
21	22	23	24
31	32	33	34
After sliding
11	12	13	14
22	23	24	21
33	34	31	32
```

The remainder brings the index back to the start of the row, so no second loop is needed for the cells that wrap round.

### Question 8 [10]

The hailstone trail of a number is made like this: if the number is even, halve it; if it is odd, multiply by 3 and add 1; stop on reaching 1. Design a class **Hail** to print the trail, the number of steps and the highest value reached.

Example: 6 gives 6 3 10 5 16 8 4 2 1, which is 8 steps with peak 16.

| Member | Purpose |
| --- | --- |
| n, steps, peak | the number, steps taken, highest value |
| Hail() | default constructor |
| void readNum() | accepts a positive integer |
| void trail(int x) | prints the trail from x and sets steps and peak, **using recursion** |
| void show() | calls trail() and displays the results |

Specify the class and define main().

Worked answer

***Hail.java**Java 21*

```
import java.util.*;

class Hail {
    private int n, steps, peak;

    Hail() {
        n = 1;
        steps = 0;
        peak = 0;
    }

    void readNum() {
        Scanner sc = new Scanner(System.in);
        System.out.println("Positive number:");
        n = sc.nextInt();
    }

    void trail(int x) {
        System.out.print(x + " ");
        if (x > peak)
            peak = x;
        if (x == 1)                  // base case
            return;
        steps++;
        if (x % 2 == 0)
            trail(x / 2);
        else
            trail(3 * x + 1);
    }

    void show() {
        if (n < 1) {
            System.out.println("Not a positive number");
            return;
        }
        trail(n);
        System.out.println();
        System.out.println("Steps: " + steps);
        System.out.println("Peak: " + peak);
    }

    public static void main(String args[]) {
        Hail h = new Hail();
        h.readNum();
        h.show();
    }
}
```

***Output**typed: 6*

```
Positive number:
6 3 10 5 16 8 4 2 1
Steps: 8
Peak: 16
```

A loop would print the same trail, but the question asks for recursion, so a loop would miss the point being tested. Test n = 1 too: the trail is just 1, with 0 steps.

Timed problems with the algorithm as well are in [ISC practical questions solved](/isc-class-12-computer-science-practical-questions), and shorter topic programs in [Java programs for ISC Class 11 and 12](/blog/java-programs-for-isc-class-11-and-12).

Practice paper. Part II, Section C, 10 marks

## Section C: data structure, inheritance, list and tree

Answer any two of Questions 9, 10 and 11. Each carries 5 marks. Allow about 25 minutes.

### Question 9

**(i)** A clinic has a ring of token numbers. Tokens are issued at one end and called from the other, and cells set free by calling are used again. **[4]**

| Member | Purpose |
| --- | --- |
| tok[] | array of token numbers |
| cap | size of the array |
| front, rear | indexes of the two ends |
| TokenRing(int c) | sets cap = c and front = rear = 0, and makes the array |
| void issue(int v) | adds v at the rear, or displays "RING FULL" |
| int call() | removes and returns the front token, or returns -1 if there is none |

Write the methods issue(int) and call(). Assume the rest. main() is not needed.

**(ii)** Name the structure and state its principle. **[1]**

Worked answer

***TokenRing.java**Java 21*

```
class TokenRing {
    int tok[];
    int cap, front, rear;

    TokenRing(int c) {
        cap = c;
        front = 0;
        rear = 0;
        tok = new int[cap];
    }

    void issue(int v) {
        int next = (rear + 1) % cap;      // step round the ring
        if (next == front)
            System.out.println("RING FULL");
        else {
            rear = next;
            tok[rear] = v;
        }
    }

    int call() {
        if (front == rear)                // nothing waiting
            return -1;
        front = (front + 1) % cap;
        return tok[front];
    }

    // only to show it working; the question does not ask for main
    public static void main(String args[]) {
        TokenRing r = new TokenRing(4);
        r.issue(51);
        r.issue(52);
        r.issue(53);
        r.issue(54);
        System.out.println(r.call());
        r.issue(55);
        System.out.println(r.call() + " " + r.call()
                           + " " + r.call() + " " + r.call());
    }
}
```

***Output**ring of 4 cells*

```
RING FULL
51
52 53 55 -1
```

One cell is always left empty, so four cells hold three tokens. That is how full (next equals front) is told from empty (rear equals front). Two marks for each method: one for the test, one for the movement and the value.

(ii) A circular queue. First in, first out.

### Question 10 [5]

A super class **Hall** holds the name of a hall and its rent per hour. A sub class **Booking** works out the cost of an event. The first 4 hours are charged at the full rate and further hours at 80% of it. For more than 100 guests, 15 rupees are added for each guest above 100.

| Class | Members |
| --- | --- |
| Hall | String name; double rate; Hall(String, double); void show() displays both |
| Booking | int hours, guests; double cost; Booking(...) sets the data of both classes; void compute() finds the cost; void show() displays everything |

Assume Hall exists. Write the class Booking using inheritance. The super class, main() and algorithm are not needed.

Worked answer

***Booking.java**Java 21*

```
class Hall {                              // given
    protected String name;
    protected double rate;

    Hall(String name, double rate) {
        this.name = name;
        this.rate = rate;
    }

    void show() {
        System.out.println(name + " at " + rate + " an hour");
    }
}

class Booking extends Hall {              // your answer
    private int hours, guests;
    private double cost;

    Booking(String name, double rate, int hours, int guests) {
        super(name, rate);
        this.hours = hours;
        this.guests = guests;
        cost = 0.0;
    }

    void compute() {
        if (hours <= 4)
            cost = hours * rate;
        else
            cost = 4 * rate + (hours - 4) * rate * 0.8;
        if (guests > 100)
            cost = cost + (guests - 100) * 15;
    }

    void show() {
        super.show();                     // reuse, do not repeat
        System.out.println(hours + " hours, " + guests + " guests");
        System.out.println("Cost " + cost);
    }

    public static void main(String args[]) {
        Booking b = new Booking("Lotus", 2000, 6, 120);
        b.compute();
        b.show();
    }
}
```

***Output**Lotus, 2000 an hour, 6 hours, 120 guests*

```
Lotus at 2000.0 an hour
6 hours, 120 guests
Cost 11500.0
```

By hand: 4 x 2000 + 2 x 1600 + 20 x 15 = 8000 + 3200 + 300 = 11500. Calling `super(...)` on the first line of the constructor and `super.show()` in the display are what make it inheritance.

### Question 11

**(i)** A linked list is made of objects of `class Node { int n; Node link; }`. Write a method `int countAbove(Node start, int x)` that returns how many nodes hold a number greater than x. **[2]**

**(ii)** Use the tree below. (a) Name the external nodes. (b) State the size and the depth of the left subtree of M. (c) Write the pre-order traversal of the whole tree. **[1 + 1 + 1]**

Worked answer

***NodeCount.java**Java 21*

```
class Node {
    int n;
    Node link;
}

class NodeCount {
    int countAbove(Node start, int x) {
        int c = 0;
        Node temp = start;                // start stays put
        while (temp != null) {
            if (temp.n > x)
                c++;
            temp = temp.link;
        }
        return c;
    }

    public static void main(String args[]) { // to show it working
        int v[] = {12, 40, 7, 25};
        Node head = null;
        for (int i = v.length - 1; i >= 0; i--) {
            Node p = new Node();
            p.n = v[i];
            p.link = head;
            head = p;
        }
        NodeCount q = new NodeCount();
        System.out.println(q.countAbove(head, 10));
        System.out.println(q.countAbove(null, 10));
    }
}
```

***Output**list 12, 40, 7, 25*

```
3
0
```

The test `temp != null` covers the last node and an empty list as well. Testing `temp.link != null` would leave the last node out.

(ii) (a) D, I and U. (b) The left subtree is H, D, J and I: size 4, depth 2, with its root H at level 0. (c) M H D J I T W U.

**Depth: say where you start counting.** Books differ on whether the root is at level 0 or level 1. The answer key with the 2025 specimen gives depth 2 for a subtree with three rows of nodes, so it counts from 0, and we have done the same.

Q2. What now?

## How should you mark an ISC computer science sample paper?

Mark one question at a time with the answer open, give a part mark only for something actually written, and total each section separately. The 2025 key prints a total for each part and no step marks, so the splits named on this page are our teaching guide.

### A plan for 180 minutes

| Part | Marks | Minutes |
| --- | --- | --- |
| Part I | 20 | 40 |
| Section A, two questions | 20 | 45 |
| Section B, two programs | 20 | 55 |
| Section C, two questions | 10 | 25 |
| Read through |   | 15 |
| **In all** | **70** | **180** |

A Section B program and a Section A question are both worth 10. If a program is taking too long, a map and a circuit are waiting.

### Where did the marks go?

| If you lost them in | It usually means | Do this |
| --- | --- | --- |
| Question 1 | Laws known by name only | Rewrite each law with its dual, twice |
| Question 2 | No dry run on paper | Trace one recursive function a day |
| Section A | Groups missed on the map | Check the corners and outer columns first |
| Section B | Methods not matching the given headers | Copy the header exactly, then fill it |
| Section C | Full and empty tests mixed up | Draw the array and walk one add and one remove |

### What a marking class is like

### Your pages on screen

You send photographs of the written paper beforehand. The teacher marks them beside you and asks you to defend each answer.

### Your program, untouched

One handwritten class is keyed in exactly as written. The compiler finds what the eye forgave, and you correct it yourself.

### Your choices, questioned

Was Question 5 really the safer one? Learning to choose two from three is a skill, and it is practised too.

For more questions, sorted by section, use [ISC important questions with the pattern explained](/isc-class-12-computer-science-paper-pattern-and-important-questions). If the weeks are few, start from [the crash course plan](/isc-class-12-computer-science-crash-course).

One to one, at your own timing

## Write the paper alone, have it marked with a teacher

Paper practice at Modern Age Coders is one student with one teacher, when the student is free. Try it with a priority demo at a slot of your own choosing; the amount is adjusted in the first month should you continue. If you would rather only meet us first, take the free demo class. Monthly billing, nothing to pay for admission, and no lock-in past the month end.

Before you enrol · Try a class

### Priority demo, at a slot you pick

a full live class of about 45 to 60 minutes

- Bring this paper, or any two questions from it, already written
- See one Karnaugh map and one program marked in front of you
- Learn which section pays you the most for the next week of work
- Receive the findings as a written skill report

[Book a priority demo](/book-demo)

The classes · Choose your own timing

### Personalised one to one

₹4,999

per month, 4 private classes, fully flexible timing

- Papers set to your level: part papers first, then full ones
- Circuits checked on paper, programs checked by running them
- Wrong answers come back, changed, in a later class
- No fixed slot: classes move when your school calendar does

Ask for a personalised plan

A good rhythm is one full paper, then classes on the section it exposed, then another paper. How quickly that turns is up to you and your school dates. You see the monthly fee in your own currency on this page.

Studying outside India?

## Writing ISC papers from another country

An ISC student in the UAE, Singapore, Indonesia or Thailand writes the same subject, 868. The paper is done at home on a free day, so the only thing to arrange across time zones is the marking class.

| Where you live | Time difference | Usual class window, local time | Format |
| --- | --- | --- | --- |
| India every Indian city | Indian time | Any time you choose | Personalised 1-on-1 |
| United Arab Emirates Dubai, Sharjah | 1 h 30 min behind India | 3:00 PM to 9:00 PM | Personalised 1-on-1 |
| Indonesia and Thailand West Java, Bangkok area | 1 h 30 min ahead of India | 3:30 PM to 9:00 PM | Personalised 1-on-1 |
| Singapore Singapore | 2 h 30 min ahead of India | 3:30 PM to 9:00 PM | Personalised 1-on-1 |

Photographs of handwritten pages are enough; no scanner is needed. Say in the form which section you find hardest and we will keep the first class for it.

What families say

## Rated 4.9 across 547 Google reviews

Real reviews from real families. We neither write nor commission them.

★★★★★

"The one step solution for my son. Modern Age Coders make learning coding so simple that kids love it. The teachers explain complex concepts clearly with practical exercises and interactive content."

Ria Mukherjee

Parent

★★★★★

"Modern Age Coders has been a game-changer for me. I struggled to grasp IT concepts and coding before joining, but their classes transformed everything. I can now confidently write complex programs with ease."

Samriddha Mondal

Student

★★★★★

"One of the most wonderful education centres out there. Education is not limited to school syllabus but focuses on skill development."

Vansh Agarwal

Student

★★★★★

"My child Dhairya is really enjoying the Modern Age Coders classes. This is his first online class and he eagerly looks forward to it. I can already see his improvement, and the teachers are very cooperative."

Sonam Oswal

Parent of Dhairya

★★★★★

"Modern Age Coders have wonderful teachers who teach in a clear, easy and practical way. The teacher boosts students' confidence and inspires them to learn without hesitation."

Sonu Goyal

Parent

★★★★★

"I highly recommend this computer coding class! The teachers are incredibly knowledgeable and passionate about coding."

Ritu Kedia

Parent

The rest of the ISC Class 11 and 12 series

## More pages for ISC Class 11 and 12 students

Every page in the ISC Computer Science (868) series, grouped by what you need.

### Syllabus and theory paper

- [ISC Class 12 CS syllabus 2027](/isc-class-12-computer-science-syllabus-2027)
- [ISC Class 12 CS pattern and questions](/isc-class-12-computer-science-paper-pattern-and-important-questions)

### Practicals and work file

- [ISC Class 12 practical questions solved](/isc-class-12-computer-science-practical-questions)
- [ISC work file, assignments and project](/isc-class-12-computer-science-work-file-and-project)
- [ISC Class 11 practical questions](/isc-class-11-computer-science-practical-questions)

### Chapter work and help

- [ISC Boolean algebra and K-maps](/isc-class-12-computer-science-boolean-algebra)
- [ISC Class 12 CS crash course](/isc-class-12-computer-science-crash-course)

**CBSE Class 12 Computer Science (083):** [Class 12 CS viva questions](/cbse-class-12-computer-science-viva-questions)  [Class 12 CS sample paper practice](/cbse-class-12-computer-science-sample-paper-2026-27)  [Class 12 CS project with source code](/cbse-class-12-computer-science-project-python-mysql)  [Class 12 CS important questions](/cbse-class-12-computer-science-important-questions)

**CBSE Class 12 Informatics Practices (065):** [Class 12 IP practical file](/cbse-class-12-informatics-practices-practical-file)  [Class 12 IP project with source code](/cbse-class-12-informatics-practices-project)  [Class 12 IP sample paper practice](/cbse-class-12-informatics-practices-sample-paper-2026-27)  [Class 12 IP important questions](/cbse-class-12-informatics-practices-important-questions)

**CBSE Class 12 Information Technology (802):** [IT 802 practical and project file](/cbse-class-12-it-802-practical-and-project-file)  [IT 802 Java notes and programs](/cbse-class-12-it-802-java-programs)  [IT 802 notes](/cbse-class-12-it-802-notes)

**CBSE Class 11 CS, IP and AI:** [Class 11 CS practical file](/cbse-class-11-computer-science-practical-file)  [Class 11 IP practical file](/cbse-class-11-informatics-practices-practical-file)  [CS or IP in Class 11](/computer-science-or-informatics-practices-class-11)

**Program lists with output:** [Java programs for ISC Class 11 and 12](/blog/java-programs-for-isc-class-11-and-12)  [String and array programs in Java](/blog/string-and-array-programs-in-java)

About the specimen and this paper

## ISC computer science specimen paper: questions students ask

### Is the ISC Computer Science specimen paper 2027 released?

We could not read a 2027 specimen for code 868, so we do not say what it contains. The latest specimen we have read is the CISCE one marked 2025. Check the specimen question papers on cisce.org. If a newer Computer Science paper is there, use it first and treat this page as an extra paper.

### How many questions are in the ISC Class 12 Computer Science paper?

The 2025 specimen prints eleven questions and asks you to answer eight. Questions 1 and 2 in Part I are compulsory. Part II has three sections with three questions each, and you choose two from every section. The marks come to 20 + 20 + 20 + 10 = 70.

### Is this the official ISC specimen paper?

No. Every question on this page was written by us, in the design of the 2025 specimen, so that you have one more paper to practise on. It is not issued or approved by CISCE. The official specimens are free on cisce.org, and you should write those as well.

### Do I need to write algorithms in the ISC Computer Science theory paper?

For Section B the 2025 specimen says flowcharts and algorithms are not required, and asks for mnemonic names and comments in the program. In Section C an algorithm is written only where a question asks for it. Algorithms matter more in the practical, where 3 of the 15 marks of the day are for one.

### How is choice given in the ISC Computer Science paper?

Part I has none. In Part II you choose two whole questions out of three in each section, so you leave out exactly one per section. You cannot answer three in Section A to make up for one in Section C, because each section needs its own two.

### How many MCQs are there in ISC Computer Science?

In the 2025 specimen, Question 1 has ten parts of one mark: eight with four options, of which three are assertion and reason items, and two short answers without options. The instruction is to write only one option as the answer. This practice paper keeps the same mix.

### Can I solve a recursion question with a loop?

Not when the question says recursion. A loop may print the right result, but the method asked for is the recursive one, and that is what the marks are for. If you get stuck, write the base case and the call with a smaller value first; those two lines are the heart of it.

### Do I have to write main() in every ISC program?

In Section B, yes: the 2025 specimen asks you to define main() to create an object and call the methods. In its Section C, the data structure and inheritance questions say the main function need not be written. Read the last line of the question, because that is where it is stated.

### Where can I find an ISC Class 12 Computer Science question paper with solutions?

Start on cisce.org for official specimens. For one more complete set, this page has an original 70-mark paper with the truth tables, maps, circuits, traces and five Java programs worked, plus a linked list method and a tree. Past board papers belong to CISCE and are not reproduced here.

### Can a teacher check my ISC Computer Science paper online?

Yes. You write the paper by hand, send photographs, and a teacher marks it with you live, one to one, at a time you pick. A priority demo is a complete live class with a written skill report afterwards, so you can judge the marking before you join. A free demo class is also available.

Start

## Send two answers and watch them marked

Choose one Section A question and one Section B question from this paper and write them by hand. Bring them to a **priority demo**, which is a complete live class of about 45 to 60 minutes at the slot you choose. The teacher marks both with you and sends a skill report in writing. If you enrol, what you paid is adjusted against the first month.

A free demo class works too. Class details for the subject are on [the ISC Class 12 Computer Science page](/computer-science-class-12-icse).

[WhatsApp us](https://wa.me/919123366161?text=Hello%20Modern%20Age%20Coders.%20I%20want%20one%20to%20one%20practice%20paper%20classes%20for%20ISC%20Class%2012%20Computer%20Science.) · [+91 91233 66161](tel:+919123366161) · [connect@modernagecoders.com](mailto:connect@modernagecoders.com)

Every class is live video. The form requests a callback and reserves nothing.

### Want it sooner? Book a priority demo

A full live class of about 45 to 60 minutes at a slot you pick, with a written skill report and learning roadmap on WhatsApp afterwards. The fee is adjusted against your first month if you enrol.

[Book a priority demo](/book-demo)

## Keep exploring Modern Age Coders

### By class and age

- [Java for ICSE & ISC Students](/java-programming-for-icse-students)
- [Ontario Math Curriculum Coding, Grades 1 to 8, by Grade](/ontario-coding-curriculum-grades-1-to-8)
- [Orange Data Mining Class 10 AI: Penguins, Coral, Sentiment](/orange-data-mining-class-10-ai)
- [Special Number Programs in Java for ICSE Class 10, 2027](/icse-special-number-programs-java)
- [Python for CBSE Class 10 AI (417)](/python-for-cbse-class-10-ai)
- [Difference Between Questions ICSE Computer Applications 2027](/icse-computer-difference-between-questions)
- [Class 12 IP Viva Questions with Answers, 2026-27 (065)](/cbse-class-12-informatics-practices-viva-questions)
- [Class 12 Computer Science Output Questions with Answers](/cbse-class-12-computer-science-output-questions)
- [Class 12 Computer Science MCQ with Answers: 40 Questions](/cbse-class-12-computer-science-mcq-test)

### Learn more

- [AP Computer Science A Practice Questions, With Answers](/ap-computer-science-a-practice-questions)
- [IB Computer Science Tutor in Peru: Live Online, SL and HL](/ib-computer-science-tutor-peru)
- [ICSE Computer Applications (Class 9-10): Java with BlueJ](/courses/icse-computer-applications-java-bluej-course)
- [IB Computer Science Online Tuition](/ib-computer-science-online-tuition)

### Free resources

- [SQL Tutorial: Databases, Basics to Advanced](/resources/sql)
- [Window Functions](/resources/sql/window-functions)
- [CREATE, ALTER, DROP Tables](/resources/sql/creating-and-modifying-tables)
- [Installing Python and Setting Up Your Environment](/resources/python/installing-python-and-setup)

### From the blog

- [IGCSE 0478 Pseudocode: The Rules Examiners Mark](/blog/igcse-computer-science-0478-pseudocode-guide)
- [How to Revise GCSE Computer Science (AQA and OCR)](/blog/how-to-revise-gcse-computer-science)
- [50 Important Java Programs for ICSE Class 10 Boards](/blog/50-java-programs-for-icse-class-10)

### Start here

- [Try a free trial class with a Modern Age Coders mentor](/free-trial)
- [About Modern Age Coders, teaching since 2020](/about)

---

*Canonical: https://learn.modernagecoders.com/isc-class-12-computer-science-specimen-paper-practice*
