Computer Science Class 10 Peshawar Board 2026 Past Paper
The Peshawar Board's 2026 Class 10 Computer Science paper, typed in full. Eleven MCQs on flowcharts, languages, the IDE, C/C++ input and output, switch, loops, logic gates, the web and HTML — each explained online. Section B asks six of nine short questions and Section C two of three long questions on C.
BOARD OF INTERMEDIATE AND SECONDARY EDUCATION, PESHAWAR
Secondary School Certificate (S.S.C.) Part-II — Class X (Fresh/Reappear) Examination 2026
Computer Science (Compulsory) 10th (Fresh/Reappear) — Class 10 — 2026
Time: 2 hours 30 minutesTotal Marks: 55
Section ATime: 15 minutes · Marks: 10
Choose the correct option i.e. A, B, C or D. (Printed in Urdu on the paper: fill only the circle of the correct answer, using a blue or black marker; filling more than one circle counts as a wrong answer.)
Score 0 / 0 attempted · 11 MCQs
1.
_____ is a diagrammatic or symbolic representation of algorithm
Answer & explanation
Correct answer: C — Flowchart
A flowchart shows an algorithm's steps with standard symbols.
Java and Python are English-like high-level languages.
4.
The environment where we can type, debug, compile and run our code is called _____.
Answer & explanation
Correct answer: A — IDE
An Integrated Development Environment combines the editor, compiler and debugger. An editor alone only lets you type.
5.
Which of the given are used in C++ for input and output?
Answer & explanation
Correct answer: C — cin/cout
cin and cout are C++'s stream input and output objects; printf/scanf are the C functions.
6.
Case and break are used in _____ statement?
Answer & explanation
Correct answer: B — switch()
A switch statement lists case labels, and break ends each case.
7.
When we know no. of times we want our code to repeat we use _____ loop.
Answer & explanation
Correct answer: A — for
A for loop is a counter-controlled loop for a known number of repetitions.
8.
Which of the given is not used for decision making in C-language?
Answer & explanation
Correct answer: C — for
for is a loop. if-else and switch make decisions.
9.
_____ gate is used to convert false into true or true into false.
Answer & explanation
Correct answer: C — Not
The NOT gate inverts its input: 0 → 1, 1 → 0.
10.
www stands for _____
Answer & explanation
Correct answer: A — world wide web
WWW = World Wide Web.
11.
Which of the given tag is used to insert a break in the line in HTML?
Answer & explanation
Correct answer: B — <br>
<br> inserts a line break; <img> adds an image.
Section BTime: with Section C: 2 h 15 min · Marks: 28
Q2: Attempt any SIX parts. Each part carries FOUR marks.
1.
What is the difference between personal website and business website?
2.
Define XOR gate with diagram and truth table.
3.
Why while loop can run 0 no. of time but do-white will always run at least one no. of time? Explain.
4.
Why, “if” statement is different from "if-else" statement? Explain.
5.
Why do we use = and == operators?
6.
Define arithmetic operators.
7.
Create a flowchart for taking three integers as input and finding their sum and printing the result on the screen.
8.
Differentiate between syntax and semantics in programming language.
9.
Write an algorithm that reads the temperature in Celsius and converts it into Fahrenheit and print the result on screen?
Section CMarks: 16
Note: Attempt any TWO questions in detail. All questions carry equal marks.
Q3.
What are operators? Explain different types of operators with examples.
8
Q4.
Write a program in C that takes salary of an employee as input and then calculates 10% raise for given salary and then prints the result on the screen.
8
Q5.
Explain different data types used in C-language with examples.
8
Examiner notes on this paper
Every answer on the pre-shaded sheet for this paper checks out against Tayarri's own working.
Section C Q4 is a full C program: read the salary with scanf, compute raise = salary * 0.10 and the new salary, and print both with printf. Write the header file, main(), declarations, input, processing and output — each earns marks.
Section B part 3: a while loop tests its condition before the body (so it can run zero times); do-while tests after the body, so it always runs at least once.
About this transcription
Typed from the board's own Class X 2026 question paper. Wording, spelling and numbering are kept as printed; anything changed is listed here.
The scanned answer sheet arrived with bubbles already shaded in. That shading is not trusted: it has been removed from the downloadable PDF, options are shown unmarked here, and every answer in the online quiz was worked out independently by Tayarri. Where the shading was wrong, the notes say so.
The Section A instructions are printed in Urdu on the paper; they are summarised in English above the MCQs.
Section A is printed as 'Marks: 10' but has 11 MCQs; Section B is printed as 28 marks for six parts of four marks (24). Figures kept as printed.
Stray print marks left out: '1', '8' and '9' inside the stems of MCQs 1, 8 and 9.
Kept as printed: 'Wrestling world wide', 'world wide wars-957', 'our for code to repeat', 'do-white', 'Not' (NOT gate).
Download this paper
Print-ready A4 PDF, same content as above, no login needed.