C++ Interview Questions
Questions Answers Views Company eMail

What are the differences between public, private, and protected access?

IBM, Oracle, Wipro,

12 71369

What is the difference between a copy constructor and an overloaded assignment operator?

Belzabar, Citrix, Microsoft, Wipro,

4 22484

How do you link a C++ program to C functions?

4 15770

Can inline functions have a recursion? Give the reason?

3 8125

How Virtual functions call up is maintained?

2 9233

What is problem with Runtime type identification?

2 8348

What about Virtual Destructor?

Virtusa,

1 6072

What are advantages of C++ when comparing with C?

HP, iGate, TCS,

18 26950

What is the difference between static global and global ?

CA,

2 7078

structure contains int, char, float how it behaves for big endian and little endian?

BITS,

1 4494

When copy constructor can be used?

Symphony,

4 10791

What is the use of static functions?

Symphony,

10 29897

How const functions will be treated by compiler?

Symphony,

3 5398

When volatile can be used?

Symphony,

3 6790

How to stop conversions among objects?

Symphony,

5 8709


Un-Answered Questions { C++ }

what type of question are asked in thoughtworks pair programming round ?

1757


Discuss the effects occur, after an exception thrown by a member function is unspecified by an exception specification?

635


If all is successful, what should main return a) 0 b) 1 c) void

557


What is a loop? What are different types of loops in c++?

591


What is the difference between virtual functions and pure virtual functions?

604






Name four predefined macros.

592


Templates mean

1587


What is the meaning of c++?

540


Where the memory to the static variables is allocated?

558


describe private access specifiers?

637


What are c++ tokens?

590


Name the operators that cannot be overloaded.

1191


What is the difference between member functions and static member functions?

554


How do you establish a has-a relationship?

607


Write a program to compute for numeric grades for a course. The course records are in a file that will serve as the input file. The input file is in exactly the following format: Each line contains a student's first name, then one space, then ten quiz scores all on one line. The quiz scores are in whole number and are separated by one space. Your program will take it input from this file and sends it output to a second file. The data in the output file will be exactly the same as the data in the input file except that there will be one additional number (of type double) at the end of each line. This number will be the average of the student's ten quiz scores. Use at least one function that has file streams as all or some of its arguments.

2571