these are the few questions in which i face difficulty while solving the previous years semester papers. Please give me appropriate answers. You can also direct me to some useful links on which i can get answers without wasting too much time by reading at a glance since there are hardly 3 days left for my exams. Please help me
1) What are the advantages of passing arguments by reference?? (3 marks)
the only advantage that i know is that when you want to modify values in calling function you have to use call by reference. Also when you dont want to make unnecessary copies of variables you can use const along with pass by reference.
Apart from these if anybody knows some other advantages then kindly tell me
2)Differentiate between overloading and overriding?? (4 marks)
3)Why are static member functions prohibited from accessing ordinary member variables?? (3 marks)
4) "Use abstract base class to declare interface", Justify this statement. Also give example (6 marks)
5)Each C++ object possesses 4 member functions (which can be declared by the programmer explicitly or by the implementation if they are not available). What are those 4 functions? (4 marks)
6) TRUE or False : A class with pure virtual function can be initiated. Also give reason (2 marks)
7)Write overloaded functions to convert an ascii string to int and to convert ascii string to float ( 5 marks)
The problem which i am facing in the above question is that functions can't be overloaded on their return type i.e there must be atleast 1 input parameter different in the function.But in these 2 functions no paramater would be different.Hence ambiguity!! How to solve it???
8)What are template functions? is it possible to call the template function with user define/class data type? if yes then how?? (3 marks)
9)What is OMT? List three kinds of OMT models and what is represents? (3 marks)
10)What is strict type checking?Give benefits of strict type checking (2 marks)
11)Differentiate between binary file and ASCII files (4 marks)
12)Explain term : Delegation (2 marks)
13)Demerits of Object oriented Programming???? (5 marks)
14) What is persistency?? Is it supported in C++?? (3 marks)
15)Write note on dynamic verses static binding (5 marks)
The marks are given at the end of the every question. If marks are more then please explain in detail.. Thanks in advance!!
Please help me. I am in dire need of it. Theory exams are from 9th..