C++ Interview Questions
Questions Answers Views Company eMail

Explain the FOR loop with a help of a code.

Accenture,

572

Explain the difference between C and C++.

Accenture,

605

Explain the difference between method overriding and method overloading in C++?

Accenture,

543

Find the Factorial of a number using a program.

Accenture,

546

In C++ what do you mean by Inheritance?

Accenture,

631

Tell us the size of a float variable.

Accenture,

570

write a program To generate the Fibonacci Series.

Accenture,

563

To solve the 8 Queens problem, which algorithm is used?

Accenture,

574

What are the fundamental features of an object-oriented language?

Accenture,

538

Without using third variable write a code to swap two numbers.

Accenture,

541

Write a program that can take input from 3 to 8 and calculate the average?

Accenture,

554

Describe the different styles of function prototypes in C++.

Adobe,

533

Discuss the role of C++ shorthands.

Adobe,

543

Execute the qsort () in c/sort() in c++ library or your own custom sort which will sort any type of data on user defined criteria.

Adobe,

569

Mention the default functions in C++, how would you detect that error has occurred inside the constructor and destructor.

Adobe,

567


Un-Answered Questions { C++ }

Explain the concept of dynamic allocation of memory?

617


Write about the various sections of the executable image?

570


What size is allocated to the union variable?

591


What do you mean by public protected and private in c++?

600


How would you implement a substr() function that extracts a sub string from a given string?

563






What is the latest c++ standard?

678


What are register variables?

643


What's the order in which the local objects are destructed?

835


What is a base class?

599


What is class and example?

567


What is a tree in c++?

561


What are namespaces in c++?

591


what is oops and list its features in c++?

544


Write a syntax and purpose of switch statement.

566


How a new operator differs from the operator new?

620