Computer Science Class 12 Multan Board 2025 Past Paper (Group II)

The Multan Board's 2025 Class 12 Computer Science Group II paper, typed in full. Six MS-Access MCQs and nine on either C-Language or Visual Basic — each explained online — then the short questions with their code, one MS-Access essay and two programs (smallest of three numbers, the series 1 4 9 16 25).

Board: MultanClass 12202575 marks20 minutes + 2 h 10 min
Download PDFAttempt MCQs onlineExaminer notes

Paper pattern

SectionQuestionsAttemptMarks
MCQs (Access + C)15All15
MCQs (VB option)9Instead of C9
Section I (short)56 parts from each36
Section II2Any 1 of 28
Section III6Any 2 of 316

Full paper

4832
BOARD OF INTERMEDIATE AND SECONDARY EDUCATION, MULTAN
Higher Secondary School Certificate (H.S.S.C. Part-II) — Class XII Annual Examination 2025
Computer Science Paper-II — Intermediate Part-II 2025 (1st-A), Multan, Group II — Class 12 — 2025
Time: 20 minutes + 2 h 10 minTotal Marks: 75

Objective — MS-Access (Q.1–6) and C-Language (Q.7–15)Time: 20 minutes · Marks: 15

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 · 14 MCQs
1.
The process of arranging data in a logical sequence is called:
Answer & explanation

Correct answer: D — Sorting

Sorting puts data in order (alphabetic or numeric).
2.
How many primary keys can a table have?
Answer & explanation

Correct answer: A — 1

Only one primary key (it may be composite).
3.
Customers, cars and parts are example of:
Answer & explanation

Correct answer: B — Entities

Things about which data are stored are entities.
4.
Transitive dependency is removed in which normal form?
Answer & explanation

Correct answer: C — 3NF

Third Normal Form (3NF) removes transitive dependencies, where a non-key column depends on another non-key column. 2NF removes partial dependencies.
5.
Microsoft access saves the file with the extension:
Answer & explanation

Correct answer: D — .mdb

.mdb (Access 2007 onwards also .accdb).
6.
An example of wildcard character is:
About this question
Left un-keyed: * is the usual answer, but # is also an Access wildcard (it stands for any single digit), so two options are correct.
7.
The process of removing errors in the program is called:
Answer & explanation

Correct answer: B — Debugging

Debugging is finding and removing errors (bugs) in a program. Compiling translates code, and linking joins object files.
8.
An assembly language uses the symbols called:
Answer & explanation

Correct answer: C — Mnemonics

Mnemonics such as MOV, ADD.
9.
How many bytes are occupied by a variable of float data type?
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.
10.
An ampersand before the name of a variable in scanf ( ) function denotes:
Answer & explanation

Correct answer: C — Address

The address of the variable.
11.
Conditional operator is an alternative of:
Answer & explanation

Correct answer: B — if-else

condition ? a : b replaces a simple if-else.
12.
The loop which never ends is called:
Answer & explanation

Correct answer: A — infinite loop

A loop whose condition never becomes false keeps running forever and is called an infinite loop, e.g. while (1) { }.
13.
Which loop structure always executes at least once?
Answer & explanation

Correct answer: C — do-while

do-while tests after the body.
14.
Multiple arguments to a function are separated by:
Answer & explanation

Correct answer: B — Commas

Multiple arguments in a function call or definition are separated by commas, e.g. sum(a, b, c). Semicolons end statements.
15.
On successfully closing a file, the fclose( ) returns:
Answer & explanation

Correct answer: D — Zero

fclose() returns 0 when the file is closed successfully, and EOF (−1) if an error occurs.

Objective — Visual Basic option (Q.7–15)Marks: 9

Q.7–15 are answered EITHER from C-Language (above) OR from Visual Basic (this section); Q.1–6 (MS-Access) are common.

Score 0 / 0 attempted · 9 MCQs
7.
Forms and controls are recognized as:
Answer & explanation

Correct answer: B — Objects

In Visual Basic, forms and controls (buttons, text boxes) are objects. Each object has properties, methods and events.
8.
A project file is saved with the following extension:
Answer & explanation

Correct answer: C — .vbp

.vbp; forms are .frm and their binary data .frx.
9.
How many bytes are occupied by a variable of single data type?
Answer & explanation

Correct answer: B — 4

Single is 4 bytes (Double 8).
10.
The expression 10 mod 6 has a value equal to:
Answer & explanation

Correct answer: C — 4

10 = 6 × 1 + 4.
11.
In VB, which keyword indicates the starting point of decision structure?
Answer & explanation

Correct answer: B — if

A decision structure begins with If.
12.
The loop which never ends is called:
Answer & explanation

Correct answer: A — infinite loop

A loop whose condition never becomes false keeps running forever and is called an infinite loop, e.g. while (1) { }.
13.
Which keyword is used to trigger the execution of another procedure?
Answer & explanation

