C++ Interview Questions
Questions Answers Views Company eMail

What is Copy Constructor?

ABC, Siemens,

5 12497

What is an abstract class?

Siemens,

4 6200

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

Siemens, HFG,

3 7582




What is a virtual base class?

Siemens,

6 17460

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

Infosys, HP, Thyrocare,

23 52611

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

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

14 94507

What and all can a compiler provides by default?

Accenture, HP,

3 10239

What are the different operators in C++?

HP,

3 10738

What is the difference between method and message?

HP,

4 38597

What is difference between initialization and assignment?

Infosys, HCL, HP,

12 45160

when can we use copy constructor?

HP,

6 12071

Describe functional overloading?

HP,

6 7541

Difference between Overloading and Overriding?

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

35 177176

Difference between Operator overloading and Functional overloading?

HP,

10 43314

What is virtual constructor paradigm?

HCL, HP,

5 9512







Un-Answered Questions { C++ }

Following are the class specifications: class {int a}; class {int b}; Using friend funtion,calculate the max of two objects and display it.

1088


I want to write a C++ language program that: 1. Reads in the size of a square from the screen; 2. Prints a hollow square of that size out of “-“, “|” and blanks on screen; 3. Prints the same hollow square onto a text file. The program should work for squares of all side sizes between 1 and 20.

1288


write a c++ program to create class student having datamember name,Roll_no,age,and branch intilcization all the member using constructor print the all the details on the screen.

1316


what is the sylabus for priliminaries?

831


. If employee B is the boss of A and C is the boss of B and D is the boss of C and E is the boss of D. Then write a program using the Database such that if an employee name is Asked to Display it also display his bosses with his name. For eg. If C is displayed it should also display D and E with C?

1807






diff between Virtual mathod and abstract method?

1361


Array base access faster or pointer base access is faster?

1091


assume the program must insert 4 elements from the key board and then do the following programs.sequential search(search one of the elements),using insertion sort(sort the element) and using selection sort(sort the element).

929


to find out the minimum of two integer number of two different classes using friend function

918


Am pass the 10000 records to target in target I will take commit interval 15000 when I was stop the work flow what will happened

228


write string class as your own class in java without using any built-in function

1181


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.

1419


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

925


Describe how to safeguard a system through acquisition of an antivirus Program and systematic backup.

859


What is the renewal class?

1406