SlideShare a Scribd company logo
QUESTION PAPER-2000
             Computer Science with C++

                          [DELHI BOARD]




                         Free Download
CBSE QUESTION PAPERS, C++ PROJECT, C++ PRACTICAL QUESTION & ANSWERS
                   http://www.cppforschool.com
COMPUTER SCIENCE – 2000
                                 (Delhi Board)

Time allowed: 3 hours                                                       Max. Marks: 70
Instructions: (i) All the questions are compulsory.
              (ii)Programming Language: C++


Question 1.
      (a) Illustrate the concept of function overloading with the help of an example.
      (b) Name the header file, to which following built-in functions belong:
               (i) isupper() (ii) setw() (iii) exp() (iv) strcmp()
      (c) Will the following program execute successfully? If no, state the reason (s).
               #include<stdio.h>
               void main ()
               {
                    int s1, s2, num;
                    s1 = s2 = 0;
                    for (x = 0; x<11; x++)
                    {
                         cin << num;
                         if (num>0)
                              s1 += num;
                         else
                              s2 = /num;
                    }
                    cout << s1 << s2;
               }
      (d) Give the output of following program segment (Assuming all required header files are
                    included in the program).
               char *NAME = “a ProFile”;
               for (int x=0;x<strlen(NAME);x++)
                    if (islower(NAME[x]
                         NAME [x] = toupper(NAME)[x];
                    else
                         if (isupper(NAME[x])
                              if (x%2!=0)
                                   NAME [x]=tolower(NAME[x-1]);
                              else
                                   NAME [x]--;
               cout << NAME << endl;
      (e) Write the output of the following program:
          # include <iostream.h>
          int func(int &x, int y = 10)
          {
               if (x%y == 0)
return ++x;
               else
                   return y--;
           }
           void main()
           {
               int p=20, q=23;
               q=func (p,q);
               cout << p << " " << " " << q << endl;
               p=func (q);
               cout<< p << " " << " " << q << endl;
               q=func (p);
               cout << p << " " << " " << q << endl;
           }
           (f) Write a function SEQSUM() in C++ with two arguments, double x and int n. The
           function should return a value of type double and it should find the sum of the
               Following series :
                       1 + x / 2! + x2 / 4! + x3 / 6! + x4 / 8! + x5 /10! + ... + xn / (2n)!

Question 2.
      (a) Why is a destructor function required in classes? Illustrate with the help of an
      example.

       b) Define a class WORKER with the following specification :

       Private members of class WORKER:
       wno         integer
       wname       25 characters
       hrwrk, wgrate float (hours worked and wage rate per hour)
       totwage float (hrwrk * wgrate)
       calcwg () A function to find hrwrk * wgrate with float return type.
       Public members of class WORKER
       in_data () a function to accept values for wno, wname, hrwrk, wgrate and invoke
       calcwg() function to calculate totpay.
       out_data () a function to display all the data members on the screen. You should give
       definitions of functions.

       c) Consider the following and answer the questions given below : 4
       class School
       {
           int A;
           protected :
           int B,C;
           public:
           void INPUT (int);
           void OUTPUT ();
};
       class Dept: protected School
       {
           int X Y;
           protected :
           void IN (int, int);
           public:
           void OUT();
       };
       class Teacher : public Dept
       {
           int P;
           void DISPLAY (void);
       public :
           void ENTERO;
       };

      i.   Name the base class and derived class of the class Dept.
     ii.   Name the data member (s) that can be accessed from function OUT ().
    iii.   Name the private member function(s) of class Teacher.
    iv.    Is the member function OUT() accessible by the objects of Dept?

Question 3.
      (a) Suppose A, B, C are arrays of integers of size M, N, and M + N respectively. The
      numbers in array A appear in ascending order while the numbers in array B appear in
      descending order. Write a user defined function in C++ to produce third array C by
      merging arrays A and B in ascending order. Use A, B and C as arguments in the function.
      b) An array VAL ([1..15][1..10] is stored in the memory with each element requiring 4
      bytes of storage. If the base address of array VAL is 1500, determine the location of VAL
      (12] [9], when the array VAL is stored (i) Row wise (ii) Column wise. 3
      c) Write a user-defined function in C++ to find and display the sum of both the diagonal
      elements of a two-dimensional array MATRIX [6] [6] containing integers.
      d) Evaluate the following postfix expression using a stack. Show the contents of stack
      after execution of each operation.
      20, 8, 4,/, 2,3,+,*,-
      e) Give necessary declarations for a queue containing float type numbers; also write a
      user-defined function in C++ to insert a float type number in the queue. You should use
      linked representation of queue.

Question 4.
      (a) Name two member functions of ofstream class.
      (b) Assuming the class? DRINKS defined below, write functions in C++ to perform the
      following:
         i.  Write the objects of DRINKS to a binary file.
        ii.  Read the objects of DRINKS from binary file and display them on the screen
             when DNAME has value "INDY COLA".
class DRINKS
       {
           int DCODE;
           char DNAME[13]; // Name of the drink
           int DSIZE; // Size in liters
           float DPRICE;
        public:
           void GETDRINKS()
           {
               cin >> DCODE >> DNAME >> DSIZE >>DPRICE;
           }
           void SHOWDRINKS ()
           {
               cout<< DCODE << DNAME << DSIZE << DPRICE << endl;
           }
           char *GETNAME ()
           {
               return DNAME;
           }
       };

