Past Paper 2025 12th Class Karachi Board Computer Science Subjective (Science General Group)

Paper Image

SECTION “B” (Short Answer Question) Marks: 30

NOTE: Attempt any TEN part questions in all. All part questions carry equal marks. Answer should not exceed 6 to 7 lines

2.

i) What is IDE? Write few shortcut keys and their functions in IDE.

ii) What are escape sequences? Write the purpose of any three.

iii) Convert the following mathematical expressions into ‘C’ language format.

(a) (a+b)2ab

(b) (x2 - y2)(x+y)a+b

(c) y = (a + b)n

iv) Identify valid and invalid Identifiers. Give reason in case of Identifiers are invalid.

(a) void

(b) std_marks

(c) 1st number

v) Define increment and decrement operators.

vi) If x = 1, what is the output of the following program segment:
printf(x=%d\n,x);
printf(x=%d\n, x + x);
printf(x=%d\n,x);

vii) What is an Array? How can we declare and initialize an integer array.

viii) What will be the output of following code segment:
a) int num [] = {3,5,7,10,20}
printf("%d",num[3]);

ix) Define break and continue statement with an example.

x) What are the main differences between while and do-while loop?

xi) What is a pointer in ‘C’ ? How is it initialized?

xii) Why ‘C’ language is called case sensitive language?

xiii) What are the main differences between source code and object code?

xiv) Define any three reserved words in ‘C’ language.

xv) What is address operator? Explain with example.

xvi) Define the Basic structure of a C program.

Section C (Detailed – Answer Question) (30)

NOTE: Attempt any THREE question from this section. All questions carry equal marks.

3. Define the control structures used in C’ language? Explain Iteration control structures with syntax and example.

4. What are data types? Explain any five data types used in ‘C’ language.

5. Define an operator in ‘C’ language? Explain basic types of operators used in C-language.

6. Explain different I/O functions in ‘C’ with syntax and examples.

7. What is Function in ‘C’? Write its advantages and explain types of functions.

Past Papers

Class Wise Past Papers

Entry Test Past Papers

Competitive Exams Past Papers

Technical Education Exams Past Papers

Punjab Examination Commission Past Papers

Past Papers feedback:

If you want to share some information with other students regarding past papers, you can send your valued feedback to ilmkidunya.com

Share your comments & questions here

Guest
  • No comments yet. Be the first to comment!