Friday, November 4, 2016

25 Best C++ programming interview questions and answers

c++ programming interview questions and answers pdf


Frequently Asked C++ programming Interview questions and answers pdf for freshers and experienced


1. What do you know about C++?


Ans:
C++ is a general-purpose programming language. It has imperative, object-oriented and generic programming features, while also providing facilities for low-level memory manipulation.It can be used to create small programs or large applications. C++ allows us to create programs to do almost anything we need to do.

2. Explain what is a class in C++?


Ans:
A class in C++ can be defined as a collection of function and related data under a single name. It is a blueprint of objects. A C++ program can consist of any number of classes.

3. How can you specify a class in C++?


Ans:
By using the keyword class followed by identifier (name of class) you can specify the class in C++.
Inside curly brackets, body of the class is defined. It is terminated by semi-colon in the end.
For example,
class name{
/ / some data
/ / some functions
} ;

4. What do you mean by internal linking and external linking in c++?


Ans:
A symbol is said to be linked internally when it can be accessed only from with-in the scope of a single translation unit. By external linking a symbol can be accessed from other translation units as well. This linkage can be controlled by using static and extern keywords.

5. What do you mean by storage classes?


Ans:

Storage class are used to specify the visibility/scope and life time of symbols(functions and variables). That means, storage classes specify where all a variable or function can be accessed and till what time those variables will be available during the execution of program.


This Is The Newest Post


EmoticonEmoticon