Question 5.
      a) What is the need for normalization ? Define first, second and third normal forms.

          Write SOL commands for (b) to (e) and write the outputs for (g) on the basis of table
          CLUB.
                                         TABLE : CLUB
       Coach ID CoachNAME AGE SPORTS                        Dateofapp PAY SEX
       1          KUKERJA       35       KARATE             27/03/1996 1000 M
       2          RAVINA        34       KARATE             20/ 01/1998 1200 F
       3          KARAN         34       SQUASH             19/02/1998 2000 M
       4          TARUN         33       BASKETBALL 01/01/1998 1500 M
       5          ZUBIN         36       SWIMMING           12/01/1998 750 M
       6          KETAKI        36       SWIMMING           24/02/1998 800 F
       7          ANKITA        39       SQUASH             20/02/1998 2200 F
       8          ZAREEN        37       KARATE             22/02/1998 1100 F
       9          KUSH          41       SWIMMING           13/01/1998 900 M
       10         SHAILYA       37       BASKETBALL 19/02/1998 1700 M

       (b) To show all information about the swimming coaches in the club.
       (c) To list name of all coaches with their date of appointment (DATEOFAPP) in
       descending order.
       (d) To display a report, showing coachname, pay, age and bonus (15% of pay) for all the
       coaches.
       (e) To insert a new row in the CLUB table with the following data :
11, "PRAKASH", 37, "SQUASH", {25/02/98}, 2500, "M"
    (f) Give the output of following SQL statements :
    (i) SELECT COUNT (DISTINCT sports) FROM club;
    (ii) SELECT MIN (age) FROM club WHERE sex = "F";
    (iii)SELECT AVG(pay) FROM club WHERE sports ="KARATE";
    (iv) SELECT SUM(pay) FROM club WHERE dateofapp > {31/01/98};
    (g) Assume that there is one more table COACHES in the database as shown below:
                                      TABLE:COACHES
                       SPORTS PERSON SEX COACH-NO
                       AJAY                  M      1
                       SEEMA                 F      2
                       VINOD                 M      1
                       TANEJA                F      3

    What will be the output of the following query :
    SELECT sportsperson, coachname FROM club, coaches WHERE coach id = coach no;

 Question 6.
   (a) State Absorption Laws. Verify one of the Absorption Laws using truth tables.
   (b) Prove X'.Y + Y’.Z = X'.Y.Z + X'.Y’.Z’ + XA" .Z + X'.Y'.Z algebraically.
   (c) Obtain simplified form for a Boolean expression
       F (x,y,z,w) = ∑(1,3, 4, 5, 7, 9,11, 12, 13, 15) using Karnaugh Map.
   (d) Draw the logic circuit for a half adder.
   (e) Represent the Boolean expression X’Y + Y’Z with the help of NAND gates only.
   (f) Write the Sum of Products form of the function G(U,V,W), truth table representation
   of G is as follows:

                              U      V      W        G
                              0      0      0        0
                              0      0      1        0
                              0      1      0        1
                              0      1      1        1
                              1      0      0        1
                              1      0      1        0
                              1      1      0        0
                              1      1      1        1

 Question 7.
   (a) What are Routers ?
   (b) What is the purpose of using a MODEM ?
   (c) Write the two advantages and two disadvantages of Bus Topology in network.
   (d) What is the difference between LAN and WAN ?

                                           --

Free download All CBSE C++ Question Papers from http://www.cppforschool.com

More Related Content

What's hot

Flowchart and algorithm
Flowchart and algorithmFlowchart and algorithm
Flowchart and algorithm
DHANIK VIKRANT
 
Algebraic Structure
Algebraic StructureAlgebraic Structure
Algebraic Structure
NANDINI SHARMA
 
Functions in C++
Functions in C++Functions in C++
Functions in C++
Nikhil Pandit
 
C programming
C programmingC programming
The pseudocode
The pseudocodeThe pseudocode
The pseudocode
Asha Sari
 
Introduction to Object Oriented Programming
Introduction to Object Oriented ProgrammingIntroduction to Object Oriented Programming
Introduction to Object Oriented Programming
Moutaz Haddara
 
Review chapter 1 2-3
Review chapter 1 2-3Review chapter 1 2-3
Review chapter 1 2-3
ahmed22dg
 
Intermediate code generation
Intermediate code generationIntermediate code generation
Intermediate code generation
Dr.DHANALAKSHMI SENTHILKUMAR
 
Artificial Intelligence (November – 2018) [Choice Based | Question Paper]
Artificial Intelligence (November – 2018) [Choice Based | Question Paper]Artificial Intelligence (November – 2018) [Choice Based | Question Paper]
Artificial Intelligence (November – 2018) [Choice Based | Question Paper]
Mumbai B.Sc.IT Study
 
Mergesort
MergesortMergesort
Mergesort
luzenith_g
 

What's hot (10)

Flowchart and algorithm
Flowchart and algorithmFlowchart and algorithm
Flowchart and algorithm
 
Algebraic Structure
Algebraic StructureAlgebraic Structure
Algebraic Structure
 
Functions in C++
Functions in C++Functions in C++
Functions in C++
 
C programming
C programmingC programming
C programming
 
The pseudocode
The pseudocodeThe pseudocode
The pseudocode
 
Introduction to Object Oriented Programming
Introduction to Object Oriented ProgrammingIntroduction to Object Oriented Programming
Introduction to Object Oriented Programming
 
Review chapter 1 2-3
Review chapter 1 2-3Review chapter 1 2-3
Review chapter 1 2-3
 
Intermediate code generation
Intermediate code generationIntermediate code generation
Intermediate code generation
 
Artificial Intelligence (November – 2018) [Choice Based | Question Paper]
Artificial Intelligence (November – 2018) [Choice Based | Question Paper]Artificial Intelligence (November – 2018) [Choice Based | Question Paper]
Artificial Intelligence (November – 2018) [Choice Based | Question Paper]
 
Mergesort
MergesortMergesort
Mergesort
 

Viewers also liked

Chemistry 2000 Paper2
Chemistry 2000 Paper2Chemistry 2000 Paper2
Chemistry 2000 Paper2
kit3217
 
Ce Physics 2000 Paper1(E)
Ce Physics 2000 Paper1(E)Ce Physics 2000 Paper1(E)
Ce Physics 2000 Paper1(E)
kit3217
 
Cbse Class 12 Physics Question Paper 2013
Cbse Class 12 Physics Question Paper 2013Cbse Class 12 Physics Question Paper 2013
Cbse Class 12 Physics Question Paper 2013
Sunaina Rawat
 
