Object Oriented Programming With C++ (Sem 4) Unit 4
Object Oriented Programming With C++
1) Write a C++ program which copies the contents from one file to another.
2) Explain use of 'new' and 'delete' operators with suitable example.
3) Explain following
i) ftellg( )
ii) ftellp()
iii) seekg()
iv) seekp()
4) How friend function is different from normal function? Explain.
5) Explain command line arguments with example.
6) Explain the use of 'this' pointer with the help of suitable example.
7) Write a C++ program to create, open and close a file.
8) Define the terms. i) Binary File ii) Text File
9) Write C++ program to implement virtual function.
10) Write purpose and syntax of if stream class.
11) Explain this, new, delete operations with example.
12) Write a program in C++ to copy the contents of one file to another file.
13) What is friend function? Explain the rules to define friend function with suitable example.
14) Explain command line arguments with suitable example.
15) Explain virtual function in detail.
16) Write a program in C++ to copy a contents from one file to another.
17)What is friend functions? Explain with suitable example What are rules for friend function.
18)Write a program in C++ to count number of spares, tabs, new, newline from a file.
19)What are error handling operations? Explain command line arguments.
20) What is virtual function.
21)Explain the following in detail with suitable example.
i) 'New' operators
ii) 'delete operators.
22) Demonstrate the friend function with example.
23)What is file pointer? How to manipulate a file pointers? Explain.
24) Explain the command – line arguments with an example.
25) Explain the 'this' pointer in detail.
26) What are file modes ? Describe various file mode option available.
27) Explain pointer to object. Write a program to illustrate it.
28) Differentiate between pointers and references. Explain how following expressions will be evaluated * p and * p .
29) What is a file pointer ? Explain getc( ) and putc ( ) function.
30) What does the term j means.
31) What are pure virtual functions? How do they differ from normal virtual function?
32) Write a program which copies the contents of one file to a new file by converting lower case letter into uppercase and viceversa.
33) Write usage of new and delete operator using suitable program.
34) Write a normal function which adds objects of the complex number class. Declare this normal function as friend of the complex class.
35) Write the usage of command line arguments.
Post a Comment