CBSE Class 12 Computer Science Question paper 2006 (2)

CBSE Class 12 Computer Science Question paper 2006 (2). Students can download the last year question papers using the link below. Free download of examination question papers with solutions.Last 10 year question papers should be practised to get better marks in examinations.

Q.1. a. Name the header file to which the following belong:                                                                       [1]

            i. pow( )

            ii. random( )

    b. Illustrate the use of inline function in C++ with the help of an example.                                           [2]

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

                                                                                                                                                        [2]

           #include <iostream.h>

           void main( ) 

          {     struct movie

                 {    char movie_name [20];

                       char movie type;

                 int ticket cost = 100;

          }MOVIE;

               gets(movie_name);

               gets(movie_type);

          }

    d.  Find the output of the following program:                                                                                     [3]

         #include<iostream.h>

        #include<string.h>

        class student

         {       char *name;

                  int l ;

                  public:

                  student( ) {l=0; name=new char I1+1]; }

                  student (char *s)

                  {      I =strlen(s); name=new char[I+1];

                         strcpy (name,s);

                  }

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

                   void manipulate(student & a, student & b)

                   {  I = a. I + b.I;

                    delete name;

                     name=new char[I+1];

                     strcpy(name, a.name);

                     strcat(name, b.name);

                    } 

          };

Please click the link below to download pdf file of CBSE Class 12 Computer Science Question paper 2006 (2).

Tags: 

 


Click to View or Download pdf file
Click for more Computer Science Study Material

Latest NCERT & CBSE News

Read the latest news and announcements from NCERT and CBSE below. Important updates relating to your studies which will help you to keep yourself updated with latest happenings in school level education. Keep yourself updated with all latest news and also read articles from teachers which will help you to improve your studies, increase motivation level and promote faster learning

Keep your kids engaged during Lockdown

Kids are the Future of our Country! Outlines have changed and so should the formats of existence! It is the best time to teach our kids the pleasure of Self-Discipline, Self-Realization and Self-Control. To keep the future generation safe in such unpredictable...

Training of CBSE School Teachers on Olabs

Training of CBSE School Teachers on Olabs in collaboration with C-DAC Mumbai: OLabs is a platform jointly developed by the Ministry of Electronics and Telecommunications, Government of India, CDAC, and Amrita University to facilitate a virtual experience of CBSE...

NEP Transforming India Quiz

As a part of Shikshak Parv celebration, an online quiz competition on National Education Policy 2020 will be organized by the Ministry of Education, Govt. of India, from 5 th September to 25th September 2020 in order to create awareness about NEP among all stakeholders...

Online Teacher Training Course on Competency based Education in DIKSHA

Competency is a set of skills, abilities, knowledge that helps an individual perform a given task in real life. Every learning should go into the imbibing of these skills to lead a productive and joyful life. The NATIONAL EDUCATION POLICY-2020 calls for shift towards...

TERI Green Olympiad 2020

Green Olympiad is a value driven project conducted by TERI (The Energy and Resources Institute) for school students annually since 1999. This Olympiad assesses the environment quotient of students and also enhances their understanding on issues related to sustainable...

Conduct of the practical work during the lockdown

CBSE has advised schools to follow the Alternative Calendar developed by NCERT to continue education during the lockdown through alternative modes to achieve learning outcomes. Schools have reportedly started using these calendars and other prescribed pedagogical...

×
Studies Today