Computer Science Class 10 Sahiwal Board 2025 Past Paper (Group I)
The Sahiwal Board's 2025 Class 10 Computer Science paper, Group I, typed in full. Ten MCQs on float size, constants, operator precedence, printf, blocks, nested if, arrays, for loops and functions — each explained online — plus the short and long questions.
BOARD OF INTERMEDIATE AND SECONDARY EDUCATION, SAHIWAL
Secondary School Certificate (S.S.C. Part-II) — Class X Annual Examination 2025
Computer Science Paper II — SSC (10th) 1st Annual 2025, Sahiwal (Group I, Paper Code 7831) — Class 10 — 2025
Time: 2 hoursTotal Marks: 50
Group I — Objective (Paper Code 7831)Time: 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.
A float uses ______ bytes of memory.
Answer & explanation
Correct answer: B — 4
A float variable takes 4 bytes of memory in C and C++, storing about 6–7 significant digits. A double takes 8 bytes.
2.
______ are the values that do not change during the whole execution.
Answer & explanation
Correct answer: B — Constants
Constants are values that cannot change while the program runs, e.g. const float PI = 3.14;. Variables can change.
3.
Which operator has the highest precedence among these?
Answer & explanation
Correct answer: C — !
Unary ! binds tighter than %, − and =.
4.
“print(f)” function is used for:
Answer & explanation
Correct answer: C — Output
printf() is the standard output function: it displays text and values on the screen. Input is taken with scanf().
5.
A set of multiple instructions enclosed in braces is called:
Answer & explanation
Correct answer: D — Block
A group of statements written inside braces { } is called a block (compound statement). It is treated as a single unit, e.g. as the body of an if or a loop.
6.
An if statement inside another if statement is called ______ structure.
Answer & explanation
Correct answer: A — 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.
7.
An array is a ______ structure.
Answer & explanation
Correct answer: C — Data
An array is a data structure that stores many values of the same type in contiguous memory under one name, accessed by index, e.g. int marks[5].
8.
______ part of For loop is executed first.
Answer & explanation
Correct answer: C — 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.
The functions which are available in C standard library are called:
Answer & explanation
Correct answer: B — Built in
Functions that come with C's standard library, such as printf(), scanf() and strlen(), are built-in functions. The programmer writes user-defined functions.
10.
______ means to transfer the control to another function.
Answer & explanation
Correct answer: A — Calling
Calling a function transfers control to that function. Its statements run, and control then returns to the point after the call.
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)What are reserved words?
(ii)Who is programmer?
(iii)Define syntax error.
(iv)What is the purpose of escape sequence?
(v)What is the use of statement terminator?
(vi)Solve the given expression: 24/6(28*4-2)
8
Q.3.
Write short answers to any FOUR parts.
(i)Write down the types of selection statements.
(ii)Write structure of if statement.
(iii)Write down output of the following code. int a=100, b=200, if(a<b) printf("OK"); else print("Hello");
(iv)What is meant by condition?
(v)What is meant by loop iteration?
(vi)Write down output of the following code: int y; for(y=2; y <=20; y=y+2) printf(" I Love Pakistan\n");
8
Q.4.
Write short answers to any FOUR parts.
(i)Define function in your own words.
(ii)Describe user defined functions.
(iii)What is function signature?
(iv)What is meant by function calling?
(v)Write about an array.
(vi)What is index of an array?
8
Group I — Subjective Part IIMarks: 16
Attempt any TWO questions (8 marks each).
Q.5.
Explain the structure of C-Language program in detail.
8
Q.6.
What are operators? Explain unary and binary operators with examples.
8
Q.7.
Write a program in C-Language that takes year as input and displays “Leap Year” if the input year is leap year otherwise displays “Not a Leap Year” using if-else statement.
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 Sahiwal 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 board paper; no answers are marked on it. Every question is printed in English and Urdu; the English wording is used. This file holds Group I only.
Kept as printed: 'print(f)', the comma after 'b=200' and 'print("Hello")' in Q.3(iii).
Q.2(i) was degraded on the source scan.
Download this paper
Print-ready A4 PDF, same content as above, no login needed.