Final Term Paper
CS201 Fall 2010
MCS
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.
No comments:
Post a Comment
PLEASE COMMENT ABOUT YOUR VISIT AND MY SITE
Note: Only a member of this blog may post a comment.