CBSE 2012 SCIENCE ANSWER PAPER CLASS X
CBSE 2012 SCIENCE ANSWER PAPER CLASS XCBSE 2012 SCIENCE ANSWER PAPER CLASS X
CBSE 2012 SCIENCE ANSWER PAPER CLASS X
Gautham Rajesh
 
Chemistry 1999 Paper1
Chemistry 1999 Paper1Chemistry 1999 Paper1
Chemistry 1999 Paper1kit3217
 
Ncert Class 12 Chemistry Chapter 16
Ncert Class 12 Chemistry Chapter 16Ncert Class 12 Chemistry Chapter 16
Ncert Class 12 Chemistry Chapter 16
aglasem
 
Chemistry 1998 Paper1
Chemistry 1998 Paper1Chemistry 1998 Paper1
Chemistry 1998 Paper1kit3217
 
Chemistry 2005 Paper 1
Chemistry 2005 Paper 1Chemistry 2005 Paper 1
Chemistry 2005 Paper 1kit3217
 
Chemistry 1997 Paper1
Chemistry 1997 Paper1Chemistry 1997 Paper1
Chemistry 1997 Paper1kit3217
 
IIT JEE Physics 2000
IIT JEE Physics   2000IIT JEE Physics   2000
IIT JEE Physics 2000
Vasista Vinuthan
 
Chemistry 2003 Paper 1
Chemistry 2003  Paper 1Chemistry 2003  Paper 1
Chemistry 2003 Paper 1kit3217
 
Sample question paper math Class XI CBSE
Sample question paper math Class XI CBSESample question paper math Class XI CBSE
Sample question paper math Class XI CBSE
Pratima Nayak ,Kendriya Vidyalaya Sangathan
 

Viewers also liked (12)

Chemistry 2000 Paper2
Chemistry 2000 Paper2Chemistry 2000 Paper2
Chemistry 2000 Paper2
 
Ce Physics 2000 Paper1(E)
Ce Physics 2000 Paper1(E)Ce Physics 2000 Paper1(E)
Ce Physics 2000 Paper1(E)
 
Cbse Class 12 Physics Question Paper 2013
Cbse Class 12 Physics Question Paper 2013Cbse Class 12 Physics Question Paper 2013
Cbse Class 12 Physics Question Paper 2013
 
CBSE 2012 SCIENCE ANSWER PAPER CLASS X
CBSE 2012 SCIENCE ANSWER PAPER CLASS XCBSE 2012 SCIENCE ANSWER PAPER CLASS X
CBSE 2012 SCIENCE ANSWER PAPER CLASS X
 
Chemistry 1999 Paper1
Chemistry 1999 Paper1Chemistry 1999 Paper1
Chemistry 1999 Paper1
 
Ncert Class 12 Chemistry Chapter 16
Ncert Class 12 Chemistry Chapter 16Ncert Class 12 Chemistry Chapter 16
Ncert Class 12 Chemistry Chapter 16
 
Chemistry 1998 Paper1
Chemistry 1998 Paper1Chemistry 1998 Paper1
Chemistry 1998 Paper1
 
Chemistry 2005 Paper 1
Chemistry 2005 Paper 1Chemistry 2005 Paper 1
Chemistry 2005 Paper 1
 
Chemistry 1997 Paper1
Chemistry 1997 Paper1Chemistry 1997 Paper1
Chemistry 1997 Paper1
 
IIT JEE Physics 2000
IIT JEE Physics   2000IIT JEE Physics   2000
IIT JEE Physics 2000
 
Chemistry 2003 Paper 1
Chemistry 2003  Paper 1Chemistry 2003  Paper 1
Chemistry 2003 Paper 1
 
Sample question paper math Class XI CBSE
Sample question paper math Class XI CBSESample question paper math Class XI CBSE
Sample question paper math Class XI CBSE
 

Similar to Cbse question paper class_xii_paper_2000

Sp 1418794917
Sp 1418794917Sp 1418794917
Sp 1418794917
lakshmi r
 
Computer Science Sample Paper 2
Computer Science Sample Paper 2Computer Science Sample Paper 2
Computer Science Sample Paper 2
kvs
 
Cbse question-paper-computer-science-2009
Cbse question-paper-computer-science-2009Cbse question-paper-computer-science-2009
Cbse question-paper-computer-science-2009
Deepak Singh
 
CBSE Question Paper Computer Science with C++ 2011
CBSE Question Paper Computer Science with C++ 2011CBSE Question Paper Computer Science with C++ 2011
CBSE Question Paper Computer Science with C++ 2011
Deepak Singh
 
CS Sample Paper 1
CS Sample Paper 1CS Sample Paper 1
CS Sample Paper 1
kvs
 
Revision1 C programming
Revision1 C programmingRevision1 C programming
Revision1 C programming
Kho コー。イエー。イエン
 
Computer Science Sample Paper 2015
Computer Science Sample Paper 2015Computer Science Sample Paper 2015
Computer Science Sample Paper 2015
Poonam Chopra
 
Cbse marking scheme 2006 2011
Cbse marking scheme 2006  2011Cbse marking scheme 2006  2011
Cbse marking scheme 2006 2011
Praveen M Jigajinni
 
Computer science-2010-cbse-question-paper
Computer science-2010-cbse-question-paperComputer science-2010-cbse-question-paper
Computer science-2010-cbse-question-paper
Deepak Singh
 
computer science sample papers 2
computer science sample papers 2computer science sample papers 2
computer science sample papers 2
Swarup Kumar Boro
 
1z0 851 exam-java standard edition 6 programmer certified professional
1z0 851 exam-java standard edition 6 programmer certified professional1z0 851 exam-java standard edition 6 programmer certified professional
1z0 851 exam-java standard edition 6 programmer certified professional
Isabella789
 
Cs practical file
Cs practical fileCs practical file
Cs practical file
Shailendra Garg
 
Pads lab manual final
Pads lab manual finalPads lab manual final
Pads lab manual final
AhalyaR
 
