Search for notes by fellow students, in your own course and all over the country.

Browse our notes for titles which look like what you need, you can preview any of the notes via a sample of the contents. After you're happy these are the notes you're after simply pop them into your shopping cart.

My Basket

You have nothing in your shopping cart yet.

Title: C++ questions with answers
Description: C++ important questions

Document Preview

Extracts from the notes are below, to see the PDF you'll receive please use the links above


QUESTIONS ON C++ WITH ANSWERS
Q1: What is c++?
Ans: c++ is a general purpose object oriented programming language invented in the early
1980 by bajarne stroutrup
...


Q3: What are the different features of c++?
Ans: Following are the different features of the Classes in C++,









Operators and function overloading
Free storage management
Constant types
References
Inline function
Virtual function
Templates
Exception handling

Q4: Explain constructor?
Ans: Constructors is a member function having the same name as that of its class and is
executed automatically when the class is instantiated (object is created)
...

It consists of three entities:
1) the function name
...

2) The function parameters
...

3) The function returns type this specifies the type of value function returns
...


Q7: What is function overloading?
Ans: function polymorphism for function overloading is a concept that allows multiple
functions to share the same name with different arguments type assigning one or more
function body to the same name is known as function overloading
...
The final
result expressed in the highest precision possible
...
We can
force an expression to be a specific type by using a cast
...
It is like a child
inheriting the features of its parent
...

Different types of inheritance are as follows-:
1) single level
2) Multi-level
3) Multiple
4) Hierarchical (hybrid)
5) multipath

Q10: What is friend function?
Ans: A friend function is a function which is use to access the private data member of
different class
Title: C++ questions with answers
Description: C++ important questions