Wednesday, November 25, 2015

M.C.A. (Commerce Faculty) (Semester – II),University Of Pune Question Paper,206 : OBJECT ORIENTED PROGRAMMING,2013 Question Paper

University Of Pune Question Paper
M.C.A. (Commerce Faculty) (Semester – II) Examination, 2013
206 : OBJECT ORIENTED PROGRAMMING
Time : 3 Hours Max. Marks : 80
Instructions : 1) All questions are compulsory.
2) Figures to the right indicate full marks.
3) All questions carry equal marks.
4) Assume suitable data if necessary.
1. Attempt any four : (4×4=16)
a) Explain difference between c & C++.
b) “Java is platform independence” Justify.
c) How can we define member functions in C++ ? Explain with examples.
d) What is major difference between interface and classes ?
e) Explain different types of constructor in C++.
2. Attempt any four : (4×4=16)
a) What is implicit and explicit casting ? Explain with the reference of java.
b) What is array ? How it is used in C++ and Java ? Explain the difference.
c) Write a note on : i) super ii) final.
d) Explain polymorphism in C++.
e) List at least 4 features of C++ that are removed from Java.
3. Attempt any four : (4×4=16)
a) What is a difference between inline function and a normal function ?
b) What is destructor explain with example.
c) What do you mean by scope of variable ? Give example using C++ and java.
d) List the operators that are not overloaded in C++. Give reason why of at
least 2 operator ?
e) Write a note on friend function.
4. Attempt any four : (4×4=16)
a) Write a c++ program to accept n numbers and count prime numbers.
b) Write a java program to accept 5 strings. If a digit is entered then an user
defined exception “Error::Enter valid string” is thrown.
c) Create a class string. Use overloading operator == to compare two strings.
d) Create a class time having data members hours and minutes, also define
constructors to assign objects and create friend function sum to add two
objects. Display sum by using display member function.
e) Write a program in Java to accept 5 elements in an array and display them
in descending order.
5. A) Trace output : (Consider three is no syntax error in given code) : (2×4=8)
a) Class Test
{
Public static void main (String args[])
{
int m = 100;
int n = 300;
while (++m<--n)
System.out.println(m);
}
}
What value is printed out, when executed ? Explain why.
b) #include<iostream.h>
using namespace std;
bool test=false;
int main()
{
bool test=true;
cout<<”test=”<<test<<”\n”;
cout<<”test=”<<::test<<”\n”;
return 0;
}
What value is printed out, when executed ? Explain Why.
B) Attempt any two : (4×2=8)
a) Write a java program that displays the number of vowels in a given word.
b) Create an abstract class shape which consist area(). Create two classes
circle and Cylinder. Write a java program to calculate area() of both classes.
c) Write a C++ program to calculate Fibonacci series of a given number.
Share This
Previous Post
Next Post

B.E Civil Engineer Graduated from Government College of Engineering Tirunelveli in the year 2016. She has developed this website for the welfare of students community not only for students under Anna University Chennai, but for all universities located in India. That's why her website is named as www.IndianUniversityQuestionPapers.com . If you don't find any study materials that you are looking for, you may intimate her through contact page of this website to know her so that it will be useful for providing them as early as possible. You can also share your own study materials and it can be published in this website after verification and reviewing. Thank you!

0 comments:

Pen down your valuable important comments below

Search Everything Here