Class 12 · Past paper
Computer Science 12 past paper 2024
49 published questions in this index. The full practice view lets you work through them and track your own attempts.
Question index
- 1
The technique that reuses an existing class to build a new class is known as:
MCQ1 marksannual
- 1
Write down one application for each of the following types of operating systems: a. Time-sharing b. Real time c. Embedded
Part B3 marksannual
- 1
Write down a C++ program that finds the area and perimeter of a square.
Part C5 marksannual
- 2
The program in execution is called:
MCQ1 marksannual
- 2
Write down any three differences between process and thread.
Part B3 marksannual
- 2
Why we use pointers? What is the difference between pointer variable declaration and initialization? Explain with example.
Part C5 marksannual
- 3
In a flowchart, the **(parallelogram)** symbol is used to represent:
MCQ1 marksannual
- 3
How is protection system important in an operating system?
Part B3 marksannual
- 3
Write a C++ program that contains two integer data members which are initialized to 100 when an object is created. It has a member function `avg()` that displays the average of dat…
Part C5 marksannual
- 4
The step by step procedure to solve a problem is called:
MCQ1 marksannual
- 4
Write down any three responsibilities of a system analyst.
Part B3 marksannual
- 4
Explain the difference between constant and variable with the help of programming examples.
Part C5 marksannual
- 5
In file handling **stream** is a:
MCQ1 marksannual
- 5
Briefly describe any three types of deployment phase.
Part B3 marksannual
- 5
Explain the use of following in C++ by using examples: - Continue statement - Exit function
Part C5 marksannual
- 6
A type of member function that is preceded by tilde sign `~` is called:
MCQ1 marksannual
- 6
Briefly describe the five states of process with diagram.
Part B3 marksannual
- 6
Write down the importance of using functions in C++. Also explain the following components of function: - Function definition - Function call
Part C5 marksannual
- 7
What will be the output of the following expression? `int x = 20, y = 3; cout << x % y;`
MCQ1 marksannual
- 7
Write down any three differences between `if-else-if` and `switch` statements.
Part B3 marksannual
- 7
Write a C++ program that inputs a positive integer and prints whether it is prime or composite.
Part C5 marksannual
- 8
Which of the following loops is called **posttest loop**?
MCQ1 marksannual
- 8
What is understood by functional and non-functional requirements in requirement gathering phase of SDLC?
Part B3 marksannual
- 8
Explain the concept of function signature. Also write down any four advantages of using functions in C++.
Part C5 marksannual
- 9
Which of the following is correct syntax of string declaration?
MCQ1 marksannual
- 9
What will be the output of following code segment? `int i = 3;` `int j = i++;` `int k = ++i;` `cout << i << " " << j << " " << k;`
Part B3 marksannual
- 10
int arr [5] = {9, 10, 12, 19, 98}; What will be stored at arr[4]?
MCQ1 marksannual
- 10
What will be the output of the following code segment?
Part B3 marksannual
- 11
The parameters used in function call are called:
MCQ1 marksannual
- 11
What will be the output of the following code? `int m = 5, c = 0;` `while(c `{ m = m + 1; c = c + 1; }` `cout << m;`
Part B3 marksannual
- 12
Which of the following functions is used to find if the control has reached the end of file or not?
MCQ1 marksannual
- 12
Write down the output of the following code segment:
Part B3 marksannual
- 13
The ability to use an operator or function in multiple ways is called:
MCQ1 marksannual
- 13
int arr[3][4] = {{12, 0, 5, 10}, {7, 8, 19, 30}, {33, 1, 2, 22}}; Write down a statement that replaces 19 with 50.
Part B3 marksannual
- 14
Write a program that inputs a string and displays the number of characters in it.
Part B3 marksannual
- 15
Fill in the following table with Yes/No regarding Access Specifiers: 1. Access of members in same class (Public/Private) 2. Access of members in derived class (Public/Private) 3. A…
Part B3 marksannual
- 16
Consider the following array declaration: `int arr[8];` a. How many elements are there in the array? b. Determine the highest index of the array. c. Determine the lowest index of t…
Part B3 marksannual
- 17
What are strings? Briefly explain how to declare a string.
Part B3 marksannual
- 18
Differentiate between local and static variables.
Part B3 marksannual
- 19
Compare binary files with text files in light of file handling in C++.
Part B3 marksannual
- 20
Briefly describe any three modes of file opening in C++.
Part B3 marksannual
- 21
What is the use of reference operator (&) in pointers?
Part B3 marksannual
- 22
How is an array different from a simple variable? Explain with an example.
Part B3 marksannual
- 23
Write down the syntax of using the `eof()` function in file handling.
Part B3 marksannual
- 24
Briefly explain the concept of data hiding in classes using an example.
Part B3 marksannual
- 25
Write down any two advantages and one disadvantage of function overloading.
Part B3 marksannual
- 26
Briefly explain the following terms related to array: a. Size of array b. Name of array c. Index
Part B3 marksannual
- 27
Explain the role of Project manager in SDLC.
Part B3 marksannual
- 28
What is the use of break statement in C++?
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.