CS6456 OBJECT ORIENTED PROGRAMMING NOV DEC 2016 Min PDF

You might also like

Download as pdf
Download as pdf
You are on page 1of 2
BB nee [AHI [P|P|o| - [col | Question Paper Code: 80295 | WE Bech DRGREE PXNAMINATION, NOVEMHEIUDECEMIEH 2016 Fourth Somontor Moctrieal and Elec nie Engineering OBINET ORTENTED PROGRAMMING (Common to Electromes and Instrume and Control Ei an Time Thre hours Answer ALL. lation» 2010) PART A — (10+ 26 20 mark») 1. What is meant by Olyect Orented Programming? 2 Define abstract 3. State the uses of inline functions 4. Define polymorphism 8. What are the advantages of generic programming? 6 What is an exception? 7. “Wawa is platform independent language”, Comment. 8. Distinguish between overloading and overriding 9. What is the use of multithreading? 10. Distinguish between class and interface. PART B— (6 = 16 = 80 marks) 11. @) (List out differences between procedure oriented programming and object oriented programming, (ii) List out the applications of OOPs. on Or () @) Explain the characteristics of OOP Gi) Write a C++ program to list out the prime numbers between the given two limits (+8) 12, 13, 14. 16. (a) ) (@) &) (a) @) @) &) a) @ Gi) Explain function overloading in C++ with an example. ® What are constructors? Explain the concept of constructors ang destructors with an example. _ Or Write a C++ program to overload + operator to add two comple, numbers. ® Explain the need for iterators using sufficient examples. ® Write a C++ program to generate user defined exception whenever @ user inputs odd numbers. Gi) Explain function templates with an example. +n Or () Explain multiple inheritance in C++ with examples. (i) List out the advantages of generic programming. (o+6) () Highlight the features of Java. © Gi) Explain the different looping constructs of Java with examples. (10) Or Explain the types of inheritance in Java with examples. a6) @ How do you add an interface to a package? Explain with an example. ® (i) How exceptions are handled in Java? Explain the important methods used to handle exception. ® Or @ — Explain multithreading with an example. ® i) Explain any six methods available in the StringBuffer class. ® : 80295

You might also like