OBJECT ORIENTED PROGRAMMING USING C++

glintplainvilleΛογισμικό & κατασκευή λογ/κού

18 Νοε 2013 (πριν από 3 χρόνια και 6 μήνες)

67 εμφανίσεις


OBJECT ORIENTED PROGRAMMING
USING C+
+



(
BCA
-
3)


CHAPTER
-
1


1.

What are the various characteristics of OOP?

2.

What are the various advantages of OOP?

3.

Define data type. What are the various data types used in C++?

4.

What are the various loop control statements in

C++? Explain
briefly.

5.

Write a program in c++ to print Fibonacci series.

6.

Define operator. Write down the rules of precedence for the
operators.

7.

Explain various types of inheritance?

8.

Difference between C and C++?

9.

WAP to search an element in array using func
tion?

10.

WAP to print factorial using inheritance.



CHAPTER
-
2


1.

What are the requirements of a function?

2.

Explain the advantages of function in a program.

3.

Define function. How arguments are passed in a function.

4.

Define pointers. How the arguments are passed in

a function
using pointers?

5.

Explain nesting of structures with a suitable example.

6.

Explain strings and their application.

7.

Explain with example in
-
line function.

8.

WAP to find the greatest number in an array using function.


CHAPTER
-
3


1.

Explain the usage of pu
blic, private and protected access
modifiers.

2.

Difference between function overloading and function overriding

with example
.

3.

What do you mean by copy constructer explain with example?

4.

Explain with the help of example operator

overloading

for unary
operator
(
for non
-
friend function).

5.

Explain with example the concept of operator overloading.

CHAPTER
-
4


1.

Explain with example multiple inheritances.

2.

Explain friend function of two classes using example.

3.

Differentiate between early binding and late binding with the
help
of example.

4.

Define

virtual function.
Explain

it
with example.

5.

Explain with example virtual base class.



CHAPTER
-
5


1.

Differentiate

between
getline (
) and
getc (
) functions.

2.

N
ame the header file of c++ to which the following built
-
in functions
belong to
:



(a) gets ( )

(b)
puts

( )

3.


What is the difference between the functioning of ios::ate and
ios::app file modes?

4.

Differentiate

between ifstream and ofstream class.

5.

What is
putline

()
function?

6.

Explain
iostream
class.

7.

Write
abo
ut :
-


Seekg (
) and seekp()

8.

Write a short note on opening a file with
open (
) member function
.

9.

Write a program that creates a text file.

10.

What are input and output streams? Explain various streams
available in c++.

11.

Write simple program to read some lin
es of the file named text1.text.

12.

Explain the following functions


(a)
Seekp

() (b)
get
data

()


(c)
Putdata

()


(d
) tellp

()

13.

WAP to search the record of a student from file
.

14.

Explain any two:


(a)
eof (
)

(
b) bad ()


(c) tell ().

15.

WAP to copy the content of one file to another.

16.

What are various file opening mode available in c++?

17.

Explain the stream class hierarchy for I/O in C++ programming.

18.

Explain the following:
-

(a) fstream.h


(b) ofstream.h



(c) ifstream.h


.