C++ Interview Questions
Questions Answers Views Company eMail

What is Copy Constructor?

ABC, Siemens,

5 8070

What is an abstract class?


3 3695

What is the difference between creating an object, using 'new' and using 'malloc'?

Siemens, HFG,

2 5091

What is a virtual base class?


6 12935

What is OOPS and How it is different from Procedural Programming ?

Infosys, HP, Thyrocare,

23 46667

Difference between Top down and bottom up approaches for a given project ?

Siemens, Infosys, HCL, CSC, HP, IIT, BSNL,

14 80376

What and all can a compiler provides by default?

Accenture, HP,

3 6885

What are the different operators in C++?


3 9358

What is the difference between method and message?


4 25673

What is difference between initialization and assignment?

Infosys, HCL, HP,

12 34150

when can we use copy constructor?


6 10750

Describe functional overloading?


6 6194

Difference between Overloading and Overriding?

IBM, NIIT, GameLoft, HP, Appnetix Techno, Rohde and Schwarz,

35 162991

Difference between Operator overloading and Functional overloading?


10 37114

What is virtual constructor paradigm?


5 7122

Un-Answered Questions { C++ }

To modify an, existing worksheet. What steps are involved for: 1. Inserting and deleting rows and columns. 2. Printing cell formulas 3Jld displayed values 3. Using the page setup command


When we use Abstract Class and when we use Interface?where we will implement in real time?


write a C++ program for booking using constructor and destructor.


A company pays its salespeople on a commission basis. The salespeople receive $200 per week plus 9 percent of their gross sales for that week. For example, a saleperson who sells $5000 worth of merchandise in a week receives $200 plus 9 percent of $5000, or a total of $650. You have been supplied with a list of items sold by each salesperson. The values of these items are as follows: Item Value A 239.99 B 129.75 C 99.95 D 350.89 Write a program that inputs one salesperson's items sold in a week (how many of item A? of item B? etc.) and calculates and displays that salesperson's earnings for that week.


Given the following seqment of code containing a group of nested if instructions: y = 9; if ((x==3) || (x == 5)) y++; else if (x == 2) y *= 2; else if (x == ) y-= 7; else y = 8; if the value of x is 4 before the nested IFs are executed, what is the value of y after the nested IFs are executed?


what are the different types of qualifier in java?


String = "C++ is an object oriented programming language.An imp feature of oops is classes and objects".Write a pgm to count the repeated words from this scenario?


hi all..i want to know oops concepts clearly can any1 explain??


i got a backdoor offer in process global,Bangalore..Can i work with it?


write a program that reads in a file and counts the number of lines, words, and characters. Your program should ask the user to input a filename. Open the file and report an error if the file does not exist or cannot be opened for some other reason. Then read in the contents of the file and count the number of lines, words, and characters in the file. Also print additional information about the file, such as the longest and shortest words, and longest and shortest lines. For simplicity, we define a word to be one or more characters ending with white space (a space, tab, carriage return, etc.). Functions for checking the types of characters can be found in the ctype.h header file, so you want to include this header file in your program. For example, the sentence below could be all that is in a file. This sentence IT 104 is taught in C++. has 32 characters, one line, and six words. The shortest line is 32 characters. The longest line is 32 characters. The shortest word is 2 characters. The longest word is 6 characters


• What are the desirable attributes for memory managment?


write a porgram in c++ that reads an integer and print the biggest digit in the number


write a code for this. serial_number contained in the header of the file will be read , if this serial number is less than a previous serial number within a successfully processed file, or is the same as another serial number within a successfully processed file, or if the field contains anything other than 7 digits, then the file must error with the reason ‘Invalid SERIAL_NUMBER’.


Hi friends I have experience of 6 months in website design and maintanence. Now i am looking for other IT jobs.. to switch platform. please post any interview you know in chennai.


How Do you Code Composition and Aggregation in C++ ?