1. Home
  2. /
  3. CBSE
  4. /
  5. Class 12
  6. /
  7. Computer Science
  8. /
  9. CBSE Question Paper 2006...

CBSE Question Paper 2006 Class 12 Computer Science

myCBSEguide App

myCBSEguide App

Download the app to get CBSE Sample Papers 2023-24, NCERT Solutions (Revised), Most Important Questions, Previous Year Question Bank, Mock Tests, and Detailed Notes.

Install Now

CBSE Question Paper 2006 Class 12 Computer Science conducted by Central Board of Secondary Education, New Delhi in the month of March 2006. CBSE previous year question papers with the solution are available in myCBSEguide mobile app and website. The Best CBSE App for students and teachers is myCBSEguide which provides complete study material and practice papers to CBSE schools in India and abroad.

CBSE Question Paper 2006 class 12 Computer Science

Download as PDF

Class 12 Computer Science list of chapters

  1. Review of Python
  2. The concept of Object Oriented Programming
  3. Classes in Python
  4. Inheritance
  5. Linear List Manipulation
  6. Stacks & Queues in list
  7. Data File Handling
  8. Exception Handling & Green Functions
  9. Databases Concepts and SQL
  10. Structured Query Language
  11. Boolean Algebra
  12. Boolean Functions & Reduce Forms
  13. Application of Boolean Logic
  14. Networking Concepts  (Part 1)
  15. Networking Concepts  (Part 2)
  16. Networking Protocols
  17. Mobile Telecommunication Technologies, Network Security and Internet Services

CBSE Question Paper 2006 Class 12 Computer Science

General Instructions:

  • All questions are compulsory.
  • Programming Language: C++

Q.1 a. Name the header file to which the following belong (1)

i. abs( )

ii. isupper( )

b. Illustrate the use of #define in C++ to define a macro. (2)

c. Rewrite the following program after removing the syntactical error(s), if any. Underline each correction. (2)

# include <iostream.h>

void main()

