" /> -->

Polymorphism Model Question Paper

11th Standard

    Reg.No. :
  •  
  •  
  •  
  •  
  •  
  •  

Computer Science

Time : 01:00:00 Hrs
Total Marks : 50
    5 x 1 = 5
  1. Which of the following is the ability of a message to be displayed in more than one form?

    (a)

    Polymorphism

    (b)

    Encapsulation

    (c)

    Abstraction

    (d)

    Inheritance

  2. In C++, Polymorphism is achieved through

    (a)

    abstraction

    (b)

    Data hiding

    (c)

    overloading

    (d)

    Data binding

  3. The number and types of a function's parameter are called

    (a)

    overload resolution

    (b)

    overloaded function

    (c)

    function's signature

    (d)

    function's prototype

  4. The process of selecting the most appropriate overloaded function or operator is called

    (a)

    overloaded function

    (b)

    function's signature

    (c)

    function's prototype

    (d)

    overload resolution

  5. Which of the following not considered in overloading?

    (a)

    Default argument

    (b)

    return type

    (c)

    constructor

    (d)

    furictions

    (e)

    a and b.

  6. 5 x 2 = 10
  7. What is overloaded function?

  8. How polymorphism achieved in C++?

  9. What is functions signature?

  10. When the two function can not be overloaded?

  11. Give the syntax for operator overloading.

  12. 5 x 3 = 15
  13. How does a compiler decide as to which function should be invoked when there are many functions? Give an example.

  14. Discuss the benefit of constructor overloading?

  15. class sale ( int cost, discount ;public: sale(sale &); Write a non inline definition for constructor specified;

  16. What is the output of the following program:
    #inclue
    using namespace std;
    void print(int i)
    {cout << " it is Integer" << l << endl;}
    void print(double f)
    {cout << '' It is fioat" << f << endl;}
    void print(string c)
    {cout << '' it is string'' << c << endl;}
    int main 0 {
    print(10);
    print(10.10);
    print("Ten ");
    return 0;
    }

  17. What is function signature?

  18. 4 x 5 = 20
  19. Write the output of the following program
    include < iostream >
    using namespace std;
    class Seminar
    {
    int Time;
    public:
    Seminar()
    {
    Time=30;cout << "Seminar starts now"< }
    void Lecture()
    {
    cout << "Lectures in the seminar on"< }
    Seminar(int Duration)
    {
    Time=Duration;cout << "Welcome to Seminar "< }
    Seminar(Seminar &D)
    {
    Time=D.Time;cout << "Recap of Previous Seminar Content "< }
    ~Seminar()
    {
    cout << "Vote of thanks"< }
    };
    int main()
    {
    Seminar s1,s2(2),s3(s2);
    s1.Lecture();
    return 0;
    }

  20. Write a C++ program to concatenate two strings using operator overloading.

  21. Give the output of the following program.

  22. Write a program to find the area of a rectangle using constructor overloading in a class.

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

TN 11th Standard Computer Science free Online practice tests

Reviews & Comments about 11th Computer Science - Polymorphism Model Question Paper

Write your Comment