MGKVP BCA 2018 OOPS
Mahatma Gandhi Kashi Vidyapeeth
BCA(3rd semester)
OBJECT ORIENTED PROGRAMMING
2018
Note : The answers to short questions should not exceed 200 words and the answers to long questions should not exceed 500 words.Q1 (a) What are the benefits of object-oriented Programming? 5+5+5
(b) What do you understand by Type Casting? Explain with the help of examples.
(c) What is meant by quantifier? Name the various quantifiers used in C++.
Q2 (a) Define Inline function-Illustrate with the help of an example. 5+5+5
(b) Enumerate various storage classes used in c++.
(c) Define the following functions and their use :
(i) Calloc() (ii) Malloc()
Q3 (a) Explain the features of Data Abstraction. What is the benefits to be gained by it? 5+5+5
(b) What are command line arguments? Give example of the same.
(c) What do you understand by the term "access specifiers in a class"? Elaborate.
Q4 Explain the following with examples. 5+5+5
(a) >> and << operators
(b) Operator overloading
(c) Private and Public functions
Q5 Differentiate between the following : 5+5+5
(a) Local and Global variables
(b) Nested classes and Nesting of Member functions
(c) Call by value and Call by Reference
Q6 (a) Write the output of the following : 5+5+5
x=5
y=x++
cout<<x<<y
(b) What is the difference between default arguments and constant arguments? Explain with the help of examples.
(c) What do you mean by 'friend' function? Illustrate its use with an example.
Q7 Explain the facilities available in c++ to : 3*5 = 15
(i) Open a file
(ii) Close a file
(iii) Read from a file
(iv) Write upon a file
(v) Detecting EOF
Q8 Write a c++ program to store student data in a sequential file called student dat. Use the fields Roll-Number, Name, Course-Code, and marks obtained in five subjects : M1,M2,M3,M4,M5, 15
Q9 Write notes on the following : 5+5+5
(a) Exception Handling
(b) Streams
(c) Function name overloading
@// THE best
😊😊😊😊😊
Comments
Post a Comment