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

The Peshawar Board's 2020 Class 10 Computer Science supplementary paper (English medium), typed in full. Eleven MCQs on break and continue, for loops, logic gates, websites, if and switch, format specifiers and high-level languages — each explained online — plus nine short questions and three long questions.

Board: PeshawarClass 102020English 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 2019

Full paper

PR X (SE) 20
BOARD OF INTERMEDIATE AND SECONDARY EDUCATION, PESHAWAR
Secondary School Certificate (S.S.C. Part-II) — Class X Annual Examination 2020
Computer Science — SSC Class 10, PR X (SE) 20, Peshawar (English medium) — Class 10 — 2020
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 · 10 MCQs
1.
Which of the given statement is used in the body of loop to exit from the loop?
Answer & explanation

Correct answer: A — Break

The break statement immediately ends the loop and passes control to the statement after it. continue skips only the rest of the current iteration.
2.
Which of the given loop is a good choice when the number of iterations are known in advance?
Answer & explanation

Correct answer: B — 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.
3.
The gate whose output is "1" when all the inputs are 0's is called.......
About this question
Left un-keyed: both NAND and NOR give 1 when all inputs are 0 (NOR gives 1 only then).
4.
A collection of web pages hosted on a web server is called........
Answer & explanation

Correct answer: B — Website

A website is a collection of related web pages hosted on a web server under one domain. A home page is just its first page, and a browser is the program used to view it.
5.
An electronic circuit that takes one or more input signals and produces a single output signal is called......
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.
Which statement is used to move the control to the start of loop body?
Answer & explanation

Correct answer: A — Continue

continue skips the remaining statements of the current iteration and moves control back to the start of the loop for the next iteration. break leaves the loop completely.
7.
Which programming statement makes a decision?
Answer & explanation

Correct answer: A — If

The if statement makes a decision: it tests a condition and runs a block only when the condition is true. break exits loops, and printf() displays output.
8.
The switch statement is used for.......choice or selection.
Answer & explanation

Correct answer: B — Multiple

The switch statement selects one of many case blocks based on the value of an expression, so it is used for multiple choice (selection).
9.
Which of the given is the format specifier for integer data type?
Answer & explanation

Correct answer: C — %d

%d is the format specifier for int values in printf() and scanf(). %f is for float, %c for char and %s for strings.
10.
Which of the given modules is not part of "C" programming?
Answer & explanation

Correct answer: D — Converter

A C programming environment has an editor, compiler and linker (plus loader and debugger). There is no converter module.
11.
Which of the given is not a high level language?
Answer & explanation

Correct answer: B — Assembly language

Assembly is low level.

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

Answer any SEVEN parts. Each part carries FOUR marks.

1.
What is IDE?
2.
Write rules for variable names.
3.
What is the purpose of gets() function?
4.
Write general syntax of If-else statement.
5.
What is truth table?
6.
What is algorithm?
7.
What is search engine?
8.
What is looping?
9.
What are escape sequences?

Section CMarks: 16

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

Q-III.
What are operators? Explain different types of operators with examples.
8
Q-IV.
Write a "C" program that reads name and address of a student and prints it on the screen using gets() and puts() functions.
8
Q-V.
Write short notes on any two of the following: (a) Header file (b) Reserved words (c) Web portals
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