C++ basic interview questions and answers pdf - 1
Question: 1
What is a class?
A class is a new way of creating and implementing a user defined data type.
Classes provide a method for packing together data of different types.
Question: 2
What are the two parts of a class specification?
A class specification has two parts:
Class declaration
Class function definitions
Question: 3
What is encapsulation?
The binding of data and functions together into a single entity is referred to as encapsulation.
Question: 4
What is mean by data hiding?
The members and functions declared under private are not accessible by members outside the class, this is referred to data hiding.
Question: 5
What does the following statement mean?
Void add :: show ()
The statement means that function show () is a member of the class add. And the function does not return any data type.
- C++ Interview Questions and Answers for Experienced
- Top 200+ C++ Interview Questions and Answers
- C++ Interview Questions and Answers for Freshers
- Advanced C++ Programming Interview Questions and Answers
- C++ Language Interview Questions for Experienced Pdf
- C++ Programs Asked in Interview for Freshers
- C++ Interview Questions and Answers Pdf
- C++ Language Interview Questions and Answers for Freshers Pdf
- C++ Questions and Answers
- Top 250+ C++ Constructor and Destructor Programming Interview Questions
- C++ basic interview questions and answers pdf
- C++ Programming Interview Questions and Answers
- C++ Technical Interview Questions and Answers
- Top 200+ Advanced C++ Interview Questions 2020-2021
- C++ Lab Viva-Practical Exams Questions and Answers
- C++ Coding Interview Questions and Answers
Gross Domestic Product and Its Growth Class 10 Questions Pdf More
Industrial Cluster in Tamil Nadu TNPSC Questions Pdf More
Food and Security TNPSC Questions Pdf More
Economics Food Security and Nutrition Class 10 Questions Pdf More
Class 10th Social Indian Constitution Pdf More
100+ Physics Hydrostatics Questions and Answers More
PG TRB Economics Online Test More
Top 10,000+ General Awareness Online Test More
1000+ Hydrocarbons Quiz Questions with Answers More
100+ Verbal Reasoning Classification Quiz questions More