Computer Science Class 10 Peshawar Board 2023 Past Paper (English Medium)

The Peshawar Board's 2023 Class 10 Computer Science paper (English medium), typed in full. Eleven MCQs on printf, high-level languages, switch-case, loops, increment, hyperlinks, URLs and logic gates — each explained online — plus nine short questions and three long questions.

Board: PeshawarClass 102023English Medium55 marks2 hours 30 minutes
Download PDFAttempt MCQs onlineExaminer notes

Paper pattern

SectionQuestionsAttemptMarks
Section A (MCQs)11All11
Section B (short)9Any 7 of 928
Section C (long)3Any 2 of 316

What changed from 2021

Full paper

PR X (01) 23
BOARD OF INTERMEDIATE AND SECONDARY EDUCATION, PESHAWAR
Secondary School Certificate (S.S.C. Part-II) — Class X Annual Examination 2023
Computer Science — SSC Class 10, PR X (01) 23, Peshawar (English medium) — Class 10 — 2023
Time: 2 hours 30 minutesTotal Marks: 55

Section ATime: 15 minutes · Marks: 11

Fill only the circle of the correct answer with a blue or black pen/marker; filling more than one circle gets no credit.

Score 0 / 0 attempted · 11 MCQs
1.
Which of the given functions is used to display output on the screen?
Answer & explanation

Correct answer: A — printf()

printf() displays output on the screen. scanf(), gets() and getchar() are input functions that read data from the keyboard.
2.
Which of the given is not a high level language?
Answer & explanation

Correct answer: B — Assembly language

Assembly is low level.
3.
In C language, every statement is terminated by......
Answer & explanation

Correct answer: C — Semicolon

In C every statement ends with a semicolon (;), e.g. x = 5;. A full stop or comma does not end a statement.
4.
The case block ends with......
Answer & explanation

Correct answer: C — Break;

Each case block in a switch normally ends with break;, which stops execution from falling through into the next case.
5.
Which loop structure always executes at least once?
Answer & explanation

Correct answer: A — do-while

A do-while loop checks its condition after running the body, so the body always executes at least once. for and while check the condition first.
6.
A loop within another loop is called ......
Answer & explanation

Correct answer: D — Nested loop

A loop placed inside the body of another loop is called a nested loop. The inner loop completes all its iterations for each single iteration of the outer loop.
7.
Which operator is used to add 1 to the value of an integer variable?
Answer & explanation

Correct answer: D — ++

The increment operator ++ adds 1 to an integer variable: x++ is the same as x = x + 1. -- (decrement) subtracts 1.
8.
Text or image in a web page that links it to another web page is called......
Answer & explanation

Correct answer: C — Hyper link

A hyperlink is text or an image on a web page that, when clicked, opens another page or resource. It is created with the <a> tag.
9.
Internet address which identifies a website is called........
Answer & explanation

Correct answer: D — URL

A URL (Uniform Resource Locator), such as https://tayarri.com, is the unique address that identifies a website or web page on the Internet.
10.
The output of which gate is '1' only when all its inputs are 1?
Answer & explanation

Correct answer: A — AND gate

An AND gate outputs 1 only when all its inputs are 1; any 0 input gives 0. An OR gate outputs 1 if any input is 1, and NAND is the inverse of AND.
11.
Which gate performs the logical negation or complementation?
Answer & explanation

Correct answer: C — NOT gate

The NOT gate (inverter) has one input and gives its opposite: 1 becomes 0 and 0 becomes 1. This is logical negation or complementation.

Section BTime: with Section C: 2 h 15 min · Marks: 28

Answer any SEVEN parts. Each part carries FOUR marks.

1.
Define any three problem solving techniques.
2.
Write an algorithm to calculate the factorial of a given number and draw flowchart for it.
3.
Differentiate between compiler and interpreter.
4.
What is IDE?
5.
Write rules for variable names.
6.
Why escape sequences are used? Give examples.
7.
Differentiate between do-while and while loop.
8.
Create an HTML document that contains hyperlinks to three websites.
9.
Write the HTML tags for the following: (i) Paragraph (ii) Heading (iii) Superscript (iv) Underline

Section CMarks: 16

Attempt any TWO questions in detail. All questions carry equal marks.

Q-III.
What is flowchart? Explain flowchart symbols in detail.
8
Q-IV.
What are high level languages? Explain any three types of high level languages.
8
Q-V.
Write a program in C to input three integers. Find out the largest among these integers using if-else structure and print it on the screen.
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