Computer Science Class 10 Lahore Board 2025 Past Paper (Group II)
The Lahore Board's 2025 Class 10 Computer Science paper, Group II, typed in full. Ten MCQs on IDEs, C program structure, operator precedence, format specifiers, true expressions, nested loops, arrays, arguments and return types — 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 · 9 MCQs
1.
IDE stands for:
Answer & explanation
Correct answer: C — Integrated Development Environment
IDE stands for Integrated Development Environment: one program that combines an editor, compiler, linker and debugger for writing and testing code.
2.
How many parts to develop C-program:
Answer & explanation
Correct answer: D — Three
The textbook's C program structure has three parts: link section, main section and the body of main.
3.
The answer of expression 12+6/3 in C-language is:
Answer & explanation
Correct answer: D — 14
Division first: 12 + 2 = 14.
4.
Which of the following format specifier is used 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.
5.
if-else statement is known as ------:
About this question
Left un-keyed: if-else is a selection (control) statement, not a variable; none of the options names it correctly.
6.
Which of the following expression is True:
Answer & explanation
Correct answer: C — 5 + 4
In C any non-zero value is true; 5 + 4 = 9, while the other three evaluate to false (0).
7.
Using loops inside loops is called ------ loops:
Answer & explanation
Correct answer: D — Nested
A loop placed inside the body of another loop is called a nested loop. The inner loop completes all its iterations for each single iteration of the outer loop.
8.
---- make it easier to read and write values in array:
Answer & explanation
Correct answer: A — Loops
Loops make array handling easy: a for loop can step through every index, e.g. for (i = 0; i < 10; i++) scanf("%d", &a[i]);.
9.
Which values passed to a function is called ------:
Answer & explanation
Correct answer: A — 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.
The ----- of a function is the data type of the value returned by function:
Answer & explanation
Correct answer: D — Return type
The return type of a function is the data type of the value it sends back, e.g. int in int sum(int a, int b). void means nothing is returned.
Group II — 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)Differentiate between constants and variables.
(ii)Why do we need a programming environment?
(iii)Describe the purpose of using comments.
(iv)What are relational operators? Describe with an example.
(v)Which function of C-language is used to display output on screen?
(vi)Describe the purpose of Modulus operator.
8
Q.3.
Write short answers to any FOUR parts.
(i)What is meant by sequential control?
(ii)Draw a flow chart of if-else statement.
(iii)Define selection statement.
(iv)Find the error in the given code: for (int i = 0, i < 10 , i + +) printf ("%d \n", & i) ;
(v)Write the syntax of for loop.
(vi)What is meant by initialization of for loop?
8
Q.4.
Write short answers to any FOUR parts.
(i)Which are the basic types of function?
(ii)What is meant by function signature?
(iii)Write two advantages of functions.
(iv)What is meant by function calling?
(v)Define an array in your own words.
(vi)Describe index of an array.
8
Group II — Subjective Part IIMarks: 16
Attempt any TWO questions (8 marks each).
Q.5.
Describe the basic structure of C-program.
8
Q.6.
Define logical operator. Explain types of logical operators.
8
Q.7.
Write a program that take a number as input from user and tells whether the given number is even or not.
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).
MCQ 5 is left un-keyed (see its explanation).
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 II only.
Download this paper
Print-ready A4 PDF, same content as above, no login needed.