Computer Science Class 10 Lahore Board 2025 Past Paper (Group I)
The Lahore Board's 2025 Class 10 Computer Science paper, Group I, typed in full. Ten MCQs on return statements, arrays, operators, variables, header files, getch(), function names, for loops and selection statements — each explained online — plus the short and long questions.
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 · 8 MCQs
1.
If there are three return statements in the function body ---- of them will be executed
Answer & explanation
Correct answer: A — One
The first return reached ends the function.
2.
----- make it easier to read and write values in array:
Answer & explanation
Correct answer: A — Loops
Loops step through the indexes.
3.
Which of the following is not a type of operator:
Answer & explanation
Correct answer: C — Check operator
There is no check operator.
4.
---- can be thought of as a container to store constants:
Answer & explanation
Correct answer: C — Variable
A variable is a named memory location that works like a container: it holds a value, which can change while the program runs.
5.
Include statements are written in ------- section:
Answer & explanation
Correct answer: A — Header
The link (header) section.
6.
getch ( ) is not used to take ---- as input from user:
About this question
Left un-keyed: getch() reads a single character, so it is not used for int, float or array input — three options fit.
7.
Identify the function name in the following: int function (float, char)
Answer & explanation
Correct answer: B — function
int is the return type; float and char are parameter types.
8.
------ part of for loop is executed first:
Answer & explanation
Correct answer: B — Initialization
In for (i = 0; i < 5; i++) the initialization part (i = 0) runs first and only once. Then the condition is checked, the body runs, and the increment follows.
9.
An if statement inside another if statement is called ----- structure:
Answer & explanation
Correct answer: C — Nested
Placing one if statement inside another is called a nested if structure. The inner if is checked only when the outer condition is true.
10.
How many types of selection statement are there in C language.
About this question
Left un-keyed: textbooks count these differently — if and if-else (2), or with switch (3), or with else-if (4).
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)Who is programmer?
(ii)What is meant by syntax of programming language?
(iii)Differentiate between constant and variable.
(iv)What are format specifiers?
(v)Differentiate between unary and binary operators.
(vi)Write the output of the following code: printf ("Hello \t world \n"); printf ("PAKISTAN");
8
Q.3.
Write short answers to any FOUR parts.
(i)Define compound statement.
(ii)Trace the errors of the following code: if (x > 10) printf ("Good")
(iii)What is nested if statement?
(iv)Write for loop syntax.
(v)Write the output of the following code: for (int x=2 ; x < = 20 ; x = x + 2) printf ("%d \n", x);
(vi)What is nested loop structure?
8
Q.4.
Write short answers to any FOUR parts.
(i)What is built in function?
(ii)Define function parameters.
(iii)Identify the error in the following code: void message ( ); { printf ("Hope you are fine:)"); return 23; }
(iv)Define user define function.
(v)Define an array.
(vi)Write down the syntax for array declaration.
8
Group I — Subjective Part IIMarks: 16
Attempt any TWO questions (8 marks each).
Q.5.
What is meant by data type of a variable? Explain the types of different data types used in C-language.
8
Q.6.
Which operators are used in arithmetic operations? Discuss in detail with example.
8
Q.7.
Write a program using if-else statement in C-language that inputs two numbers from user and display the greater number on screen.
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).
MCQs 6 and 10 are left un-keyed (see their explanations).
About this transcription
Typed from the Lahore Board's own Class X 2025 question paper. Wording, spelling and numbering are kept as printed; anything changed is listed here.
Every answer in the online quiz was worked out independently by Tayarri.
The uploaded file is a scan of an unsolved-guide reprint of the paper (no paper code is printed); a third-party website watermark crosses the scan. This file holds Group I only.
Download this paper
Print-ready A4 PDF, same content as above, no login needed.