Wednesday, July 8, 2015

Annamalai University PROGRAMMING IN C++ End Semester Examination – November/December Question paper 2010

University: Annamalai  University
Course: PROGRAMMING IN C++
Subject : PROGRAMMING IN C++
Year of  Question Paper : 2010




Reg. No. ________                                                                                                                                                      
Karunya University
(Karunya Institute of Technology and Sciences)
(Declared as Deemed to be University under Sec.3 of the UGC Act, 1956)

End Semester Examination – November/December 2010

Subject Title:PROGRAMMING IN C++                                                                                           Time: 3 hours
Subject Code: 09CS203                                                                                                           Maximum Marks: 100           
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

Answer ALL questions

PART – A (10 x 1 = 10 MARKS)

1.         State the difference between a structure and class in C++?
2.    __________ and __________ operators are used for data assignment and comparison in C++.
3.         Is main( ) a user defined function ?
4.         Member access operators are ___________ and ___________.
5.         Constructors are used for ___________ data members in a class.
6.         Can you overload all operators in C++?
7.         When do you refer a class as pure virtual function?
 8.        Which class cannot create object?
 9.        The default action for terminate is to invoke ___________ function in exception handling.
 10.      C++ supports ___________ and   ___________exceptions.

PART – B (5 x 3 = 15 MARKS)

11.       How do you use the relational operators in C++?
12.       Create an integer array with size 5 and get the input and display the same.
13.       Distinguish the constructor and destructor.
14.       Write notes on exception handling.
15.       Define the visibility of inherited members.

PART – C (5 x 15 = 75 MARKS)

16.       With suitable example discuss the characteristics of OOP.
(OR)
17.  What is inline function? Write in which situation the inline function may not work.  Write a C++ program to find the factorial of a given number using inline.

18.       a.Describe about storage class variables.(5)                                                                                                                                              
   b.Create a class ‘Student’ which consists of name, roll no., sex and subject marks.  Find the total marks and average of each student.  Achieve this using Arrays. (10)                                                                                   
(OR)
19.       a.What is the purpose of default arguments?                                                                                                      (5)
    b.  Write a program to sort the set of strings using call by value and call by reference. (10)
                            
20.       Explain the various string handling functions in C++ with suitable examples.    
(OR)
21.       Discuss the various types of inheritance with an example.

22.       a.What do you understand about operator overloading? Explain.(7)                                                                    
   b.Write a C++ program to perform the multiplication of complex numbers using operator overloading.(8)                                                                                                                                                                                                     
(OR)
23.       How do you handle the errors in file operation?

24.       What is the purpose of virtual function? Explain.
(OR)

25.       Write a C++ program to manage the student information using friend function and file concepts.  File             contains the personal data and file 2 contains academic data of the students.  
Share This
Previous Post
Next Post

B.E Civil Engineer Graduated from Government College of Engineering Tirunelveli in the year 2016. She has developed this website for the welfare of students community not only for students under Anna University Chennai, but for all universities located in India. That's why her website is named as www.IndianUniversityQuestionPapers.com . If you don't find any study materials that you are looking for, you may intimate her through contact page of this website to know her so that it will be useful for providing them as early as possible. You can also share your own study materials and it can be published in this website after verification and reviewing. Thank you!

0 comments:

Pen down your valuable important comments below

Search Everything Here