(Www.entrance exam.net)-tcs placement sample paper 2
(Www.entrance exam.net)-tcs placement sample paper 2(Www.entrance exam.net)-tcs placement sample paper 2
(Www.entrance exam.net)-tcs placement sample paper 2
Pamidimukkala Sivani
 
JAVAPGMS.docx
JAVAPGMS.docxJAVAPGMS.docx
JAVAPGMS.docx
Mgm Mallikarjun
 
Chapter 1
Chapter 1Chapter 1
Chapter 1
EasyStudy3
 
Computer science ms
Computer science msComputer science ms
Computer science ms
B Bhuvanesh
 
CBSE Grade12, Computer Science, Sample Question Paper
CBSE Grade12, Computer Science, Sample Question PaperCBSE Grade12, Computer Science, Sample Question Paper
CBSE Grade12, Computer Science, Sample Question Paper
Malathi Senthil
 
Why learn new programming languages
Why learn new programming languagesWhy learn new programming languages
Why learn new programming languages
Jonas Follesø
 
famous placement papers
famous placement papersfamous placement papers
famous placement papers
Ramanujam Ramu
 

Similar to Cbse question paper class_xii_paper_2000 (20)

Sp 1418794917
Sp 1418794917Sp 1418794917
Sp 1418794917
 
Computer Science Sample Paper 2
Computer Science Sample Paper 2Computer Science Sample Paper 2
Computer Science Sample Paper 2
 
Cbse question-paper-computer-science-2009
Cbse question-paper-computer-science-2009Cbse question-paper-computer-science-2009
Cbse question-paper-computer-science-2009
 
CBSE Question Paper Computer Science with C++ 2011
CBSE Question Paper Computer Science with C++ 2011CBSE Question Paper Computer Science with C++ 2011
CBSE Question Paper Computer Science with C++ 2011
 
CS Sample Paper 1
CS Sample Paper 1CS Sample Paper 1
CS Sample Paper 1
 
Revision1 C programming
Revision1 C programmingRevision1 C programming
Revision1 C programming
 
Computer Science Sample Paper 2015
Computer Science Sample Paper 2015Computer Science Sample Paper 2015
Computer Science Sample Paper 2015
 
Cbse marking scheme 2006 2011
Cbse marking scheme 2006  2011Cbse marking scheme 2006  2011
Cbse marking scheme 2006 2011
 
Computer science-2010-cbse-question-paper
Computer science-2010-cbse-question-paperComputer science-2010-cbse-question-paper
Computer science-2010-cbse-question-paper
 
computer science sample papers 2
computer science sample papers 2computer science sample papers 2
computer science sample papers 2
 
1z0 851 exam-java standard edition 6 programmer certified professional
1z0 851 exam-java standard edition 6 programmer certified professional1z0 851 exam-java standard edition 6 programmer certified professional
1z0 851 exam-java standard edition 6 programmer certified professional
 
Cs practical file
Cs practical fileCs practical file
Cs practical file
 
Pads lab manual final
Pads lab manual finalPads lab manual final
Pads lab manual final
 
(Www.entrance exam.net)-tcs placement sample paper 2
(Www.entrance exam.net)-tcs placement sample paper 2(Www.entrance exam.net)-tcs placement sample paper 2
(Www.entrance exam.net)-tcs placement sample paper 2
 
JAVAPGMS.docx
JAVAPGMS.docxJAVAPGMS.docx
JAVAPGMS.docx
 
Chapter 1
Chapter 1Chapter 1
Chapter 1
 
Computer science ms
Computer science msComputer science ms
Computer science ms
 
CBSE Grade12, Computer Science, Sample Question Paper
CBSE Grade12, Computer Science, Sample Question PaperCBSE Grade12, Computer Science, Sample Question Paper
CBSE Grade12, Computer Science, Sample Question Paper
 
Why learn new programming languages
Why learn new programming languagesWhy learn new programming languages
Why learn new programming languages
 
famous placement papers
famous placement papersfamous placement papers
famous placement papers
 

More from Deepak Singh

Computer networks - CBSE New Syllabus (083) Class - XII
Computer networks - CBSE  New Syllabus (083) Class - XIIComputer networks - CBSE  New Syllabus (083) Class - XII
Computer networks - CBSE New Syllabus (083) Class - XII
Deepak Singh
 
Chpater29 operation-on-file
Chpater29 operation-on-fileChpater29 operation-on-file
Chpater29 operation-on-file
Deepak Singh
 
Chapter28 data-file-handling
Chapter28 data-file-handlingChapter28 data-file-handling
Chapter28 data-file-handling
Deepak Singh
 
Chapter27 polymorphism-virtual-function-abstract-class
Chapter27 polymorphism-virtual-function-abstract-classChapter27 polymorphism-virtual-function-abstract-class
Chapter27 polymorphism-virtual-function-abstract-class
Deepak Singh
 
Chapter26 inheritance-ii
Chapter26 inheritance-iiChapter26 inheritance-ii
Chapter26 inheritance-ii
Deepak Singh
 
Chapter25 inheritance-i
Chapter25 inheritance-iChapter25 inheritance-i
Chapter25 inheritance-i
Deepak Singh
 
Chapter24 operator-overloading
Chapter24 operator-overloadingChapter24 operator-overloading
Chapter24 operator-overloading
Deepak Singh
 
Chapter23 friend-function-friend-class
Chapter23 friend-function-friend-classChapter23 friend-function-friend-class
Chapter23 friend-function-friend-class
Deepak Singh
 
Chapter22 static-class-member-example
Chapter22 static-class-member-exampleChapter22 static-class-member-example
Chapter22 static-class-member-example
Deepak Singh
 
Chapter21 separate-header-and-implementation-files
Chapter21 separate-header-and-implementation-filesChapter21 separate-header-and-implementation-files
Chapter21 separate-header-and-implementation-files
Deepak Singh
 
Chapter20 class-example-program
Chapter20 class-example-programChapter20 class-example-program
Chapter20 class-example-program
Deepak Singh
 
Chapter19 constructor-and-destructor
Chapter19 constructor-and-destructorChapter19 constructor-and-destructor
Chapter19 constructor-and-destructor
Deepak Singh
 
