How To Exam?

a knowledge trading engine...


Visvesvaraya Technological University (VTU) 2007 M.C.A C++ - Question Paper

Thursday, 13 June 2013 11:10Web

1 (a) what is object oriented programming ? explain the characteristics of object oriented systems. 10
(b) discuss the subsequent with examples. 10

2 (a) elaborate templates? explain various kinds of templates 6
(b) Write a function template to swap the contents of two reference variables and
use this in a main function to swap two int variable values, two char variables and
two float variable values. 8
(c) provide the syntax of simple class definition. discuss the terms used in class
definition. provide an example. 6

3 (a) Write overloaded functions to obtain 8
i) area of a circle for a provided radius
ii) area of rectangle for two provided sides and
iii) area of a triangle for three provided sides
(b) write 2 inline functions to obtain i)x3 and ii) nvx.use these functions in the main
Function. 6
(c) discuss default constructor and copy constructor 6

4 (a) discuss friend functions. How are thes implemented in C++? 6
(b) describe a class SET with 14
Data members - array of int
- int variable to indicate number
- of elements in a SET objects
Member functions - to learn elements of a SET object
- to print elements of a SET object
- to obtain union of two objects of SET using
operator overloading (s3=s1+s2)
- to obtain intersection of two objects of SET using operator
overloading (s4 = s1 * s2 )
s1,s2,s3and s4 are objects of SET. Use this class in a main function to show the above operations.

5. (a) what is operator overloading? How are they implemented in C++? 4
(b) provide the syntax and 1 example for single inheritance 4
(c) describe a base class STACK1 which performs only push, POP, display
Operations. Override the above operations through a derived class STACK2 which takes care of “STACK FULL” & “STACK EMPTY” situations. Show how the objects of these classes use the above functions in a main function. 12

6. (a) Distinguish ranging from virtual and pure virtual functions. 4
(b) elaborate the 2 ways of formatting of output in C++? explain any 4
functions of formatting output in both methods. 10
(c) discuss significance of new and delete operators with suitable examples. 6

7 (a) explain 3 methods of kind conversions with examples. 9
(b) discuss the significance of static data members and static member functions
with example. 6
(c) discuss constant and volatile qualifiers with examples 5
8 (a) write short notes on 5 X four = 20
(a) constructor (b) ‘this’ pointer (c) reference variables (4)access functions



( 0 Votes )

Add comment


Security code
Refresh

Earning:   Approval pending.
You are here: PAPER Visvesvaraya Technological University (VTU) 2007 M.C.A C++ - Question Paper