C++ Interview Questions
Questions Answers Views Company eMail

How to change constant values?

Huawei, Symphony,

6 14187

How to avoid changing constant values?

Symphony,

2 6213

How to implement flags?

Symphony,

2 5827

Difference between shift left and shift right?

Symphony,

1 6108

Do we have private destructors?

Symphony, TCS,

12 20863

How to avoid a class from instantiation?

Symphony,

8 16119

What are the basics of classifying different storage types, why?

Astergate, Symphony,

2 5984

Difference between static global and global?

Microsoft, Symphony, Wipro,

16 41609

Profiler in projects?

Symphony,

2 4421

What are raw sockets, where they are efficient?

Symphony,

2 4854

How to construct muliton object

Symphony, TCS,

2 5464

How to construct virtual constructor

CIStems Software, Symphony,

6 13775

When the design recommends static functions?

Symphony,

2 5974

Shall we use 'free' to free memory assigned by new, What are the further consequences??

Symphony,

5 10009

How the STL's are implemented, What the difference between templates and STL?

Symphony,

1 6523


Un-Answered Questions { C++ }

What is time h in c++?

865


Why is c++ still popular?

792


Tell me can a pure virtual function have an implementation?

778


How the delete operator differs from the delete[]operator?

855


How to hide the base class functionality in Inheritance?

859


How do I make turbo c++ full screen?

799


daily Routine of father

1147


Can you pass an array to a function in c++?

754


Can we define a constructor as virtual in c++?

820


Is c++ slower than c?

801


why reinterpret cast is considered dangerous?

2108


Which type does string inherit from?

836


Is eclipse good for c++?

785


How would you use the functions memcpy(), memset(), memmove()?

869


Question: Implement a base class Appointment and derived classes Onetime, Daily, Weekly, and Monthly. An appointment has a description (for example, “see the dentist”) and a date and time. Write a virtual function occurs_on(int year, int month, int day) that checks whether the appointment occurs on that date. For example, for a monthly appointment, you must check whether the day of the month matches. Then fill a vector of Appointment* with a mixture of appointments. Have the user enter a date and print out all appointments that happen on that date.

924