Solapur University Question Paper
M.C.A. (Commerce) (Semester – II) Examination, 2014
OBJECT ORIENTED PROGRAMMING WITH C++ (New)
Day and Date : Monday, 5-5-2014 Max. Marks : 70
Time : 11.00 a.m to 2.00 p.m.
Instructions: 1) All questions are compulsory.
2) Figures to the right indicate full marks.
1. A) Fill in the blanks : 10
a) _____ are class members that are hidden from the outside world.
b) A sequence of bytes is called _______.
c) ________ are the access levels of a class.
d) A constructor that takes no argument is known as __________
e) ________ is the alternate name for a variable.
B) True or False ;
a) C++ supports the concept of Object Paradigm.
b) Function overloading is commonly used to create several functions of
the same name that perform similar tasks but on different data types.
c) Declaring a constructor as a virtual function is a syntax error.
d) Run type identification (RTTI).
e) A scope resolution operator (::), cannot be used to define the member
functions of a class outside the class.
Seat
No.
SLR-GL – 16
2. Answer in 1-2 sentences : (5×2)
i) How do you decide which integer type to use ?
ii) What do you mean by inline function ?
iii) Differentiate between the message and method.
iv) In C++, what is the difference between method overloading and method
overriding ?
v) What is namespace ?
3. Attempt any four from following : (4×5)
i) Write a C++ program to overload the operator ‘+’ which will be used to
concat two strings.
ii) Write a C++ program illustrating static member function.
iii) What is namespace conflict ? How it is handled in C++ ?
iv) What is an exception ? Write a program to accept a string in lowercase and
convert into uppercase. Raise an exception if the input string length exceeds
the allocated size.
v) What is RTTI ? Write a program illustrating reinterpret_cast, Static_cast,
typied () ?
4. Attempt any two from following : (2×10)
i) What is function overloading and function overriding ? Explain with example.
ii) What is parameterized constructor ? How the derived class constructors
are used to pass parameters to base class in multi-level inheritance ? Explain
with a program.
iii) Write a program that prints the total number of characters(bytes) in a file.
The program should ask the user to enter a file name.
iv) Define Polymorphism. Explain in detail its advantages with suitable example.
5. Write a program using operator overloading for the addition of two integer matrices
of size 3*3. (1×10)
__________________
M.C.A. (Commerce) (Semester – II) Examination, 2014
OBJECT ORIENTED PROGRAMMING WITH C++ (New)
Day and Date : Monday, 5-5-2014 Max. Marks : 70
Time : 11.00 a.m to 2.00 p.m.
Instructions: 1) All questions are compulsory.
2) Figures to the right indicate full marks.
1. A) Fill in the blanks : 10
a) _____ are class members that are hidden from the outside world.
b) A sequence of bytes is called _______.
c) ________ are the access levels of a class.
d) A constructor that takes no argument is known as __________
e) ________ is the alternate name for a variable.
B) True or False ;
a) C++ supports the concept of Object Paradigm.
b) Function overloading is commonly used to create several functions of
the same name that perform similar tasks but on different data types.
c) Declaring a constructor as a virtual function is a syntax error.
d) Run type identification (RTTI).
e) A scope resolution operator (::), cannot be used to define the member
functions of a class outside the class.
Seat
No.
SLR-GL – 16
2. Answer in 1-2 sentences : (5×2)
i) How do you decide which integer type to use ?
ii) What do you mean by inline function ?
iii) Differentiate between the message and method.
iv) In C++, what is the difference between method overloading and method
overriding ?
v) What is namespace ?
3. Attempt any four from following : (4×5)
i) Write a C++ program to overload the operator ‘+’ which will be used to
concat two strings.
ii) Write a C++ program illustrating static member function.
iii) What is namespace conflict ? How it is handled in C++ ?
iv) What is an exception ? Write a program to accept a string in lowercase and
convert into uppercase. Raise an exception if the input string length exceeds
the allocated size.
v) What is RTTI ? Write a program illustrating reinterpret_cast, Static_cast,
typied () ?
4. Attempt any two from following : (2×10)
i) What is function overloading and function overriding ? Explain with example.
ii) What is parameterized constructor ? How the derived class constructors
are used to pass parameters to base class in multi-level inheritance ? Explain
with a program.
iii) Write a program that prints the total number of characters(bytes) in a file.
The program should ask the user to enter a file name.
iv) Define Polymorphism. Explain in detail its advantages with suitable example.
5. Write a program using operator overloading for the addition of two integer matrices
of size 3*3. (1×10)
__________________
0 comments:
Pen down your valuable important comments below