All Computer Science 12 papers

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.

13 MCQs36 written questionsPractise this paper

Question index

  1. 1

    The technique that reuses an existing class to build a new class is known as:

    MCQ1 marksannual

  2. 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

  3. 1

    Write down a C++ program that finds the area and perimeter of a square.

    Part C5 marksannual

  4. 2

    The program in execution is called:

    MCQ1 marksannual

  5. 2

    Write down any three differences between process and thread.

    Part B3 marksannual

  6. 2

    Why we use pointers? What is the difference between pointer variable declaration and initialization? Explain with example.

    Part C5 marksannual

  7. 3

    In a flowchart, the **(parallelogram)** symbol is used to represent:

    MCQ1 marksannual

  8. 3

    How is protection system important in an operating system?

    Part B3 marksannual

  9. 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

  10. 4

    The step by step procedure to solve a problem is called:

    MCQ1 marksannual

  11. 4

    Write down any three responsibilities of a system analyst.

    Part B3 marksannual

  12. 4

    Explain the difference between constant and variable with the help of programming examples.

    Part C5 marksannual

  13. 5

    In file handling **stream** is a:

    MCQ1 marksannual

  14. 5

    Briefly describe any three types of deployment phase.

    Part B3 marksannual

  15. 5

    Explain the use of following in C++ by using examples: - Continue statement - Exit function

    Part C5 marksannual

  16. 6

    A type of member function that is preceded by tilde sign `~` is called:

    MCQ1 marksannual

  17. 6

    Briefly describe the five states of process with diagram.

    Part B3 marksannual

  18. 6

    Write down the importance of using functions in C++. Also explain the following components of function: - Function definition - Function call

    Part C5 marksannual

  19. 7

    What will be the output of the following expression? `int x = 20, y = 3; cout << x % y;`

    MCQ1 marksannual

  20. 7

    Write down any three differences between `if-else-if` and `switch` statements.

    Part B3 marksannual

  21. 7

    Write a C++ program that inputs a positive integer and prints whether it is prime or composite.

    Part C5 marksannual

  22. 8

    Which of the following loops is called **posttest loop**?

    MCQ1 marksannual

  23. 8

    What is understood by functional and non-functional requirements in requirement gathering phase of SDLC?

    Part B3 marksannual

  24. 8

    Explain the concept of function signature. Also write down any four advantages of using functions in C++.

    Part C5 marksannual

  25. 9

    Which of the following is correct syntax of string declaration?

    MCQ1 marksannual

  26. 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

  27. 10

    int arr [5] = {9, 10, 12, 19, 98}; What will be stored at arr[4]?

    MCQ1 marksannual

  28. 10

    What will be the output of the following code segment?

    Part B3 marksannual

  29. 11

    The parameters used in function call are called:

    MCQ1 marksannual

  30. 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

  31. 12

    Which of the following functions is used to find if the control has reached the end of file or not?

    MCQ1 marksannual

  32. 12

    Write down the output of the following code segment:

    Part B3 marksannual

  33. 13

    The ability to use an operator or function in multiple ways is called:

    MCQ1 marksannual

  34. 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

  35. 14

    Write a program that inputs a string and displays the number of characters in it.

    Part B3 marksannual

  36. 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

  37. 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

  38. 17

    What are strings? Briefly explain how to declare a string.

    Part B3 marksannual

  39. 18

    Differentiate between local and static variables.

    Part B3 marksannual

  40. 19

    Compare binary files with text files in light of file handling in C++.

    Part B3 marksannual

  41. 20

    Briefly describe any three modes of file opening in C++.

    Part B3 marksannual

  42. 21

    What is the use of reference operator (&) in pointers?

    Part B3 marksannual

  43. 22

    How is an array different from a simple variable? Explain with an example.

    Part B3 marksannual

  44. 23

    Write down the syntax of using the `eof()` function in file handling.

    Part B3 marksannual

  45. 24

    Briefly explain the concept of data hiding in classes using an example.

    Part B3 marksannual

  46. 25

    Write down any two advantages and one disadvantage of function overloading.

    Part B3 marksannual

  47. 26

    Briefly explain the following terms related to array: a. Size of array b. Name of array c. Index

    Part B3 marksannual

  48. 27

    Explain the role of Project manager in SDLC.

    Part B3 marksannual

  49. 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.