Chapter18 class-and-objects
Chapter18 class-and-objectsChapter18 class-and-objects
Chapter18 class-and-objects
Deepak Singh
 
Chapter17 oop
Chapter17 oopChapter17 oop
Chapter17 oop
Deepak Singh
 
Chapter16 pointer
Chapter16 pointerChapter16 pointer
Chapter16 pointer
Deepak Singh
 
Chapter15 structure
Chapter15 structureChapter15 structure
Chapter15 structure
Deepak Singh
 
Chapter13 two-dimensional-array
Chapter13 two-dimensional-arrayChapter13 two-dimensional-array
Chapter13 two-dimensional-array
Deepak Singh
 
Chapter12 array-single-dimension
Chapter12 array-single-dimensionChapter12 array-single-dimension
Chapter12 array-single-dimension
Deepak Singh
 
Chapter 11 Function
Chapter 11 FunctionChapter 11 Function
Chapter 11 Function
Deepak Singh
 
Chapter 10 Library Function
Chapter 10 Library FunctionChapter 10 Library Function
Chapter 10 Library Function
Deepak Singh
 

More from Deepak Singh (20)

Computer networks - CBSE New Syllabus (083) Class - XII
Computer networks - CBSE  New Syllabus (083) Class - XIIComputer networks - CBSE  New Syllabus (083) Class - XII
Computer networks - CBSE New Syllabus (083) Class - XII
 
Chpater29 operation-on-file
Chpater29 operation-on-fileChpater29 operation-on-file
Chpater29 operation-on-file
 
Chapter28 data-file-handling
Chapter28 data-file-handlingChapter28 data-file-handling
Chapter28 data-file-handling
 
Chapter27 polymorphism-virtual-function-abstract-class
Chapter27 polymorphism-virtual-function-abstract-classChapter27 polymorphism-virtual-function-abstract-class
Chapter27 polymorphism-virtual-function-abstract-class
 
Chapter26 inheritance-ii
Chapter26 inheritance-iiChapter26 inheritance-ii
Chapter26 inheritance-ii
 
Chapter25 inheritance-i
Chapter25 inheritance-iChapter25 inheritance-i
Chapter25 inheritance-i
 
Chapter24 operator-overloading
Chapter24 operator-overloadingChapter24 operator-overloading
Chapter24 operator-overloading
 
Chapter23 friend-function-friend-class
Chapter23 friend-function-friend-classChapter23 friend-function-friend-class
Chapter23 friend-function-friend-class
 
Chapter22 static-class-member-example
Chapter22 static-class-member-exampleChapter22 static-class-member-example
Chapter22 static-class-member-example
 
Chapter21 separate-header-and-implementation-files
Chapter21 separate-header-and-implementation-filesChapter21 separate-header-and-implementation-files
Chapter21 separate-header-and-implementation-files
 
Chapter20 class-example-program
Chapter20 class-example-programChapter20 class-example-program
Chapter20 class-example-program
 
Chapter19 constructor-and-destructor
Chapter19 constructor-and-destructorChapter19 constructor-and-destructor
Chapter19 constructor-and-destructor
 
Chapter18 class-and-objects
Chapter18 class-and-objectsChapter18 class-and-objects
Chapter18 class-and-objects
 
Chapter17 oop
Chapter17 oopChapter17 oop
Chapter17 oop
 
Chapter16 pointer
Chapter16 pointerChapter16 pointer
Chapter16 pointer
 
Chapter15 structure
Chapter15 structureChapter15 structure
Chapter15 structure
 
Chapter13 two-dimensional-array
Chapter13 two-dimensional-arrayChapter13 two-dimensional-array
Chapter13 two-dimensional-array
 
Chapter12 array-single-dimension
Chapter12 array-single-dimensionChapter12 array-single-dimension
Chapter12 array-single-dimension
 
Chapter 11 Function
Chapter 11 FunctionChapter 11 Function
Chapter 11 Function
 
Chapter 10 Library Function
Chapter 10 Library FunctionChapter 10 Library Function
Chapter 10 Library Function
 

Recently uploaded

Lundin Gold Corporate Presentation - June 2024
Lundin Gold Corporate Presentation - June 2024Lundin Gold Corporate Presentation - June 2024
Lundin Gold Corporate Presentation - June 2024
Adnet Communications
 
Part 2 Deep Dive: Navigating the 2024 Slowdown
Part 2 Deep Dive: Navigating the 2024 SlowdownPart 2 Deep Dive: Navigating the 2024 Slowdown
Part 2 Deep Dive: Navigating the 2024 Slowdown
jeffkluth1
 
Industrial Tech SW: Category Renewal and Creation
Industrial Tech SW:  Category Renewal and CreationIndustrial Tech SW:  Category Renewal and Creation
Industrial Tech SW: Category Renewal and Creation
Christian Dahlen
 
Digital Marketing with a Focus on Sustainability
Digital Marketing with a Focus on SustainabilityDigital Marketing with a Focus on Sustainability
Digital Marketing with a Focus on Sustainability
sssourabhsharma
 
How HR Search Helps in Company Success.pdf
How HR Search Helps in Company Success.pdfHow HR Search Helps in Company Success.pdf
How HR Search Helps in Company Success.pdf
HumanResourceDimensi1
 
Satta Matka Dpboss Matka Guessing Kalyan Chart Indian Matka Kalyan panel Chart
Satta Matka Dpboss Matka Guessing Kalyan Chart Indian Matka Kalyan panel ChartSatta Matka Dpboss Matka Guessing Kalyan Chart Indian Matka Kalyan panel Chart
Satta Matka Dpboss Matka Guessing Kalyan Chart Indian Matka Kalyan panel Chart
➒➌➎➏➑➐➋➑➐➐Dpboss Matka Guessing Satta Matka Kalyan Chart Indian Matka
 
2024-6-01-IMPACTSilver-Corp-Presentation.pdf
2024-6-01-IMPACTSilver-Corp-Presentation.pdf2024-6-01-IMPACTSilver-Corp-Presentation.pdf
2024-6-01-IMPACTSilver-Corp-Presentation.pdf
hartfordclub1
 
