B.C.A. (Third Semester) 2019
Time: Three Hours Maximum Marks: 75
Note: Attempt any five questions. All question carry equal marks. The answer to short questions should not exceed 200 words and the answer to long answer type questions should not exceed 500 words.
- (A) Differentiate between :
- C and C++
- Procedural programming and object oriented programming
(B) Write short notes on containers.
2. (A) Discuss how dynamic allocation is achieved in C++ programming.
(B) Write the rules for overloading of operators.
3. (A) What is generic programming? How is it implemented in C++.
(B) Write a C++ program to sort the given lit of numbers in ascending order.
4.(A) What are the different forms of inheritance supported by C++? Explain with examples.
(B) Can bare class access the member of a derived class? Give reasons.
5. (A) Discuss briefly various exception handling options.
(B) Write a C++ program to implement friend class.
6.(A) Write short notes on predefined streams.
(B) Create a new file to store and retrieve the student marks details using file I/O classes.
7. Write short notes on any three of the following:
(i) Overriding
(ii) Polymorphism
- Garbage collection
- Interface
8. Write a program in C++ to generate the Fibonacci series upto N term, where N is provided at runtime.
B.C.A. (Third Semester) 2018
Time: Three Hours Maximum Marks: 75
Note: Attempt any five questions. All question carry equal marks. The answer to short questions should not exceed 200 words and the answer to long answer type questions should not exceed 500 words.
- (A) what are the benefits of object- oriented programming?
(B) What do you understand by quantifiers? Name the various quantifiers used in C++.
(C) What is meant by quantifiers? Name the various quantifiers used in C++
2.(A) Define inline function-illustrate with the help of an example.
(B) Enumerate various storage classes used in C++.
(C) Define the following function and states their use:
(i) Calloc( ) (ii) Malloc( )
3.(A) Explain the features of data abstraction. What is the benefits to be gained by it?
(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.
4. Explain the following with following:
(a) >> and << operators
(b) operator overloading
(c) Private and public functions
5. (A) Differentiate between the following:
(a) Local and global variable
(b) Nested classes and Nesting of member functions
(c) Call by value and call by reference
6. (A) Write the output of the following:
x=5 y= 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.
7. write the facilities available in C++ to:
(i) Open a file
(ii) Close a file
(iii) Read from a file
(iv) Write upon a file
(v) Detecting EOF
8. Write a C++ program to store students data in a sequential file called student dat. Use the fields Roll-Numbers, name, Course-code, and mark Obtained in five subject: M1, M2, M3, M4, M5,
9. Write nots on the following:
(a) Exception handling
(b) Streams
(c) Function name overloading.
B.C.A. (Third Semester) 2017
Time: Three Hours Maximum Marks: 75
Note: Attempt any five questions. All question carry equal marks. The answer to short questions should not exceed 200 words and the answer to long answer type questions should not exceed 500 words.
- (A) What is object oriented programming? How it is different from procedure oriented programming?
(B) What is operator overloading? Describe various rules of overloading an operator.
2. (A) How does a maini( ) function in C++ differ from main( ) in C language? Describe with an example.
(B) What is a constructor? How do we invoke a constructor function? Describe with an example.
3. (A) What are command line areguments in a file? Write a program to explain how to read text and to display its contents on the screen.
(B) What is inheritance? Write a program to implement multiple inheritance using C++.
4. (A) What is a template? Write a template for adding two numbers of difference data types.
(B) Explain the difference between exception and error. Write a program containing a possible exception. Use a try block to throw it and a catch block to handle it property.
5. (A) explain looks and control statement with proper example in C++.
(B) What do you understand by dynamic and static binding explain with a proper program.
6. (A) Creates a class called rational that represents number p/q as two integer p and q. write a program in C++ to overload >> and << operation so that the object of rational can be read and displayed using cin and cout respectively.
(B) Define garbage in the context of C++ programming language. What are the methods for garbage collection in C++? Describe.
7. Write short notes on any two of the following:
(i) Generic classes
(ii) Aggregation
(iii) Abstract class
(iv) Run in time Polymorphism
(v) name space
B.C.A. (Third Semester) 2016
Time: Three Hours Maximum Marks: 75
Note: Attempt any five questions. All question carry equal marks. The answer to short questions should not exceed 200 words and the answer to long answer type questions should not exceed 500 words.
- (A) List out the features of OOPS? Explain Polymorphism and encapsulation.
(B) Explain the use of the following operation in C++ along with an example of each:
(i) && (ii) ??
(iii) ++ (iv) %
- (A) What are constructor and destroyed in C++? How are they defined and when are they used? Illustrate with an example for each.
(B) Write short notes on the following:
(i) Dynamic Memory Collection
(ii) C++ Garbage Collection
- (A) How can we achieve reusability of class in OOPS. Example all its types.
(B) Define operators overloading and function overloading. Write a C++ program to overload ‘+’ operators to concatenate two string and two complex numbers.
4.(A) Explain the concept of a template with the help of an example.
(B) Explain the different forms of polymorphism in C++ with the help of example.
5.(A) explain the following function:
i) eof( ) ii) seekp( ) iii) bof( )
iv) get( ) v) seekg( ) vi) getline( )
(B) How can you mean by exception whenever the input number is less than zero.
6.(A) What do you mean by exception handling? Write a C++ program that throws an arithmetic exception whenever the input numbers is less than zero.
(B) Differentiate between:
i) Procedural programming and object priented programming
ii) tell p ( ) and tell g ( )
7. Write short notes on any two of the following :
i) Pure virtual function
ii) Generic classes
iii) Files and stream