{ struct STUDENT

{ char stu_name [20];

char stu_sex;

int stu_age=17;

} student;




d. Find the output of the following program (3)

# include<iostream.h>


class state

{ char * state_name;

int size;


state( ); { size=0; state_name=new char[size+1]; }

state(char *s)

{ size = strlen(s) ; state_name = new char[size+1];}



void display() {cout<<state name<<endl; }

void Replace (state &a, state &b)

{ size = a.size + b.size;

delete state_name;

state_name = new char[size+1] ;

strcpy(state_name, a.state_name);

strcat(state_name, b.state_name);


};void main( )

{ char *temp = “Delhi”;

state state1(temp), state2(”Mumbai”), state3(”Nagpur”), SI, S2;

S1 .Replace(state1, state2);

S2.Replace(S1, state3);

S1.display( );

S2.display( );


e. Find the output of the following program: (2)


void main( )

{ long NUM = 1234543;

int F = 0, S = 0;


{ int Rem = NUM% 10;

if (Rem % 2 !=0)

F+ =R;


S+ = R;


} while(NUM>0);



f. What are Nested Structures? Give an example. (2)

Q. 2. a. Define Multilevel and Multiple inheritance in context of Object Oriented Programming. Give suitable example to illustrate the same. (2)

b. Answer the questions (i) and (ii) after going through the following class:

class Interview

{ int month;


Interview (int y) {month=y ;} //Constructor 1

Interview (Interview&t); //Constructor 2


i. Create an object, such that it invokes Constructor 1 (1)

ii. Write complete definition for Constructor 2 (1)

c. Define a class named ADMISSION in C++ with the following descriptions: (4)

Private members:

AD_NO integer (Ranges 10 – 2000)

NAME Array of characters (String)

CLASS Character

FEES Float

Public Members:

  • Function Read_Data ( ) to read an object of ADMISSION type
  • Function Display() to display the details of an object
  • Function Draw-Nos ( ) to choose 2 students randomly.

And display the details. Use random function to generate admission nos. to match with


d. Answer the questions (i) to (iii) based on the following code

class stationary


char Type;

char Manufacturer [10];


void Read_sta_details( );

void Disp_sta_details( );


class office: public stationary

int no_of_types;

float cost_of_sta;


void Read_off_details( );

void Disp_off_details( );


class printer: private office

int no_of_users;

char delivery_date[10];


void Read_pri_details( );

void Disp_pri_details( );


void main ( )

{ printer MyPrinter; }

i. Mention the member names which are accessible by My Printer declared in main() function

ii. What is the size of My Printer in bytes?

iii. Mention the names of functions accessible from the member function

Read_pri_details () of class printer. (4)

Q.3. a. Write a function in C++ which accepts an integer array and its size as arguments/parameters
and assign the elements into a two dimensional array of integers in the following format. (3)
If the array is 1, 2, 3, 4, 5, 6 If the array is 1, 2, 3
The resultant 2 D array is given below The resultant 2 D array is given





c. An array MATI3OII1OJ is stored in the memory column-wise with each element occupying 8 bytes of memory. Find out the base address and the address of element MATI2OII5I, if the location of MATI5JL7] is stored at the address 1000. (4)

d. class queue (4)
{ int data [10];
int front, rear;
queue ( ) (front= -1; rear= -1;)
void add( ); //to add an element into the queue
void remove( ); //to remove an element from the queue
void Delete(int ITEM); //To delete all elements which are equal to ITEM
} ;
Complete the class with all function definitions for a circular array Queue. Use another queue to transfer data temporarily

e. Write a function in C++ to perform Push operation on a dynamically allocated stack containing the real number. (3)

f. Write the equivalent infix expression for

a, b, AND, a, c, AND, OR (2)

Q4. a. void main( ) (1)

{ char=’A’;

fstream fileout(”data.dat”,ios::out);


int p = fileout.tellg( );



What is the output if the file content before the execution of the program is the string “ABC” (Note that” “are not part of the file)

b. Write a function to count the number of words present in a text file named “PARA.TXT”.

Assume that each word is separated by a single blank/space character and no blanks/spaces in the beginning and end of the file. (2)

c. Following is the structure of each record in a data file named “COLONY.DAT”. (3)

struct COLONY
{ char Colony Code[10];

char Colony Name[10];

int No of People;


Write a function in C++ to update the file with a new value of No _of_People. The value of Colony_Code and No_of_People are read during the execution of the program.

Q. 5. a. What is an Alternate Key? (2)

b. Study the following tables DOCTOR and SALARY and write SQL commands for the questions

(i) to (iv) and give outputs for SQL queries (v) to (vi): (6)





i. Display NAME of all doctors who are in “MEDICINE” having mo than 10 years experience from the table DOCTOR.

ii. Display the average salary of all doctors working in “ENT” department using the table DOCTOR and SALARY. Salary = BASIC + ALLOWANCE

iii. Display the minimum ALLOWANCE of female doctors.

iv. Display the highest consultation fee among all male doctors.

v. SELECT count( * ) from DOCTOR where SEX “F”


Q. 6. a. State and verify Distributive Law. (2)

b. Write the equivalent expression for the following Logical Circuit: (2)

c. Express P+Q’R in canonical SOP form. (1)

d. Reduce the following Boolean expression using K-Map. (3)
F(P, Q ,R, S) = ∑ (0,3,5,6,7,11,12,15)

Q. 7. a. Differentiate between Internet and Intranet. (1)

b. Expand the following terms
ii. URL
iii. HTTP
iv. WAN (2)

c. Write one advantage of STAR topology as compared to BUS topology. (1)

d. UNIVERSITY OF CORRESPONDENCE in Allahabad is setting up the network between its different wings. There are 4 wings named as Science (S), Journal ism (J), ARTS (A) and Home Science (H).
The distance between various wings are given below

Wing A to Wing S100 m
Wing A to Wing J200 m
Wing A to Wing H400 m
Wing S to Wing J300m
Wing S to Wing H100m
Wing J t o Wing H450m

Number of Computers

Wing A150
Wing S10
Wing J5
Wing H50

i. Suggest a suitable Topology for networking the computer of all wings. (1)
ii. Name the wing where the Server to be installed. Justify your answer. (1)
iii. Suggest the placement of Hub/Switch in the network. (1)
iv. Mention an economic technology to provide Internet access to all wings. (1)

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

Download myCBSEguide App

Last Year Question Paper Class 12 Computer Science 2006

Download class 12 Computer Science question paper with the solution from best CBSE App the myCBSEguide. CBSE class 12 Computer Science question paper 2006 in PDF format with the solution will help you to understand the latest question paper pattern and marking scheme of the CBSE board examination. You will get to know the difficulty level of the question paper.

Previous Year Question Paper for class 12 in PDF

CBSE question papers 2018, 2017, 2016, 2015, 2014, 2013, 2012, 2011, 2010, 2009, 2008, 2007, 2006, 2005 and so on for all the subjects are available under this download link. Practicing real question paper certainly helps students to get confidence and improve performance in weak areas.

To download CBSE Question Paper class 12 Accountancy, Chemistry, Physics, 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.

myCBSEguide App

Test Generator

Create question paper PDF and online tests with your own name & logo in minutes.

Create Now
myCBSEguide App


Question Bank, Mock Tests, Exam Papers, NCERT Solutions, Sample Papers, Notes

Install Now

2 thoughts on “CBSE Question Paper 2006 Class 12 Computer Science”

Leave a Comment