Unveiling the Dynamic Personalities, Key Dates, and Horoscope Insights: Gemin...
Unveiling the Dynamic Personalities, Key Dates, and Horoscope Insights: Gemin...Unveiling the Dynamic Personalities, Key Dates, and Horoscope Insights: Gemin...
Unveiling the Dynamic Personalities, Key Dates, and Horoscope Insights: Gemin...
my Pandit
 
How to Buy an Engagement Ring.pcffbhfbfghfhptx
How to Buy an Engagement Ring.pcffbhfbfghfhptxHow to Buy an Engagement Ring.pcffbhfbfghfhptx
How to Buy an Engagement Ring.pcffbhfbfghfhptx
Charleston Alexander
 
NIMA2024 | De toegevoegde waarde van DEI en ESG in campagnes | Nathalie Lam |...
NIMA2024 | De toegevoegde waarde van DEI en ESG in campagnes | Nathalie Lam |...NIMA2024 | De toegevoegde waarde van DEI en ESG in campagnes | Nathalie Lam |...
NIMA2024 | De toegevoegde waarde van DEI en ESG in campagnes | Nathalie Lam |...
BBPMedia1
 
The APCO Geopolitical Radar - Q3 2024 The Global Operating Environment for Bu...
The APCO Geopolitical Radar - Q3 2024 The Global Operating Environment for Bu...The APCO Geopolitical Radar - Q3 2024 The Global Operating Environment for Bu...
The APCO Geopolitical Radar - Q3 2024 The Global Operating Environment for Bu...
APCO
 
Innovative Uses of Revit in Urban Planning and Design
Innovative Uses of Revit in Urban Planning and DesignInnovative Uses of Revit in Urban Planning and Design
Innovative Uses of Revit in Urban Planning and Design
Chandresh Chudasama
 
Pitch Deck Teardown: Kinnect's $250k Angel deck
Pitch Deck Teardown: Kinnect's $250k Angel deckPitch Deck Teardown: Kinnect's $250k Angel deck
Pitch Deck Teardown: Kinnect's $250k Angel deck
HajeJanKamps
 
The latest Heat Pump Manual from Newentide
The latest Heat Pump Manual from NewentideThe latest Heat Pump Manual from Newentide
The latest Heat Pump Manual from Newentide
JoeYangGreatMachiner
 
list of states and organizations .pdf
list of  states  and  organizations .pdflist of  states  and  organizations .pdf
list of states and organizations .pdf
Rbc Rbcua
 
4 Benefits of Partnering with an OnlyFans Agency for Content Creators.pdf
4 Benefits of Partnering with an OnlyFans Agency for Content Creators.pdf4 Benefits of Partnering with an OnlyFans Agency for Content Creators.pdf
4 Benefits of Partnering with an OnlyFans Agency for Content Creators.pdf
onlyfansmanagedau
 
Dpboss Matka Guessing Satta Matta Matka Kalyan panel Chart Indian Matka Dpbos...
Dpboss Matka Guessing Satta Matta Matka Kalyan panel Chart Indian Matka Dpbos...Dpboss Matka Guessing Satta Matta Matka Kalyan panel Chart Indian Matka Dpbos...
Dpboss Matka Guessing Satta Matta Matka Kalyan panel Chart Indian Matka Dpbos...
➒➌➎➏➑➐➋➑➐➐Dpboss Matka Guessing Satta Matka Kalyan Chart Indian Matka
 
2022 Vintage Roman Numerals Men Rings
2022 Vintage Roman  Numerals  Men  Rings2022 Vintage Roman  Numerals  Men  Rings
2022 Vintage Roman Numerals Men Rings
aragme
 
Negotiation & Presentation Skills regarding steps in business communication, ...
Negotiation & Presentation Skills regarding steps in business communication, ...Negotiation & Presentation Skills regarding steps in business communication, ...
Negotiation & Presentation Skills regarding steps in business communication, ...
UdayaShankarS1
 
Dpboss Matka Guessing Satta Matta Matka Kalyan Chart Indian Matka
Dpboss Matka Guessing Satta Matta Matka Kalyan Chart Indian MatkaDpboss Matka Guessing Satta Matta Matka Kalyan Chart Indian Matka
Dpboss Matka Guessing Satta Matta Matka Kalyan Chart Indian Matka
➒➌➎➏➑➐➋➑➐➐Dpboss Matka Guessing Satta Matka Kalyan Chart Indian Matka
 

Recently uploaded (20)

Lundin Gold Corporate Presentation - June 2024
Lundin Gold Corporate Presentation - June 2024Lundin Gold Corporate Presentation - June 2024
Lundin Gold Corporate Presentation - June 2024
 
Part 2 Deep Dive: Navigating the 2024 Slowdown
Part 2 Deep Dive: Navigating the 2024 SlowdownPart 2 Deep Dive: Navigating the 2024 Slowdown
Part 2 Deep Dive: Navigating the 2024 Slowdown
 
Industrial Tech SW: Category Renewal and Creation
Industrial Tech SW:  Category Renewal and CreationIndustrial Tech SW:  Category Renewal and Creation
Industrial Tech SW: Category Renewal and Creation
 
Digital Marketing with a Focus on Sustainability
Digital Marketing with a Focus on SustainabilityDigital Marketing with a Focus on Sustainability
Digital Marketing with a Focus on Sustainability
 
How HR Search Helps in Company Success.pdf
How HR Search Helps in Company Success.pdfHow HR Search Helps in Company Success.pdf
How HR Search Helps in Company Success.pdf
 
Satta Matka Dpboss Matka Guessing Kalyan Chart Indian Matka Kalyan panel Chart
Satta Matka Dpboss Matka Guessing Kalyan Chart Indian Matka Kalyan panel ChartSatta Matka Dpboss Matka Guessing Kalyan Chart Indian Matka Kalyan panel Chart
Satta Matka Dpboss Matka Guessing Kalyan Chart Indian Matka Kalyan panel Chart
 
