Uploaded by Arsh bhimani

2nd sem OOP-1 (1)

advertisement
UNIT-1
1.Differentiate OOPand POP?
2.Short note on object and class?
3.Short note on data abstraction and data encapsulation ?
4.What is polymorphism Give Example?
5.What is OOP?State its application?
6.Explain in brief about reusability with suitableexample>
7.Explain static and dynamic binding?
8.What is OOP paradigm.Also discuss it characteristic?
Unit-2
1.what is class?illustrate the use of class.
2.what is contructor?explain its charactersticse?
3.what is friend function? write a friend function to display marksheet of fy bscit student.
4.explain the concept of friend function with suitable example?explain the concept of passing as an
argument.
5.explain structure of c++ class.
6.write a c++ program to implement the concept of constructor and destructor
7.How data members and member functions of a class can be accessed.Write a program to demonstrate
the concept of accessing members of a class.
8.Declare a class rectangle with data members as a length, breadth, and member function as getdata()
to read data and display() to find and display area
and perimeter of a rectangle.Also write main method to implement the class
Unit 3
1.what is functions overloading ?explain with suitable example.
2.what is operator ? list the operation which can be overloading and cannot be overloaded.
3.explain with example abstruct class.
4.list operation that cannot be overloaded ? write aprogram to add two complex.number by overloading
binary operator.
5. write a c++ program to overload binary (++)operator.
6.what is vpure virtual function ? explain how its implemented.
7.what is this pointer ? write a c++ program to demonstrate use of this pointer.
Unit 4
1.what do you understand from the concept of inheritance ? explain its various types.
2.write a c++ program to illustrate multilevel inheritance.
3.whast is excaption ? explain excaption handling mechanism .
4.what are access specifiers ? explain the use of each.
5. write a c++ program to implement the following hievarchy of inheritance
lion
lion
tiger
tiger
animal
animal
6.explain the mechanism of handling the exception with the suitable example.
7.what happen when raised exception is not caught by cath block ? explain with suitable example.
8.write a c++ program to show use of multiple catch statements .
Unit-5
1-What are class templates?how a class template can be declare.
2-Explain variuos methods to detect end of file in a c++ program?
3-What are differnt methods of openinga file?write a program to open file and enter student detail into
the file using method
4-what are file operations?explain different modes of files
5-write a c++ program to copy the contnent from one file to other file.[select a sutiable file mode]
6-write a c++ program to read the input from the user and write into the file[select a suitable mode]
7-explain the uses and purpose of following functions
(1)seekg() and seekp()
(2) teelg() and tellp()
Download