P. 1


|Views: 34|Likes:
Published by Kamal Nath

More info:

Published by: Kamal Nath on Nov 13, 2010
Copyright:Attribution Non-commercial


Read on Scribd mobile: iPhone, iPad and Android.
download as DOCX, PDF, TXT or read online from Scribd
See more
See less





Chapter 1. The Basic Language 1. What is OOPs? Explain the characteristics of OOPs Language? 2.

explain typedef names and their advantages. 3. what is a pointer ? If ia is an integer array, what is the differences between *(ia+4) and *ia+4. 4. Explain the following data types used in C++ with an example Pointer type,string type , array type and complex type 5. Explain new and delete operators with an examples. 6. Explain the insertion and extraction operators with an examples. 7. what is a type conversion? Explain the different types of type conversions with an examples. 8. List out the differences between C and C++ language. 9. Explain the following OOPs concepts.Object, Abstraction, Inheritance, Encapsulation and polymorphism 10. what are the differences between procedure oriented programming and object oriented programming . 11. what are the applications of OOPs.

Chapter 2. Procedural Based programming 1. write a note on preprocessor directive. 2. What is a recursion ? write a program to generate fibonacci sequence using recursion. 3. What is an inline function ? Why it is necessary to make a function an inline function? Write a program using an inline function to find the maximum of two numbers. 4. What is a parameter passing ? Explain. Discus the various parameter passing schemes supported by C++. 5. Explain dynamically allocated objects with examples. 6. What is the use of function overloading ? Explain, write a program using function overloading to find the area of circle and triangle. 7. Explain function templates with its general syntax and examples. 8. Write a C++ program to swap 2 integer type data, 2 character data and 2 float type data using a generic function. 9. Explain different storage classes supported by C++. Also explain their scope. 10. What is a function overloading ? Mention the 3 steps on the resolution of fuction overloading. 11. What are default arguments ? explain with an examples. 12. Write a program to find the nCr using recursion. 13. Explain the promotions and standard conversions with respect to argument type conversion. 14. Write a program to conduct a generic sort using class template. 15. What are the generic functions? Explain hoe do you overload a function template with an example.

Chapter 3. Classes and Objects 1. Define class and object? With an example explain the concept of data encapsulation and accessing of member elements.

10. 9. Inheritance.2.m2. Perform the following operations. Explain late binding and dynamic binding. Draw console stream hierarchy and explain its members. write a program to create a class LIST with insert at front and delete at front as member function. 13. Virtual functions and iostream library 1. What is runtime polymorphism? Write a program to illustrate runtime polymorphism using virtual functions.m4 are MATRIX objects.multiply them and display their output. Discus on the use of pointers to derived classes and pointers to class members. 3. 4. . what are friend functions ? Explain with the help of general syntax and examples. If(m1 = = m2) { m3=m1+m2 m4=m1-m2 } where m1. Write a note on file input and output. 6. 5. Write a C++ program to accept 2 complex numbers . 6. 2. 5. Display the result by overloaded operator <<. check the 2 matrices by using= = overloaded operator. What is the differences between overloading an operator using a member function and using a friend function? What is the advantages of overloading the subscript operator []. Write a note on visibility of member functions based on private and protected derivations. 14. Bring out the differences between C++ class and C++ structure Chapter 4. What is a inheritance ? Explain the different types of inheritances. What is a nested class ? Explain with an example. What is a virtual functions ? With an example explain the use of virtual functions. 3. What are the advantages of inheritance ? give the relationship between the member visibility and the inheritance modes. 11. Write a program that has a class called MATRIX . what is a constructor and destructor ? explain the different types of constructors with an examples. What is a derived class ? Explain with the examples the 3 way in which a class can be inherited.m3. 8. Explain the scope resolution operator. 15. 8. 9. 4. Write a note on this pointer ? When can This not to be used. What is friend function? Write a program to perform multiplication of 2 complex numbers by overloading the * operator using friend function. What is an abstract class ? Explain with an example. How can a member function declared in the base class be redefined in the derived class? Demonstrate this with an example. Explain the concept of static data members in C++. 12. 10. 7. 7.

You're Reading a Free Preview

/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->