2024-6-01-IMPACTSilver-Corp-Presentation.pdf
2024-6-01-IMPACTSilver-Corp-Presentation.pdf2024-6-01-IMPACTSilver-Corp-Presentation.pdf
2024-6-01-IMPACTSilver-Corp-Presentation.pdf
 
Unveiling the Dynamic Personalities, Key Dates, and Horoscope Insights: Gemin...
Unveiling the Dynamic Personalities, Key Dates, and Horoscope Insights: Gemin...Unveiling the Dynamic Personalities, Key Dates, and Horoscope Insights: Gemin...
Unveiling the Dynamic Personalities, Key Dates, and Horoscope Insights: Gemin...
 
How to Buy an Engagement Ring.pcffbhfbfghfhptx
How to Buy an Engagement Ring.pcffbhfbfghfhptxHow to Buy an Engagement Ring.pcffbhfbfghfhptx
How to Buy an Engagement Ring.pcffbhfbfghfhptx
 
NIMA2024 | De toegevoegde waarde van DEI en ESG in campagnes | Nathalie Lam |...
NIMA2024 | De toegevoegde waarde van DEI en ESG in campagnes | Nathalie Lam |...NIMA2024 | De toegevoegde waarde van DEI en ESG in campagnes | Nathalie Lam |...
NIMA2024 | De toegevoegde waarde van DEI en ESG in campagnes | Nathalie Lam |...
 
The APCO Geopolitical Radar - Q3 2024 The Global Operating Environment for Bu...
The APCO Geopolitical Radar - Q3 2024 The Global Operating Environment for Bu...The APCO Geopolitical Radar - Q3 2024 The Global Operating Environment for Bu...
The APCO Geopolitical Radar - Q3 2024 The Global Operating Environment for Bu...
 
Innovative Uses of Revit in Urban Planning and Design
Innovative Uses of Revit in Urban Planning and DesignInnovative Uses of Revit in Urban Planning and Design
Innovative Uses of Revit in Urban Planning and Design
 
Pitch Deck Teardown: Kinnect's $250k Angel deck
Pitch Deck Teardown: Kinnect's $250k Angel deckPitch Deck Teardown: Kinnect's $250k Angel deck
Pitch Deck Teardown: Kinnect's $250k Angel deck
 
The latest Heat Pump Manual from Newentide
The latest Heat Pump Manual from NewentideThe latest Heat Pump Manual from Newentide
The latest Heat Pump Manual from Newentide
 
list of states and organizations .pdf
list of  states  and  organizations .pdflist of  states  and  organizations .pdf
list of states and organizations .pdf
 
4 Benefits of Partnering with an OnlyFans Agency for Content Creators.pdf
4 Benefits of Partnering with an OnlyFans Agency for Content Creators.pdf4 Benefits of Partnering with an OnlyFans Agency for Content Creators.pdf
4 Benefits of Partnering with an OnlyFans Agency for Content Creators.pdf
 
Dpboss Matka Guessing Satta Matta Matka Kalyan panel Chart Indian Matka Dpbos...
Dpboss Matka Guessing Satta Matta Matka Kalyan panel Chart Indian Matka Dpbos...Dpboss Matka Guessing Satta Matta Matka Kalyan panel Chart Indian Matka Dpbos...
Dpboss Matka Guessing Satta Matta Matka Kalyan panel Chart Indian Matka Dpbos...
 
2022 Vintage Roman Numerals Men Rings
2022 Vintage Roman  Numerals  Men  Rings2022 Vintage Roman  Numerals  Men  Rings
2022 Vintage Roman Numerals Men Rings
 
Negotiation & Presentation Skills regarding steps in business communication, ...
Negotiation & Presentation Skills regarding steps in business communication, ...Negotiation & Presentation Skills regarding steps in business communication, ...
Negotiation & Presentation Skills regarding steps in business communication, ...
 
Dpboss Matka Guessing Satta Matta Matka Kalyan Chart Indian Matka
Dpboss Matka Guessing Satta Matta Matka Kalyan Chart Indian MatkaDpboss Matka Guessing Satta Matta Matka Kalyan Chart Indian Matka
Dpboss Matka Guessing Satta Matta Matka Kalyan Chart Indian Matka
 

