Computer Science Class 10 Gujranwala Board 2025 Past Paper (Group I)
The Gujranwala Board's 2025 Class 10 Computer Science paper, Group I, typed in full. Ten MCQs on software, IDEs, operators, getch(), blocks, control statements, arrays and functions — each explained online — plus the short and long questions.
BOARD OF INTERMEDIATE AND SECONDARY EDUCATION, GUJRANWALA
Secondary School Certificate (S.S.C. Part-II) — Class X Annual Examination 2025
Computer Science — Class 10, 1st Annual 2025, Gujranwala (Group I) — Class 10 — 2025
Time: 2 hoursTotal Marks: 50
Group I — ObjectiveTime: 15 minutes · Marks: 10
Four possible answers A, B, C and D are given. Fill the circle in front of the correct answer with marker or pen ink on the answer sheet. Cutting or filling two or more circles will result in zero mark in that question.
Score 0 / 0 attempted · 10 MCQs
1.
Set of instructions given to the computer is called ______
Answer & explanation
Correct answer: B — Software
Software is a set of instructions (programs) that tells the computer what to do. Hardware is the physical parts, and an operator is a symbol such as + or =.
2.
A software that helps the programmer to write computer program is called ______
Answer & explanation
Correct answer: C — IDE
The textbook: an IDE provides the environment that helps the programmer write programs.
3.
Symbol used for assignment operator is
Answer & explanation
Correct answer: A — =
In C the single equals sign (=) is the assignment operator: x = 5; stores 5 in x. % gives a remainder, + adds and / divides; == is used for comparison.
4.
getch() is used to take ______ as input from user.
Answer & explanation
Correct answer: C — Character
getch() reads a single character from the keyboard without waiting for Enter and without showing it on screen. scanf() is used to read integers and floats.
5.
A set of multiple instructions enclosed in braces is called ______
Answer & explanation
Correct answer: D — Block
A block (compound statement).
6.
Types of control statements are ______
Answer & explanation
Correct answer: B — 3
Sequential, selection and repetition.
7.
Assigning values to an array for the first time is called ______
Answer & explanation
Correct answer: D — Array initialization
Giving values to an array when it is first created is array initialization, e.g. int a[3] = {1, 2, 3};. Declaration only states the array's type, name and size.
8.
If the size of an array is 100, the range of index will be ______
Answer & explanation
Correct answer: A — 0 – 99
Indexes start at 0.
9.
The values passed to a function are called ______
Answer & explanation
Correct answer: D — Arguments
The values passed to a function when it is called are arguments, e.g. in sum(4, 5) the arguments are 4 and 5. The return type is the type of value sent back.
10.
Types of functions are ______
Answer & explanation
Correct answer: C — 2
C has two types of functions: built-in (library) functions such as printf() and sqrt(), and user-defined functions written by the programmer.
Group I — Subjective Part IMarks: 24
Attempt any four parts from each of Q.2, Q.3 and Q.4 (2 marks each).
Q.2.
Write short answers to any FOUR parts.
(i)Define char data type.
(ii)What do you know about case sensitive language?
(iii)Define keyword.
(iv)Define escape sequence.
(v)Define binary operator.
(vi)Draw the truth table of OR operator.
8
Q.3.
Write short answers to any FOUR parts.
(i)Draw a flow chart of if statement.
(ii)Write down the names of types of C-Language Control Statements.
(iii)What is meant by nested selection?
(iv)What are three types of Loops?
(v)What is the output of given code: For(int i = 1; i < 3; i++) printf ( “Pakistan” );
(vi)What is meant by nested loops?
8
Q.4.
Write short answers to any FOUR parts.
(i)Find the errors in the following code: Int B[4] = {2,6,4,15,9}
(ii)What is meant by data structure?
(iii)Define function.
(iv)What is meant by built-in function?
(v)What are parameters of function?
(vi)What is meant by signature of function?
8
Group I — Subjective Part IIMarks: 16
Attempt any TWO questions (8 marks each).
Q.5.
Define variable declaration and variable initialization. Write down its general syntax. Also, give two examples of variable declaration.
8
Q.6.
Explain the following with examples: (a) printf() (b) scanf()
8
Q.7.
Write a program in C-language that takes percentage of student as input and displays “Pass” if the percentage is above 33 otherwise “Fail”.
8
Examiner notes on this paper
Objective 10 marks (15 min); Subjective 40 marks (1 h 45 min) — four parts from each of Q.2–Q.4, then two of Q.5–Q.7 (8 marks each).
About this transcription
Typed from Tayarri's own typeset transcription of the Gujranwala Board's Class X 2025 paper (the uploaded file); its wording is kept.
Every answer in the online quiz was worked out independently by Tayarri.
The uploaded file is Tayarri's own clean typeset copy of the paper (an unsolved-guide reprint, so no paper code is printed); no answers are marked on it. This file holds Group I only.
Code is kept verbatim, including the deliberate errors Q.4(i) asks candidates to find and the capital 'For' in Q.3(v).
Download this paper
Print-ready A4 PDF, same content as above, no login needed.