March 9, 2010


Anna University B.Sc Computer Science Object Oriented Programming and C++ Question paper Computer Technology
(Common to B.Sc. Information Technology)

PART A – (10 X 2 = 20 marks)

1. Define Object Oriented Programming.
2. What is typecasting ? What are explicit and implicit type conversions?
3. Compare objects and classes.
4. Can a overloaded function be default argumented?
5. What is the limitation of unary operator overloading? How it is solved?
6. Can a constructor be private? Is so what it means, how to use it as a private?
7. C++ require that when a desired class object is created a base class constructor if one exists be invoked. Why it is so?
8. Why it does not make a sense for a virtual method to be static?
9. What is the role of isostream.h and iomanip.h header files?
10. Differentiate binary and ASCII file.

PART B ( 5 X 16 = 80 marks)

11. (i) Explain the feature of OOP. (8)
(ii) Write a C++ program to find the sum of the digits of a given number (8)

12. (a1) What is a qualifier ? Explain various qualifiers used in C++ (8)

(a2) What are strings? Are they standard or derived data types? Write an
interactive program to check whether a given string is a palindrome or not?
What happen if the end of string is missing? (8)
(b) What are command line arguments? Explain with an example. (6)

13. (a1) Write a program to keep track of number of instances created, alive and
destroyed using members, constructor and destructors. (6)

(a2) What is nested class? How does it differ from local class? Create a date as
a nested class of student qualifier class and do the manipulation of reading
and printing the date of birth and date of joining, of a student. (10)

(b) Write a program called vector with one indirection pointer as its data member.
Overload the operators.
( ) – set the value of the object
[ ] – get the value of individual element
New – to allocate memory location
Delete – to deallocate the memory location

14. (a) Design three class student, exam and results, where result in inherited from
exam and exam is inherited from student. Write possible constructors to
initialize the values. Write a main function to test the constructor execution by
creating objects. (16)


(b) Can a constructir be virtual ? What is the use of virtual constructor? How
dynamic binding is achieved in the following program ?
Class X {
Int x;
Public :
Void read ();
Virtual void read ( ) ;
Void print ( ) ;
Class Z {
Int b ;
Public :
Virtual void read ( );
Virtual void print ( );
}; (16)

15. (a1) Create a class classed item with necessary data member and member
functions. Write a custom manipulator to print $ before the rate of an item.
(a2) Explain the iostream class hierarchy along with its member.


(b1) Explain about the file opening modes and error handling functions (8)
(b2) Write a program to create a file called emp.dat with employee number, name,
BP, deductions and allowances as record fields. Open a file read the record
Calculate the salary and write it back to the same file. (8)



Post a Comment

Get Syllabus in your Mail


Accenture Admission Notice - 2010 Admission Notification Anna University Anna University Chennai Anna University Question Papers Anna University Trichy Apparel Technology and Management Aptitude Questions Arts and Science Colleges Biomedical Engineering C and CPP Ebooks Calicut University CBSE Question papers Civil Engineering Civil Service Exams Colleges in India Colleges Result Computer Science Engineering Core Jobs CS R2008 CSE CSIR NET EBooks Download ECE EEE EIE Electives Electrical and Electronics Engineering Electronics and communication Electronics and Instrumentation Engineering Engineering Engineering Colleges in Maharashtra Engineering Colleges in TamilNadu Engineering Admissions Engineering Colleges Engineering Colleges in Karnataka Engineering Jobs Engineering Syllabus Entrance Exam Dates Entrance Exam Results Entrance Examination Exam Time Table Experiencer First Year Syllabus Freshers Full Time Jobs Government jobs in india Hardware and Networking Jobs Hotel Management and Catering Technology IGNOU Information Technology INTEVIEW QUESTIONS IT Jobs JNTU Question Papers Jobs in Bangalore Jobs in Chennai Jobs in Coimbatore Jobs in Delhi Jobs in Hyderabad Jobs in India Jobs in Kerala Jobs in Noida Jobs in Tamilnadu Jobs in TATA Karnataka Educations Lab Manuals Mechanical Engineering Medical Colleges Placement Papers Plus 2 Preparation for exams Private Jobs in India Question Papers Question Papers Download Results Announcement Semester 1 Semester 2 Semester 3 Semester 4 Semester 5 Semester 6 Semester 7 Semester 8 Syllabus Syllabus Download Tamil Movie TCS Placement Papers Teaching Jobs TECH MAHINDRA Textile Technology Top colleges University Results UPSC VICEVESVARAYA TECHNOLOGICAL UNIVERSITY waec Walk-in Interview Web Designers



Anna university Engineering Syllabus

Earn Money From Online

Government jobs in india

Admission Notification

Total Pageviews


Privacy Policy use third-party advertising companies to serve ads when you visit our website. These companies may use information (not including your name, address, email address, or telephone number) about your visits to this and other websites in order to provide advertisements about goods and services of interest to you. If you would like more information about this practice and to know your choices about not having this information used by these companies, click here.