Here, are some sample questions based on "C++/OOPS Programming language". Read it carefully as these questions will help you in cracking any interview. Question - 16) Which header file is required for creating and manipulating data files in C++? Answer: fstream.h Question - 17) What is an access specifier? Answer: An access specifier is a way to specify the scope and accessibility of members of a class. Access specifiers can be either private or protected or public. Question - 18) How is memory allocated to a class and its objects? Answer: When a class is defined, memory is allocated for its member functions and they are stored in the memory. When an object is created, separate memory space is allocated for its data members. All objects work with the one copy of member functions shared by all. Question - 19) What is the difference between an object and a class ? Answer: An object is an identifiable entity with some characteristics and behavior. It r...
All HR and Technical interview questions with answers for freshers and experienced professional. It helps job seekers who are about to attend interviews.