C++ Interview Questions
Questions Answers Views Company eMail

What is a c++ map?

659

Can java be faster than c++?

669

Is java made in c++?

579

Is c++ high level programming language?

673

What does new do in c++?

633

What is java and c++?

659

What is linked list in c++?

693

What is c++ hash?

616

What are the important differences between c++ and java?

598

What is c++ mutable?

702

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.

628

Question: Write a program that prints a paycheck. Ask the program user for the name of the employee, the hourly rate, and the number of hours worked. If the number of hours exceeds 40, the employee is paid “time and a half”, that is, 150 percent of the hourly rate on the hours exceeding 40. Be sure to use stepwi se refine ment and break your solution into several functions. Use the int_name function to print the dollar amount of the check.

693

Tell me about virtual function

1 542

Can we call C++ OOPS? and Why

269

Can we provide one default constructor for our class?

282


Un-Answered Questions { C++ }

What are the various compound assignment operators in c++?

549


What are the different types of comments allowed in c++?

575


What is do..while loops structure?

616


What are string library functions(syntax).

567


What's the order in which the objects in an array are destructed?

852






Why can templates only be implemented in the header file?

656


Do you know about Agilent PRECOMPILERS. ?

597


Get me an image implementation program.

1557


What is a class oop?

592


In which situation the program terminates before reaching the breakpoint set by the user at the beginning of the mainq method?

585


Does c++ have a hash table?

540


C++ supports multiple inheritance. What is the “diamond problem” that can occur with multiple inheritance? Give an example.

384


How to declare a pointer to an array of integers?

643


Does improper inheritance have a potential to wreck a project?

626


What is the highest level of cohesion?

575