(Pages : 2)
Reg. No. : .................................... Name : .........................................
Third Semester B.Tech. Degree Examination, June 2009 Branch : Electronics (2003 Scheme) 03-306 : PROGRAMMING IN C++ (TA) Time : 3 Hours
Max. Marks : 100 PART â€“ A
Answer all questions. Each question carries 4 marks.
1. What are static data types ? 2. Explain the keyword typedef. 3. What is meant by header file ? 4. Explain how arrays are passed to functions. 5. What are templates ? 6. What are the different forms of inheritance ? 7. Explain the dereferencing of pointers. 8. What are make files ? 9. Explain the basic differences between single and double linked list. 10. What do you understand by polish notation of an expression ?
PART – B Answer one question from each Module. Each question carries 20 marks. (3×20=60 Marks) Module – I 11. a) Explain how pointers differ from arrays. b) Write a program to count the number of characters in a string using pointers. 12. a) What is the difference between pass by address and pass by reference method ? b) Write a program where structures are passed as arguments. Module – II 13. a) What is a friend function ? b) Develop an Object Oriented Program in C++ to create a library information system containing the following for all books in the library. Accession number Name of the author Title of the book Year of publication Publisher’s name Cost of the book. 14. a) Explain how exceptions are handled in C++. b) Explain the concept of polymorphism with an example program. Module – III 15. Write a program to implement bubble sort and shell sort. 16. Write a program to implement binary search. ——————
2.Explain the keyword typedef. 5.What are templates ? (Pages : 2) 8.What are make files ? 4.Explain how arrays are passed to functions. PART...