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