Computer Science Class 12 Kohat Board 2026 Past Paper

The Kohat Board's 2026 Class 12 Computer Science subjective paper, typed in full: twelve short questions (attempt nine) and four two-part long questions (attempt three) on operating systems, the SDLC, C++ basics, loops, arrays, functions, pointers, classes and files.

Board: KohatClass 12202675 marks3 hours
Download PDFExaminer notes

Paper pattern

SectionQuestionsAttemptMarks
Section B (short)12Any 9 of 1236
Section C (long)4Any 3 of 424

Full paper

KT-XII-26-I
BOARD OF INTERMEDIATE AND SECONDARY EDUCATION, KOHAT
Higher Secondary School Certificate (H.S.S.C.) Part-II — Class XII Annual Examination 2026
Computer Science-II-26(A) — Kohat 2026 — Class 12 — 2026
Time: 3 hoursTotal Marks: 75

Section BTime: with Section C: 2 h 40 min · Marks: 36

Q.No.2 Attempt any NINE parts. All part carries equal marks.

i.
Differentiate DOS and Windows Operating System. (2+2)
ii.
Define Thread. List three commonly used operating system. (1+1+1+1)
iii.
List four objectives of software development life cycle. (1+1+1+1)
iv.
Define Keywords in C++. List three escape sequences. (1+1+1+1)
v.
Evaluate the following. (a) (false && true) || (false || true) (b) !(7>6 && 1<2) (2+2)
vi.
Write a program in C++ using for loop that prints product of all even no from 10 to 40. (1+3)
vii.
Define Array. How two-dimensional array is represented in computer memory? (1+3)
viii.
Write a C++ program having function name area and to find the area of a rectangle. (1+3)
ix.
Differentiate local and global variable. (2+2)
x.
What is null pointer? List three advantages of using pointer variable. (1+1+1+1)
xi.
Differentiate base and derived class. (2+2)
xii.
Define Polymorphism? List three modes of opening file. (1+1+1+1)

Section CMarks: 24

Note: Attempt any THREE questions. All question carries equal marks.

Q.3.
  1. (a)What is for loop? Discuss its components. (1+3)4
  2. (b)Write a program in C++ using while loop that display numbers from 1 to 30 in descending order. (1+3)4
8
Q.4.
  1. (a)Draw and label Five-State process model diagram. (1+3)4
  2. (b)Write Four rules for naming variables in C++. (1+1+1+1)4
8
Q.5.
  1. (a)List names of four Arithmetic operators in C++ with one example for each. (1+1+1+1)4
  2. (b)What is Class? How objects are created to access members of a class? (1+3)4
8
Q.6.
  1. (a)Write Four advantages of function overloading. (1+1+1+1)4
  2. (b)What are decision statements? Write a C++ program that demonstrate concept of decision statements. (1+3)4
8

Examiner notes on this paper

About this transcription

Download this paper

Print-ready A4 PDF, same content as above, no login needed.

Download PDF