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

The Peshawar Board's 2021 Class 10 Computer Science paper (English medium), typed in full. Eleven MCQs on HTML, problems, switch-case, programs, logic gates, statement terminators, the modulus operator, loops and URLs — each explained online — plus nine short questions and three long questions.

Board: PeshawarClass 102021English 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 2020

Full paper

Paper – X (01) (21)
BOARD OF INTERMEDIATE AND SECONDARY EDUCATION, PESHAWAR
Secondary School Certificate (S.S.C. Part-II) — Class X Annual Examination 2021
Computer Science — SSC Class 10, Paper – X (01) (21), Peshawar (English medium) — Class 10 — 2021
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 language is used to create web pages?
Answer & explanation

Correct answer: B — HTML

HTML (HyperText Markup Language) is used to create web pages. C is a general programming language, a URL is a web address and a browser only displays pages.
2.
An obstacle, difficulty or challenge, or any situation that requires resolution is:
Answer & explanation

Correct answer: C — Problem

A problem is any obstacle, difficulty or situation that needs a solution. An algorithm is the set of steps used to solve it.
3.
The case block ends with........
Answer & explanation

Correct answer: D — Break;

Each case block in a switch normally ends with break;, which stops execution from falling through into the next case.
4.
........is a set of instructions that tells a computer what to do and how to do?
Answer & explanation

Correct answer: A — Program

A program is a set of instructions that tells a computer what to do and how to do it. A compiler translates programs, and hardware is the physical equipment.
5.
An electronic circuit that takes one or more than one input signals and produces a single output signal is:
Answer & explanation

Correct answer: C — Digital logic gate

A logic gate is an electronic circuit that takes one or more binary input signals and produces a single output, e.g. AND, OR and NOT gates.
6.
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.
7.
In C language every statement is terminated by..,....
Answer & explanation

Correct answer: C — Semi colon

In C every statement ends with a semicolon (;), e.g. x = 5;. A full stop or comma does not end a statement.
8.
Which of the given is called modulus operator?
Answer & explanation

Correct answer: B — %

% is the modulus operator: it gives the remainder of integer division, e.g. 17 % 5 = 2. It does not calculate a percentage.
9.
Which loop structure always executes at least once.
Answer & explanation

Correct answer: A — Do-while

do-while tests after the body.
10.
Which of the given loop is a good choice when the numbers of iterations are known in advance?
Answer & explanation

Correct answer: A — For

A for loop is the best choice when the number of iterations is known beforehand, because the initialization, condition and increment are written together in one line.
11.
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.

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

Answer any SEVEN parts. Each part carries FOUR marks.

1.
Define For loop with its syntax.
2.
What are reserved words?
3.
Write rules for variable names.
4.
What is website?
5.
Define any of the four flowchart symbols with their purpose.
6.
Write a program in C to input two integers. Find out the largest among these integers using if-else structure and display it on the screen.
7.
Define OR logic gate with diagram.
8.
What is the purpose of gets ( ) function?
9.
What is the purpose of puts ( ) function?

Section CMarks: 16

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

Q-III.
What are constants and variables? Differentiate them with examples.
8
Q-IV.
Write a program in C to print the sum of odd numbers from 1 to 50 using for loop.
8
Q-V.
Write down different types of looping structures with examples.
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