Class 12 · Past paper
Computer Science 12 past paper 2025
48 published questions in this index. The full practice view lets you work through them and track your own attempts.
Question index
- 1
Which phase of SDLC is used to assess the strengths and weaknesses of a proposed system?
MCQ1 marksannual
- 1
Give any three comparisons between **distributed** and **time-sharing** operating systems.
Part B3 marksannual
- 1
Explain five states of a **process**. Also discuss five features of **thread** with respect to process.
Part C5 marksannual
- 2
Which of the following operating systems allows multiple users to use the computer system simultaneously?
MCQ1 marksannual
- 2
Differentiate between `void *ptr1;` and `int *ptr2;`
Part B3 marksannual
- 2
What is meant by **file handling**? Explain binary and text files in C++.
Part C5 marksannual
- 3
Which of the following DOS commands is used to display the contents of directory?
MCQ1 marksannual
- 3
Write a C++ program to determine whether the given number is divisible by 7 or not.
Part B3 marksannual
- 3
Why are **design** and **development** phases of SDLC important? Discuss how are both phases related with each other?
Part C5 marksannual
- 4
Write a C++ program to input distance in kilometres and display in meters. ($1 \text{ km} = 1000 \text{ m}$).
Part B3 marksannual
- 4
Discuss two features of **OOP (Object Oriented Programming)** that enables code reusability in different classes and provides multiple ways of functionality usage.
Part C5 marksannual
- 5
Which of the following escape sequences is used to play a beep sound during execution?
MCQ1 marksannual
- 5
What is meant by **function overloading**? Enlist two advantages.
Part B3 marksannual
- 5
Write a C++ code to input time in seconds and display time in seconds, minutes and hours. e.g., 5466 seconds = 1 hour 31 minutes and 6 seconds.
Part C5 marksannual
- 6
Which of the following operators has highest precedence?
MCQ1 marksannual
- 6
What is meant by **implementation** in SDLC? Briefly explain any two implementation methods.
Part B3 marksannual
- 6
Write a C++ program that reads an alphabet and prints whether it is: a. Vowel or consonant b. Lowercase or uppercase
Part C5 marksannual
- 7
Which of the following is a valid case in switch structure?
MCQ1 marksannual
- 7
Write a C++ program to print the following output using a single statement: "I can wait"
Part B3 marksannual
- 7
Write a C++ program to input five numbers in array, display these numbers in reverse order, also display their average.
Part C5 marksannual
- 8
Which C++ statement will cause the body of a loop to execute ten times?
MCQ1 marksannual
- 8
Write a C++ program to print the following sequence using any loop: 2, 5, 8, 11.
Part B3 marksannual
- 8
Write a program to input two numbers and display the greater number using **inline function**.
Part C5 marksannual
- 9
The smallest subscript using `int a[10]` declaration is:
MCQ1 marksannual
- 9
Identify and correct the errors in the following code segment: `int a[10];` `a[10.2]=30;` `a[-1]=20;`
Part B3 marksannual
- 10
Null character in strings is represented by the following symbol:
MCQ1 marksannual
- 10
Complete the given code to print following series: 1, 1, 2, 3, 5, 8
Part B3 marksannual
- 11
$a++;$ can also be written as:
MCQ1 marksannual
- 11
Predict output of the following code segment: `char S1[10]="NBC", S2[10]="nbc", S3[10];` `cout << strcmp(S1, S2) << strlen(S2);` `strcat(S1, S2);` `cout << S1;`
Part B3 marksannual
- 12
In the given C++ code `Class st { ... };`, the element `st(){}` is:
MCQ1 marksannual
- 12
Rewrite the following code using **do-while** loop:
Part B3 marksannual
- 13
When reading one character at a time from a file, which of the following functions is used?
MCQ1 marksannual
- 13
Why are `3xy`, `void` and `your(age)` invalid variable names?
Part B3 marksannual
- 14
Compare **private** and **public** access specifiers.
Part B3 marksannual
- 15
How does **constructor** differ from **destructor**? (any three differences)
Part B3 marksannual
- 16
Write down three differences between **formal** and **actual** parameters.
Part B3 marksannual
- 17
What is **control statement**? Write down the purpose of any two examples.
Part B3 marksannual
- 18
Briefly explain the use of any three **file opening modes**.
Part B3 marksannual
- 19
Write C++ statements for the following: a. Declare an array to store floating point numbers in $3 \times 3$ matrix b. Store $10.5$ at first location c. Display the element present…
Part B3 marksannual
- 20
Differentiate between **pre-test** and **post-test** loops with examples.
Part B3 marksannual
- 21
Why is `cin.get()` used instead of `cin` when working with strings?
Part B3 marksannual
- 22
Differentiate between `(=)` and `(==)` in C++ with examples.
Part B3 marksannual
- 23
Predict the output: `int a[5], i;` `a[0]=2;` `for(i=1; i<4; i++) {` `a[i]=a[i-1]*2;` `cout << a[i] << endl;` }
Part B3 marksannual
- 24
Write down the purpose of asterisk (*) in the following statements: a. $c = a * b;$ b. `float *p = &a;` c. `*p = 90;`
Part B3 marksannual
- 25
Write down any three responsibilities of a system analyst.
Part B3 marksannual
- 26
Write down any three features of **Windows Operating System**.
Part B3 marksannual
- 27
Predict output of following code segment: `int i;` `for(i=1; i<=5; i++) {` `if (i % 2 == 0)` `continue;` `cout << i; }`
Part B3 marksannual
- 28
Rewrite using **if-else** statement: $s = (a > 0) ? a * a : a * a * a;$
Part B3 marksannual
This is a skimmable index, not a replacement for the study surface. Open the practice view to answer questions and use the linked study material.