Visvesvaraya Technological University (VTU) 2007 M.C.A c++, Java, HTML,soft. Engg., Graph theory, As/400, C++ - Question Paper
Thursday, 13 June 2013 11:35Web
8(b).
Question: Write a note on file input and output operations.
1 (b)
Question: discuss the reference kinds used in C++.
1 (c)
Question: With examples, discuss
i) const qualifier
ii) bool data kind
iii) enum data kind
2(a):
Question: discuss how pointers and arrays are related in C++ with
examples.
2(c):
Question: discuss unction prototyping and function definition with an example.
3(b):
Question: What is function overloading? Mention the 3 steps of function overloading.
3(c):
Question: discuss the template compilation models.
4 (b):
Question: Write a program to implement bubble sort using function templates.
5(c).
Question: Bring out the differences ranging from C++ structure and C++ class.
Answer:
6(b).
Question: Write a program to perform addition and multiplication of complex numbers by overloading the operators + and *.
6(a).
Question: elaborate friend functions? Why are they used? discuss with an example.
7(a).
Question: What is inheritance? Briefly discuss the kinds of inheritance.
7(b).
Question: What is Virtual function? Briefly discuss the various kinds of usage of virtual function.
8(a).
Question: write a C++ program to create a class called STRING and implement the subsequent. Display the outcomes after every operation by overloading the operator <<
1. STRING s1="MCA"
2. STRING s2="DEPARTMENT"
3. STRING s3=s1+s2 (Use copy constructor)
1 (a)
Question: Bring out the differences ranging from C and C++.
Earning: Approval pending. |