Correct answer: C — Call

In Visual Basic the Call keyword runs another procedure, e.g. Call ShowResult. The procedure runs and control then returns.
14.
Multiple arguments to a function is separated by:
Answer & explanation

Correct answer: B — Commas

Multiple arguments in a function call or definition are separated by commas, e.g. sum(a, b, c). Semicolons end statements.
15.
The prefix for naming a menu item is:
Answer & explanation

Correct answer: D — mnu

mnu (e.g. mnuFile).

Subjective — Section ITime: 2:10 hours · Marks: 36

Write short answers to any SIX parts of each question (2 marks each). Q.3 and Q.4 are answered either from C-Language or from Visual Basic.

Q.2.
MS-Access. Write short answers to any six parts.
  1. (i)Define data processing.
  2. (ii)Describe the transaction file.
  3. (iii)What is data independence?
  4. (iv)Discuss the concept of candidate key.
  5. (v)Enlist different properties of relation.
  6. (vi)Define data integrity.
  7. (vii)What is Second Normal Form(2NF)?
  8. (viii)Discuss two benefits of MS-ACCESS.
  9. (ix)What is the purpose of Form?
12
Q.3.
C-Language. Write short answers to any six parts.
  1. (i)What is the purpose of Linker in C-language?
  2. (ii)What are preprocessor directives?
  3. (iii)Why the logical error is the most difficult error?
  4. (iv)What is the purpose of using '\n' escape sequence character?
  5. (v)Find errors in the following code:
    float x = 5.0, y=4.0;
    x + y = x + y;
    y - x = x + y;
  6. (vi)What is the output of the following code?
    printf ("C:\\TC\\BIN");
  7. (vii)Give an example of scanf function that take multiple inputs in a single statement.
  8. (viii)What is text stream?
  9. (ix)Which access method can access the data directly?
12
Q.3.
OR Visual Basic. Write short answers to any six parts.
  1. (i)What is the purpose of language processor?
  2. (ii)Why source code is converted into object code?
  3. (iii)Why the logical error is the most difficult error?
  4. (iv)What is the purpose of vbCrLf?
  5. (v)What do you know about objects and properties?
  6. (vi)What is the purpose of name property of a control?
  7. (vii)What are intrinsic controls?
  8. (viii)What is the difference between ‘Value’ property of option button and check box?
  9. (ix)How the information is placed inside a List box or a combo box?
12
Q.4.
C-Language. Write short answers to any six parts.
  1. (i)Define if-else structure, also draw its flowchart.
  2. (ii)Compare multiple if( ) with switch-case structure.
  3. (iii)Find errors in the following code:
    int R;
    r = 25;
    if (R >= 0);
        R = R + 1;
    else;
  4. (iv)Clarify the use of goto statement with the help of an example.
  5. (v)How does a programmer decide to use a while loop versus a do loop?
  6. (vi)Predict the output of the following code:
    for (int x=1; x <= 5; ++x)
        printf ("%d\t %d", x, x*x);
  7. (vii)What is built-in function? Give some examples.
  8. (viii)Differentiate between function prototype and function definition.
  9. (ix)What is global variable? How it is different than local variable?
12
Q.4.
OR Visual Basic. Write short answers to any six parts.
  1. (i)Define the use of input box.
  2. (ii)What is mouse over event?
  3. (iii)Differentiate between logical AND and logical OR operators.
  4. (iv)Draw a flowchart of while-wend statement.
  5. (v)Write output of following code:
    M = 1
    do
        print M * 2
        M ++
    Loop while M <= 5
  6. (vi)Discuss the events of keyboard (any two).
  7. (vii)How pre-test loop is different than post-test loop?
  8. (viii)Which statement terminates a loop early?
  9. (ix)Write syntax of FOR EACH – LOOP.
12

Subjective — Section II (MS-Access)Marks: 8

Attempt any ONE question (8 marks).

Q.5.
What is relationship? Explain different types of relationships. (2+6)
8
Q.6.
Explain different data types available in MS-ACCESS.
8

Subjective — Section III (C-Language OR Visual Basic)Marks: 16

Attempt any TWO questions, either from C-Language or from Visual Basic (8 marks each).

Q.7.
C-Language. What is your understanding of comments in C-language? Define identifier and explain its types. (2+2+2+2)
8
Q.8.
C-Language. Write a program that inputs three number from user and displays the smallest number.
8
Q.9.
C-Language. Write a program to display the following series: 1   4   9   16   25 using loop structure.
8
Q.7.
OR Visual Basic. What is your understanding of comments in Visual Basic? Define identifier and explain its types. (2+2+2+2)
8
Q.8.
OR Visual Basic. Write a program that inputs three number from user and displays the smallest number.
8
Q.9.
OR Visual Basic. Write a program to display the following series: 1   4   9   16   25 using loop structure.
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