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: SahiwalClass 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

7831
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.
  1. (i)What are reserved words?
  2. (ii)Who is programmer?
  3. (iii)Define syntax error.
  4. (iv)What is the purpose of escape sequence?
  5. (v)What is the use of statement terminator?
  6. (vi)Solve the given expression: 24/6(28*4-2)
8
Q.3.
Write short answers to any FOUR parts.
  1. (i)Write down the types of selection statements.
  2. (ii)Write structure of if statement.
  3. (iii)Write down output of the following code. int a=100, b=200, if(a<b) printf("OK"); else print("Hello");
  4. (iv)What is meant by condition?
  5. (v)What is meant by loop iteration?
  6. (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.
  1. (i)Define function in your own words.
  2. (ii)Describe user defined functions.
  3. (iii)What is function signature?
  4. (iv)What is meant by function calling?
  5. (v)Write about an array.
  6. (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

About this transcription

Download this paper

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

Download PDF