Cambridge (CAIE) · Class 12 · Set 2
Computer Science
Practice for Cambridge 2026-27 examinations, offered in the February-March (India), May-June and October-November series.
Independent practice paper — verify on official board sources
Disclaimer: BharatBoard is an independent student and parent guide — not affiliated with, associated with, or endorsed by any Central Board, State Board, school, educational institution, recruitment commission, or government body, and does not represent any government entity. We recommend that you contact and verify all exam results, date sheets, syllabi, school admission dates, eligibility criteria, fee schedules, scholarships, and government job notifications directly with the respective school, institution, Central Board, State Board, or recruitment body via their official websites and notifications. These questions are original practice items for revision. Follow the official syllabus, the prescribed textbooks, and your school or institution. Model answers are a study aid. They are not an official marking scheme.
Cambridge (CAIE) Class 12 Computer Science, Set 2, is an original BharatBoard revision set of 20 marks. It is shorter than a full board paper. The official syllabus and sample papers on the Cambridge (CAIE) website remain the authority.
Timed Exam Mode
Official 60-minute writing countdown
General instructions & how to use this paper
- This revision set has 15 questions and 20 marks. Ten questions are one mark. Five questions are two marks. Attempt every question. A calculator is not needed.
- Timing is typical months only — always verify the exact dates on the official board website, which change every session.
Section A
· Multiple-choice questionsAttempt all ten 1-mark questions.
In operating-system virtual memory management, what causes "disk thrashing" and sharp system slowdown?
Model answer · Option C
Excessive page-fault interrupts saturate slow disk/SSD I/O channels whenever active working sets exceed physical RAM frames.
Evaluate the Reverse Polish Notation (postfix) expression `8 5 3 + * 4 -` using a standard stack evaluation algorithm.
Model answer · Option B
Stack evaluation computes 5 + 3 = 8, multiplies 8 × 8 = 64, and subtracts 4 to leave 60.
During compilation of high-level source code, which stage strips whitespace and comments, replaces keywords/identifiers with fixed-length tokens, and starts populating the symbol table?
Model answer · Option A
Lexical analysis scans character streams into tokens prior to syntax analysis building parse/abstract syntax trees.
When Alice sends a digitally signed document to Bob over an insecure network to prove authenticity and non-repudiation (without encrypting the document text itself), which key encrypts the message digest (hash)?
Model answer · Option D
Only Alice possesses her private key; successful decryption with Alice’s public key yielding an identical fresh hash proves sender identity and unaltered integrity.
In Object-Oriented Programming (OOP), why should class attributes be declared `PRIVATE` and accessed only via `PUBLIC` getter and setter methods?
Model answer · Option C
Restricting direct attribute mutation preserves class invariants and decouples internal representation from external callers.
Distinguish OOP "containment" (aggregation/composition) from "inheritance" using a `Car` class and an `Engine` class.
Model answer · Option B
Choosing "has-a" composition versus "is-a" subclassing is fundamental to clean object-oriented class design.
What happens in memory if a recursive function is invoked without a reachable terminating base case?
Model answer · Option A
Winding without unwinding grows the call stack monotonically until it exceeds allocated stack space.
What are the worst-case time complexities in Big-O notation for Binary Search on a sorted array of n items versus Merge Sort on an unsorted array of n items?
Model answer · Option D
Binary search halves the search interval each comparison (log₂ n), whereas merge sort recursively splits log₂ n levels doing O(n) merge work per level.
When traversing a Binary Search Tree (BST) containing distinct integers, which recursive depth-first traversal visits every node in strictly ASCENDING sorted order?
Model answer · Option C
Because all left-subtree values < root < all right-subtree values, visiting Left, Root, Right outputs keys in ascending order.
How does the A* (A-star) pathfinding algorithm improve search efficiency over standard Dijkstra’s shortest-path algorithm on a road-map graph with a known single destination?
Model answer · Option B
Minimising f(n) = g(n) + h(n) with a non-overestimating heuristic finds the optimal path while visiting far fewer off-direction vertices.
Section B
· Short-answer questionsAttempt all five 2-mark questions.
Distinguish between paging and segmentation in operating-system memory management.
Model answer
Paging divides memory into equal fixed-size physical frames and pages transparent to programmers, whereas segmentation divides memory into variable-sized logical modules matching code subroutines, arrays, and stacks.
Give two advantages of Reverse Polish Notation (RPN) over standard infix notation for expression evaluation in compilers and stack architectures.
Model answer
RPN is completely unambiguous without needing brackets or operator-precedence rules, and expressions evaluate in a single left-to-right pass using a simple hardware/software stack.
Outline how TLS/SSL combines BOTH asymmetric and symmetric encryption when establishing a secure HTTPS browser session.
Model answer
Asymmetric public/private keys and server digital certificates authenticate the server and securely exchange a fresh session key; fast symmetric encryption then encrypts bulk session traffic using that shared key.
Explain polymorphism in OOP using a base class `Shape` with method `calculateArea()` overridden in subclasses `Circle` and `Rectangle`.
Model answer
Calling `s.calculateArea()` on a polymorphic array of `Shape` references dynamically dispatches at runtime to either `Circle`’s `πr²` implementation or `Rectangle`’s `w × h` implementation according to each object’s actual subclass.
Explain why Backus-Naur Form (BNF) uses recursive production rules (defining an unsigned integer in terms of a digit followed by an unsigned integer) rather than listing every valid integer.
Model answer
Recursive production rules finitely and concisely define an infinite set of syntactically valid multi-digit numbers or nested expressions using a handful of terminal and non-terminal symbols.
Official syllabus & blueprint sources
Syllabus scope and question-paper structure were verified against the official portals below, which remain the sole authority.