Cbse question paper class_xii_paper_2000

  • 1. QUESTION PAPER-2000 Computer Science with C++ [DELHI BOARD] Free Download CBSE QUESTION PAPERS, C++ PROJECT, C++ PRACTICAL QUESTION & ANSWERS http://www.cppforschool.com
  • 2. COMPUTER SCIENCE – 2000 (Delhi Board) Time allowed: 3 hours Max. Marks: 70 Instructions: (i) All the questions are compulsory. (ii)Programming Language: C++ Question 1. (a) Illustrate the concept of function overloading with the help of an example. (b) Name the header file, to which following built-in functions belong: (i) isupper() (ii) setw() (iii) exp() (iv) strcmp() (c) Will the following program execute successfully? If no, state the reason (s). #include<stdio.h> void main () { int s1, s2, num; s1 = s2 = 0; for (x = 0; x<11; x++) { cin << num; if (num>0) s1 += num; else s2 = /num; } cout << s1 << s2; } (d) Give the output of following program segment (Assuming all required header files are included in the program). char *NAME = “a ProFile”; for (int x=0;x<strlen(NAME);x++) if (islower(NAME[x] NAME [x] = toupper(NAME)[x]; else if (isupper(NAME[x]) if (x%2!=0) NAME [x]=tolower(NAME[x-1]); else NAME [x]--; cout << NAME << endl; (e) Write the output of the following program: # include <iostream.h> int func(int &x, int y = 10) { if (x%y == 0)
  • 3. return ++x; else return y--; } void main() { int p=20, q=23; q=func (p,q); cout << p << " " << " " << q << endl; p=func (q); cout<< p << " " << " " << q << endl; q=func (p); cout << p << " " << " " << q << endl; } (f) Write a function SEQSUM() in C++ with two arguments, double x and int n. The function should return a value of type double and it should find the sum of the Following series : 1 + x / 2! + x2 / 4! + x3 / 6! + x4 / 8! + x5 /10! + ... + xn / (2n)! Question 2. (a) Why is a destructor function required in classes? Illustrate with the help of an example. b) Define a class WORKER with the following specification : Private members of class WORKER: wno integer wname 25 characters hrwrk, wgrate float (hours worked and wage rate per hour) totwage float (hrwrk * wgrate) calcwg () A function to find hrwrk * wgrate with float return type. Public members of class WORKER in_data () a function to accept values for wno, wname, hrwrk, wgrate and invoke calcwg() function to calculate totpay. out_data () a function to display all the data members on the screen. You should give definitions of functions. c) Consider the following and answer the questions given below : 4 class School { int A; protected : int B,C; public: void INPUT (int); void OUTPUT ();
  • 4. }; class Dept: protected School { int X Y; protected : void IN (int, int); public: void OUT(); }; class Teacher : public Dept { int P; void DISPLAY (void); public : void ENTERO; }; i. Name the base class and derived class of the class Dept. ii. Name the data member (s) that can be accessed from function OUT (). iii. Name the private member function(s) of class Teacher. iv. Is the member function OUT() accessible by the objects of Dept? Question 3. (a) Suppose A, B, C are arrays of integers of size M, N, and M + N respectively. The numbers in array A appear in ascending order while the numbers in array B appear in descending order. Write a user defined function in C++ to produce third array C by merging arrays A and B in ascending order. Use A, B and C as arguments in the function. b) An array VAL ([1..15][1..10] is stored in the memory with each element requiring 4 bytes of storage. If the base address of array VAL is 1500, determine the location of VAL (12] [9], when the array VAL is stored (i) Row wise (ii) Column wise. 3 c) Write a user-defined function in C++ to find and display the sum of both the diagonal elements of a two-dimensional array MATRIX [6] [6] containing integers. d) Evaluate the following postfix expression using a stack. Show the contents of stack after execution of each operation. 20, 8, 4,/, 2,3,+,*,- e) Give necessary declarations for a queue containing float type numbers; also write a user-defined function in C++ to insert a float type number in the queue. You should use linked representation of queue. Question 4. (a) Name two member functions of ofstream class. (b) Assuming the class? DRINKS defined below, write functions in C++ to perform the following: i. Write the objects of DRINKS to a binary file. ii. Read the objects of DRINKS from binary file and display them on the screen when DNAME has value "INDY COLA".
  • 5. class DRINKS { int DCODE; char DNAME[13]; // Name of the drink int DSIZE; // Size in liters float DPRICE; public: void GETDRINKS() { cin >> DCODE >> DNAME >> DSIZE >>DPRICE; } void SHOWDRINKS () { cout<< DCODE << DNAME << DSIZE << DPRICE << endl; } char *GETNAME () { return DNAME; } }; Question 5. a) What is the need for normalization ? Define first, second and third normal forms. Write SOL commands for (b) to (e) and write the outputs for (g) on the basis of table CLUB. TABLE : CLUB Coach ID CoachNAME AGE SPORTS Dateofapp PAY SEX 1 KUKERJA 35 KARATE 27/03/1996 1000 M 2 RAVINA 34 KARATE 20/ 01/1998 1200 F 3 KARAN 34 SQUASH 19/02/1998 2000 M 4 TARUN 33 BASKETBALL 01/01/1998 1500 M 5 ZUBIN 36 SWIMMING 12/01/1998 750 M 6 KETAKI 36 SWIMMING 24/02/1998 800 F 7 ANKITA 39 SQUASH 20/02/1998 2200 F 8 ZAREEN 37 KARATE 22/02/1998 1100 F 9 KUSH 41 SWIMMING 13/01/1998 900 M 10 SHAILYA 37 BASKETBALL 19/02/1998 1700 M (b) To show all information about the swimming coaches in the club. (c) To list name of all coaches with their date of appointment (DATEOFAPP) in descending order. (d) To display a report, showing coachname, pay, age and bonus (15% of pay) for all the coaches. (e) To insert a new row in the CLUB table with the following data :
  • 6. 11, "PRAKASH", 37, "SQUASH", {25/02/98}, 2500, "M" (f) Give the output of following SQL statements : (i) SELECT COUNT (DISTINCT sports) FROM club; (ii) SELECT MIN (age) FROM club WHERE sex = "F"; (iii)SELECT AVG(pay) FROM club WHERE sports ="KARATE"; (iv) SELECT SUM(pay) FROM club WHERE dateofapp > {31/01/98}; (g) Assume that there is one more table COACHES in the database as shown below: TABLE:COACHES SPORTS PERSON SEX COACH-NO AJAY M 1 SEEMA F 2 VINOD M 1 TANEJA F 3 What will be the output of the following query : SELECT sportsperson, coachname FROM club, coaches WHERE coach id = coach no; Question 6. (a) State Absorption Laws. Verify one of the Absorption Laws using truth tables. (b) Prove X'.Y + Y’.Z = X'.Y.Z + X'.Y’.Z’ + XA" .Z + X'.Y'.Z algebraically. (c) Obtain simplified form for a Boolean expression F (x,y,z,w) = ∑(1,3, 4, 5, 7, 9,11, 12, 13, 15) using Karnaugh Map. (d) Draw the logic circuit for a half adder. (e) Represent the Boolean expression X’Y + Y’Z with the help of NAND gates only. (f) Write the Sum of Products form of the function G(U,V,W), truth table representation of G is as follows: U V W G 0 0 0 0 0 0 1 0 0 1 0 1 0 1 1 1 1 0 0 1 1 0 1 0 1 1 0 0 1 1 1 1 Question 7. (a) What are Routers ? (b) What is the purpose of using a MODEM ? (c) Write the two advantages and two disadvantages of Bus Topology in network. (d) What is the difference between LAN and WAN ? -- Free download All CBSE C++ Question Papers from http://www.cppforschool.com