Question: What is self assignment mean, why should it be avoided? [3 marks]
Question: Is it possible to overload operators for primitive data type? Justify [3 marks]
Question: What are the limitations of the friendship relations between classes?[3 marks]
Question: C and C++ are free format languages. What does mean by free format? [2 marks]
Question: What are the two types of conversions for user defined data type? [1 marks]
Question: Describe the three important constructs to solve a given problem. [5 marks]
Question: How can we increase the size of dynamic allocated memory in C? [5 marks]
Question: Does the following statement create new variable? If not, why? [1 marks] int &ref = val
Question: [10 marks] Write a program which contains a class Account. The class should contains three data members Name, AcNo. and Balance. The class shouls further contains two constructors i.e. default constructor and parameterized constructor. Overload the stream insertion operator () for this class.
Question: [10 marks] Write a program that reads a number that says how many integer numbers to be stored in an array. Create an array to for the exact size of data and read in that many numbers into the array.
There were 30 MCQs among which following three: 1) C/C++ string constant is enclosed in Small braces Curly braces Double quote Single quote
2) Unary operator takes orgument Zero One Two Three
3) When define array of objects Constructor will call Destructor will call
We are user-generated contents & non-commercial site. All product, videos, pictures & others contents on site don't seem to be beneath our Copyrights & belong to their respected owners & freely available on public domains. All Contents on site are for personal & non-commercial use.We believe in Our Policy & do according to them. If Any content is offensive in your Copyrights then please email at firstname.lastname@example.org with copyright detail & We will happy to remove it immediately.