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.

Board: LahoreClass 10202550 marks2 hours
Download PDFAttempt MCQs onlineExaminer notes

Paper pattern

SectionQuestionsAttemptMarks
Group I MCQs10All10
Group I short3Four from each24
Group I long3Any 2 of 316

Full paper

BOARD OF INTERMEDIATE AND SECONDARY EDUCATION, LAHORE
Secondary School Certificate (S.S.C. Part-II) — Class X Annual Examination 2025
Computer Science — Tenth 2025, Lahore Board (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 · 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.
  1. (i)Who is programmer?
  2. (ii)What is meant by syntax of programming language?
  3. (iii)Differentiate between constant and variable.
  4. (iv)What are format specifiers?
  5. (v)Differentiate between unary and binary operators.
  6. (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.
  1. (i)Define compound statement.
  2. (ii)Trace the errors of the following code: if (x > 10) printf ("Good")
  3. (iii)What is nested if statement?
  4. (iv)Write for loop syntax.
  5. (v)Write the output of the following code: for (int x=2 ; x < = 20 ; x = x + 2) printf ("%d \n", x);
  6. (vi)What is nested loop structure?
8
Q.4.
Write short answers to any FOUR parts.
  1. (i)What is built in function?
  2. (ii)Define function parameters.
  3. (iii)Identify the error in the following code: void message ( ); { printf ("Hope you are fine:)"); return 23; }
  4. (iv)Define user define function.
  5. (v)Define an array.
  6. (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

About this transcription

Download this paper

Print-ready A4 PDF, same content as above, no login needed.

Download PDF