New ! Computer Science MCQ Practise Tests



11th Standard English Medium Computer Science Subject Classes and objects Creative 5 Mark Questions with Solution Part - I

11th Standard

    Reg.No. :
  •  
  •  
  •  
  •  
  •  
  •  

Computer Science

Time : 01:00:00 Hrs
Total Marks : 25

    5 Marks

    5 x 5 = 25
  1. Explain the different methods of creating an object in C++.

  2. Write a C++ program to find square and cube of a number showing the use of nesting of members functions.

  3. Explain how the objects can be passed in pass by value method.

  4. What is containership write a C++ program to illustrate the containership

  5. Write the output of the following program
    #include < iostream >
    using namespcae std;
    class simple
    {
    private:
    int a,b;
    public:
    simple( )
    {
    a=0;
    b=0;
    cout << "\n Constructor of class-simple";
    }
    void getdata( )
    {
    cout << "\nEnter value for a and b (sample data 6 and 7)...";
    cin >> a >> b;
    }
    void putdata( )
    {
    cout << "\nThe two integers are ... " << a << 't\' << b << endl;
    cout << "\nThe sum of the variables" << a << " + " << b << "=" << a+b;
    }
    };
    int main ( )
    {
    simple s;
    s.getdata( );
    s.putdata( );
    return 0;
    }

*****************************************

Reviews & Comments about 11th Standard English Medium Computer Science Subject Classes and objects Creative 5 Mark Questions with Solution Part - I updated Creative Questions

Write your Comment