CBSE Sample Papers Class 12 Computer Science 2019

Subscribe complete study pack at ₹12.5/- per month only.Subscribe
Install the best mobile app for CBSE students.Install App

Sample Papers of Computer Science class 12 – free PDF Download

CBSE Sample Papers Class 12 Computer Science 2019 The new marking scheme and blueprint for class 12 have been released by CBSE. We are providing Computer Science sample papers for class 12 CBSE board exams. Sample Papers are available for free download in myCBSEguide app and website in PDF format. CBSE Sample Papers Class 12 Computer Science With Solutions of 10+2 Computer Science are made available by CBSE board exams are over. CBSE marking scheme and blue print is provided along with the Sample Papers. This helps students find answer the most frequently asked question, How to prepare for CBSE board exams. CBSE Sample Papers of class 12 Computer Science for 2018 Download the app today to get the latest and up-to-date study material. CBSE sample paper for class 12 Computer Science with questions and answers (solution).

Sample Papers for Class 12 Computer Science 2019 

Download as PDF

Sample paper 2019 class 12 Computer Science

myCBSEguide provides CBSE class 12 Board Sample Papers of Computer Science for the year 2018, 2019,2020 with solutions in PDF format for free download. The CBSE Sample Papers for all – NCERT books and based on CBSE latest syllabus must be downloaded and practiced by students. Class 12 Computer Science New Sample Papers follow the blueprint of that year only. Student must check the latest syllabus and marking scheme. Sample paper for class 12 Computer Science and other subjects are available for download as PDF in the app too. myCBSEguide provides sample paper with solutions for the year 2018, 2019, 2020.

CBSE Sample Papers Class 12 Computer Science 2019

Time: 3 Hours
Marks : 70

