C++ Interview Questions
Questions Answers Views Company eMail

Why pure virtual functions are used if they don't have implementation / When does a pure virtual function become useful?

1 538

What is virtual destructors? Why they are used?

1 519

What you mean by early binding and late binding? How it is related to dynamic binding?

1 547

What is meant by reference variable in C++?

1 542

How to create a reference variable in C++

1 549

What are the difference between reference variables and pointers in C++?

1 533

What will the line of code below print out and why?

323

What is the error in the code below and how should it be corrected?

302

What will i and j equal after the code below is executed? Explain your answer.

1 549

What are the different data types present in C++?

1 732

What are class and object in C++?

1 651

Compare compile time polymorphism and Runtime polymorphism

1 493

What do you know about friend class and friend function?

1 544

Define inline function

1 554

What is a reference in C++?

1 629


Un-Answered Questions { C++ }

What is the standard template library (stl)?

621


What are the 4 main oop principles?

680


What is an undefined behavior and sequence points

565


Write is a binary search tree? Write an algo and tell complexity?

590


Write a C++ program without using any loop (if, for, while etc) to print prime numbers from 1 to 100 and 100 to 1 (Do not use 200 print statements!!!)

1637






Are php strings immutable?

560


Is c++ the most powerful language?

562


Describe about storage allocation and scope of global, extern, static, local and register variables?

730


What is polymorphism give a real life example?

557


What is data structure in c++?

652


Is c better than c++?

611


Can we inherit constructor in c++?

584


What is the main purpose of inheritance law?

667


explain the reference variable in c++?

573


INSTANCE FIELDS DECLARED private ARE ACCESSIBLE BY THE METHODS ONLY.CAN WE CHANGE THE private FIELD OF AN OBJECT IN A METHOD OF SOME OTHER OBJECT OF THE SAME CLASS?

1632