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

The Peshawar Board's 2018 Class 10 Computer Science paper (English medium), typed in full. Eleven MCQs on algorithms, flowchart symbols, C programs, operators, if statements, loops, logic gates and HTML — each explained online — plus nine short questions and three long questions.

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

Full paper

PR X (01) 18
BOARD OF INTERMEDIATE AND SECONDARY EDUCATION, PESHAWAR
Secondary School Certificate (S.S.C. Part-II) — Class X Annual Examination 2018
Computer Science — SSC Class 10, PR X (01) 18, Peshawar (English medium) — Class 10 — 2018
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.
Algorithm is a sequence of computational steps, that transform the input into ............
Answer & explanation

Correct answer: C — Output

Input is transformed into output.
2.
Which symbol is used to represent processing?
Answer & explanation

Correct answer: C — ▭ (rectangle)

In a flowchart, a rectangle represents a processing step such as a calculation or assignment. The oval marks start or end, and the diamond marks a decision.
3.
A set of instructions that tells a computer what to do and how to do called......
Answer & explanation

Correct answer: B — 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.
4.
The execution of a C program starts from function.......
Answer & explanation

Correct answer: B — main()

Every C program starts executing from the main() function, so each C program must have exactly one main(). const() and start() are not special functions.
5.
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.
6.
Which operator is used to produce true result if both conditions are true?
Answer & explanation

Correct answer: A — AND

The logical AND operator (&& in C) gives true only when both conditions are true. OR gives true if either is true, and NOT reverses a condition.
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 conditional portion of if statement is enclosed within .......
Answer & explanation

Correct answer: B — ( )

In C the condition of an if statement is written inside parentheses ( ), e.g. if (x > 0). Braces { } enclose the block of statements to run.
9.
How many types of loop structures are there in C?
Answer & explanation

Correct answer: B — 3

for, while and do-while.
10.
The output of which gate is 1 only when all its input 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 language is used for creating web pages?
Answer & explanation

Correct answer: A — 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.

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

Answer any SEVEN parts. Each part carries FOUR marks.

1.
Define candid solution of problem?
2.
Differentiate between compiler and interpreter?
3.
What is the purpose of const qualifier?
4.
What is the purpose of gets ( ) functions?
5.
Differentiate between simple and compound assignment operators.
6.
Write a program that prints the larger of two numbers.
7.
Define conditional/selection statement? And write the syntax if-else statement.
8.
Draw the NAND, NOR, XOR and XNOR gates?
9.
Write HTML tags for Title, Paragraph, Line Break, Spaces, heading.

Section CMarks: 16

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

Q-III.
What are output functions? Describe in detail various types of out put functions.
8
Q-IV.
Explain different types of looping structures with examples.
8
Q-V.
Simplify the following Boolean function using K-Map method. Also draw the logic diagram of the simplified function. F = XZ + YZ + YZ + XYZ
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