General Instructions:

  • All questions are compulsory.
  • Programming Language with C++
  • In Question 2(b, d) ,3 and 4 has internal choices

    1. Write the type of C++ Operators (Arithmetic, Logical, and Relational Operators) from thefollowing:
      1. !
      2.  !=
      3. &&
      4. %
    2. Observe the following program very carefully and write the name of those
      header file(s), which are essentially needed to compile and execute
      thefollowing program successfully:
      void main()
      char text[20], newText[20];
      for(int i=0;i<strlen(text);i++)
      if(text[i] = =’A’)
      text[i] = text[i]+2;
    3. Rewrite the following C++ code after removing any/all Syntactical Error(s)
      with each correction underlined.
      Note: Assume all required header files are already being included in the
      #define float PI 3.14
      void main( )
      float R=4.5,H=1.5;
      A=2*PI*R*H + 2*PIpow(R,2);
    4. Find and write the output of the following C++ program code:
      Note: Assume all required header files are already being included in
      the program.
      void main( )
      int Ar[ ] = { 6 , 3 , 8 , 10 , 4 , 6 , 7} ;
      int *Ptr = Ar , I ;
      cout<<++*Ptr++ << ‘@’ ;
      I = Ar[3] – Ar[2] ;
      cout<<++*(Ptr+I)<<‘@'<<“\n” ;
      cout<<++I + *Ptr++ << ‘@’ ;
      cout<<*Ptr++ <<‘@'<< ‘\n’ ;
      for( ; I >=0 ; I -=2)
      cout<<Ar[I] << ‘@’ ;
    5. Find and write the output of the following C++ program code:
      typedef char STRING[80];
      void MIXNOW(STRING S)
      int Size=strlen(S);
      for(int I=0;I<Size;I+=2)
      char WS=S[I];
      for (I=1;I<Size;I+=2)
      if (S[I]>=’M’ && S[I]<=’U’)
      void main()
      STRING Word=”CBSEEXAM2019”;
    6. Observe the following program and find out, which output(s) out of (i) to (iv) will be expected from the program? What will be the minimum and the maximum value assigned to the variable Alter?
      Note: Assume all required header files are already being included in the program.
      void main( )
      int Ar[]={10,7}, N;
      int Alter=random(2) + 10 ;
      for (int C=0;C<2;C++)
      N=random(2) ;
      cout<<Ar[N] +Alter<<”#”;
      (i) 21#20# (ii) 20#18# (iii) 20#17# (iv) 21#17#
    1. What is a copy constructor? Illustrate with a suitable C++ example.
    2. Write the output of the following C++ code. Also, write the name of feature of Object Oriented Programming used in the following program jointly illustrated by the Function 1 to Function 4.
      void My_fun ( ) // Function 1
      for (int I=1 ; I<=50 ; I++) cout<< “-” ;
      cout<<end1 ;
      void My_fun (int N) // Function 2
      for (int I=1 ; I<=N ; I++) cout<<“*” ;
      cout<<end1 ;
      void My_fun (int A, int B) // Function 3
      for (int I=1. ;I<=B ;I++) cout <<A*I ;
      cout<<end1 ;
      void My_fun (char T, int N) // Function 4
      for (int I=1 ; I<=N ; I++) cout<<T ;
      void main ( )
      int X=7, Y=4, Z=3;
      char C=’#’ ;
      My_fun (C,Y) ;
      My_fun (X,Z) ;


      Write any four differences between Constructor and Destructor function with respect to object oriented programming.

    3. Define a class Ele_Bill in C++ with the following descriptions: Private members:
      Cname of type character array
      Pnumber of type long
      No_of_units of type integer
      Amount of type float.
      Calc_Amount( ) This member function should calculate the
      amount as No_of_units*Cost .
      Amount can be calculated according to the following conditions:
      No_of_units Cost
      First 50 units Free
      Next 100 units 0.80 @ unit
      Next 200 units 1.00 @ unit
      Remaining units 1.20 @ unit
      Public members:
      * A function Accept( ) which allows user to enter Cname,
      Pnumber, No_of_units and invoke function Calc_Amount().
      * A function Display( ) to display the values of all the data members
      on the screen.
    4. Answer the questions (i) to (iv) based on the following:
      class Faculty
      int FCode;
      char FName[20];
      void Enter();
      void Show();
      class Programme
      int PID;
      char Title[30];
      void Commence();
      void View();
      class Schedule: public Programme, Faculty
      int DD,MM,YYYY;
      void Start();
      void View();
      void main()
      Schedule S; //Statement 1
      ___________ //Statement 2
      }Consider the following class State :
      class State}{
      protected :
      int tp;
      public :}State( ) { tp=0;}
      void inctp( ) { tp++;};
      int gettp(); { return tp; }
      Write a code in C++ to publically derive another class ‘District’
      with the following additional members derived in the public
      visibility mode.
      Data Members :
      Dname string
      Distance float
      Population long int
      Member functions :
      INPUT( ) : To enter Dname, Distance and population
      OUTPUT(): To display the data members on the screen.

      1. Write the names of all the member functions, which are directly accessible by the object S of class Schedule as declared in main() function.
      2. Write the names of all the members, which are directly accessible by the memberfunction Start( ) of class Schedule.
      3. Write Statement 2 to call function View( ) of class Programme from the object S of class Schedule. (iv) (d) What will be the order of execution of the constructors, when the object S of class Schedule is declared inside main()?


    1. Write a user-defined function AddEnd4(int A[][4], int R, int C) in C++ to find and display the sum of all the values, which are ending with 4 (i.e., unit place is 4). For example if the content of array is:

      The output should be


      Write a user-defined function in C++ to find the sum of both left and right diagonal elements from a two-dimensional array.


    2. Write a user-defined function EXTRA_ELE(int A[ ], int B[ ], int N) in C++
      to find and display the extra element in Array A. Array A contains all the
      elements of array B but one more element extra. (Restriction: array
      elements are not in order)
      Example If the elements of Array A is 14, 21, 5, 19, 8, 4, 23, 11
      and the elements of Array B is 23, 8, 19, 4, 14, 11, 5
      Then output will be 21


      Write a user-defined function Reverse(int A[],int n) which accepts an
      integer array and its size as arguments(parameters) and reverse the array.
      Example : if the array is 10,20,30,40,50 then reversed array is

    3. An array S[10] [30] is stored in the memory along the column with each of
      its element occupying 2 bytes. Find out the memory location of S[5][10], if
      element S[2][15] is stored at the location 8200.


      An array A[30][10] is stored in the memory with each element requiring 4
      bytes of storage, if the base address of A is 4500, Find out memory
      locations of A[12][8], if the content is stored along the row.

    4. Write the definition of a member function Ins_Player() for a class
      CQUEUE in C++, to add a Player in a statically allocated circular queue of
      PLAYERs considering the following code
      is already written as a part of the program:
      struct Player
      long Pid;
      char Pname[20];
      const int size=10;
      class CQUEUE
      Player Ar[size];
      int Front, Rear;
      CQUEUE( )
      Front = -1;
      Rear = -1;
      void Ins_Player(); // To add player in a static circular queue
      void Del_Player(); // To remove player from a static circular queue
      void Show_Player(); // To display static circular queue


      Write a function in C++ to delete a node containing Books information
      ,from a dynamically allocated stack of Books implemented with the help of
      the following structure:
      struct Book
      int BNo;
      char BName[20];
      Book *Next;

    5. Convert the following Infix expression to its equivalent Postfix expression,
      showing the stack contents for each step of conversion.


      Evaluate the following Postfix expression :

    1. Write a function RevText() to read a text file “ Input.txt “ and Print only word starting with ‘I’ in reverse order. Example: If value in text file is: INDIA IS MY COUNTRY Output will be: AIDNI SI MY COUNTRYORWrite a function in C++ to count the number of lowercase alphabets present in a text file “BOOK..txt”.
    2. Write a function in C++ to search and display details, whose destination is
      “Cochin” from binary file “Bus.Dat”. Assuming the binary file is
      containing the objects of the following class:
      class BUS
      { int Bno; // Bus Number
      char From[20]; // Bus Starting Point
      char To[20]; // Bus Destination
      char * StartFrom ( ); { return From; }
      char * EndTo( ); { return To; }
      void input() { cin>>Bno>>; gets(From); get(To); }
      void show( ) { cout<<Bno<< “:”<<From << “:” <<To<<endl; }


      Write a function in C++ to add more new objects at the bottom of a binary
      file “STUDENT.dat”, assuming the binary file is containing the objects of
      the following class :
      class STU
      int Rno;
      char Sname[20];
      public: void Enter()
      void show()
      count << Rno<<sname<<endl;

    3. Find the output of the following C++ code considering that the binary file
      PRODUCT.DAT exists on the hard disk with a list of data of 500 products.
      class PRODUCT
      int PCode;char PName[20];
      void Entry();void Disp();
      void main()
      fstream In;“PRODUCT.DAT”,ios::binary|ios::in);
      PRODUCT P;
      cout<<“Total Count: “<<In.tellg()/sizeof(P)<<endl;
      In.seekg(70*sizeof(P));*)&P, sizeof(P));*)&P, sizeof(P));
      cout<<“At Product:”<<In.tellg()/sizeof(P) + 1;


      Which file stream is required for seekg() ?

    1. Observe the following table and answer the parts(i) and(ii) accordingly
      Table: Product

      1. Write the names of most appropriate columns, which can be considered as candidate keys.
      2. What is the degree and cardinality of the above table?
    2. Write SQL queries for (i) to (iv) and find outputs for SQL queries (v) to (viii), which are based on the tables.



      C206O LEVEL180002018-07-25105
      1. Display the Trainer Name, City & Salary in descending order of their
      2. To display the TNAME and CITY of Trainer who joined the Institute in the
        month of December 2001.
      3. To display TNAME, HIREDATE, CNAME, STARTDATE from tables TRAINER and COURSE of all those courses whose FEES is less than or equal to 10000.
      4. To display number of Trainers from each city.
    1. State any one Distributive Law of Boolean Algebra and Verify it using truth table.
    2. Draw the Logic Circuit of the following Boolean Expression:
      ((U + V’).(U + W)). (V + W’)
    3. Derive a Canonical SOP expression for a Boolean function F(X, Y, Z)
      represented by the following truth table:

      XYZF(X, Y, Z)
    4. Reduce the following Boolean Expression to its simplest form using KMap:
      F(X,Y,Z,W)= Σ (0,1,2,3,4,5,8,10,11,14)
    1. Arun opened his e-mail and found that his inbox was full of hundreds of unwanted mails. It took him around two hours to delete these unwanted mails and find the relevant ones in his inbox. What may be the cause of his receiving so many unsolicited mails? What can Arun do to prevent this happening in future?
    2. Assume that 50 employees are working in an organization. Each employee has been allotted a separate workstation to work. In this way, all computers are connected through the server and all these workstations are distributed over two floors. In each floor, all the computers are connected to a switch.
      Identify the type of network?
    3. Your friend wishes to install a wireless network in his office. Explain to him the difference between guided and unguided media.
    4. Write the expanded names for the following abbreviated terms used in Networking and Communications:
      (i) CDMA (ii) HTTP (iii) XML (iv) URL
    5. Multipurpose Public School, Bangluru is Setting up the network
      between its Different Wings of school campus. There are 4
      wings named as SENIOR(S),JUNIOR(J),ADMIN(A)and hostels(H).
      Multipurpose Public School, Bangluru
      CBSE Sample Papers Class 12 Computer Science 2019
      Distance between various wings are given below:

      WingA to WingS100 m
      WingA to WingJ200 m
      WingA to WingH400 m
      WingS to WingJ300 m
      WingS to WingH100 m
      WingJ to WingH450 m

      Number of Computers installed at various wings are as follows:

      WingsNumber of Computers
      Wing A20
      Wing H25
      Wing J50
      Wing S150
      1. Suggest the best-wired medium and draw the cable layout to efficiently connect various wings of Multipurpose PublicSchool, Bangluru.
      2. Name the most suitable wing where the Server should be installed. Justify your answer.
      3. Suggest a device/software and its placement that would provide data security for the entire network of the School.
      4. Suggest a device and the protocol that shall be needed to provide wireless Internet access to all smartphone /laptop users in the campus of Multipurpose Public School, Bangalore.

These are questions only. To view and download complete question paper with solution install myCBSEguide App from google play store or login to our student dashboard.

Download myCBSEguide App

CBSE Sample Papers for Class 12

To download sample paper for class 12 Physics, Chemistry, Biology, History, Political Science, Economics, Geography, Computer Science, Home Science, Accountancy, Business Studies and Home Science; do check myCBSEguide app or website. myCBSEguide provides sample papers with solution, test papers for chapter-wise practice, NCERT solutions, NCERT Exemplar solutions, quick revision notes for ready reference, CBSE guess papers and CBSE important question papers. Sample Paper all are made available through the best app for CBSE students and myCBSEguide website.

Subscribe complete study pack at ₹12.5/- per month only.Subscribe
Install the best mobile app for CBSE students.Install App

Leave a Comment