The document outlines important questions related to programming in C++, covering topics such as operators, data types, function argument passing, constructors, class hierarchies, I/O operations, exception handling, overloading, and object-oriented concepts. It includes requests for example programs to illustrate various concepts like templates, inheritance, and polymorphism. Additionally, it addresses specific programming tasks such as implementing constructors, destructors, and operator overloading.
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0 ratings0% found this document useful (0 votes)
5 views1 page
C++ Important Questions
The document outlines important questions related to programming in C++, covering topics such as operators, data types, function argument passing, constructors, class hierarchies, I/O operations, exception handling, overloading, and object-oriented concepts. It includes requests for example programs to illustrate various concepts like templates, inheritance, and polymorphism. Additionally, it addresses specific programming tasks such as implementing constructors, destructors, and operator overloading.
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1
PROGRAMMING IN C++ IMPORTANT QUESTIONS
1) Explain different operators and data types in C++
2) Write in detail about the different ways of passing arguments to functions with an example program. 3) Explain the different types of constructors with suitable examples. 4) Write about Inline member functions with syntax and program. 5) Explain the concept of class hierarchies with suitable example program. 6) Explain Formatted and Unformatted I/O operations with an example program. 7) Explain in detail Exception handling with syntax and an example program. 8) Explain overloading with Function Templates and write a program to illustrate it. 9) Explain loop statements with syntax and example. 10)Explain the following:(i) Function (ii) Function prototype (iii) Default arguments. 11) Explain the following: (i) OOP languages (ii) OOP’s Applications. 12) Explain operator overloading with syntax and example program. 13) a) Explain virtual member functions. b) Explain pure virtual functions. 14) Explain the following: (i) Multiple Exception (ii) Re-throwing Exception. 15)a) Explain Function Template and Class Template with an example. b) Explain overloading function with syntax and example program. 16)a) Explain object oriented concepts. b) Explain Function Template. Explain Function Templates with Multiple type. 17)a) Define Inheritance. Explain types of Inheritance with an example b) Explain stream classes. c) Explain Abstract Base classes. Write a program to implement a default Argument using class and object. 18)a) Write a program to implement constructors declared in base class and destructors declared in derived class using Inheritance concept. b) Write a program to implement a copy constructors and destructors within a single class using class and object. a) Define virtual function. What are the features of virtual functions explain with suitable program. 19)a) Write a program to demonstrate static polymorphism using method overloading. b) Write a program to implement template concepts with template class and object. 20)a) Write a program to search and sort the given list of N numbers. b) Define inline keyword? Write a program Using Inline keyword. 21) Define Object? How to create and initialize it?. Explain with a program 22)a) Differentiate between constructor and Destructor?. Explain with a program. b) What is function template? Write a program to overload Function template. 23) a). What is polymorphisms ?. How to implement it in C++. b). Write a program using class template. What are hierarchies of C++ streams. 24) a). What is Expression. Define base class and derived class. b) Explain about Friend Class ? Write a Program to find biggest of TWO numbers by using friend class Write the syntax for if else statement. What is Token? Explain the types of tokens in C-++. 25)a) Explain the Structure of "C++ Program? with an example. b) Define Array. Discuss on 1-Dimenstional Arrays. 26) A) How an array of objects handles in C++? B) Write a program to add two matrices using Operator Overloading.