C++ Interview Questions
Questions Answers Views Company eMail

What is Copy Constructor?

ABC, Siemens,

5 9203

What is an abstract class?

Siemens,

3 4407

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

Siemens, HFG,

2 5792




What is a virtual base class?

Siemens,

6 13932

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

Infosys, HP, Thyrocare,

23 48326

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

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

14 86010

What and all can a compiler provides by default?

Accenture, HP,

3 7681

What are the different operators in C++?

HP,

3 9746

What is the difference between method and message?

HP,

4 28889

What is difference between initialization and assignment?

Infosys, HCL, HP,

12 37751

when can we use copy constructor?

HP,

6 11108

Describe functional overloading?

HP,

6 6537

Difference between Overloading and Overriding?

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

35 167926

Difference between Operator overloading and Functional overloading?

HP,

10 39196

What is virtual constructor paradigm?

HCL, HP,

5 7764







Un-Answered Questions { C++ }

How to handle exception in c++, For example in a functions i am assigning memory to some variables and also in next instructions in am dividing one variable also. If this functions generates a error while allocating memory to those variable and also while dividing the variable if i divide by zero then catch block how it will identify that this error has cone from perticular instruction

674


Write a C/C++ program that connects to a MySQL server and checks if the InnoDB plug-in is installed on it. If so, your program should print the total number of disk writes by MySQL.

875


Please send ford technologies placement paper 2 my mail id

670


what is the sylabus for priliminaries?

618


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?

478


Give two or more real cenario of virtual function and vertual object

822


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?

818


What type of question are asked in GE code writing test based on c++ data structures and pointers?

2075


How to call a non virtual function in the derived class by using base class pointer

2838


#include #include #include #include void insert(char *items, int count); int main(void) { char s[255]; printf("Enter a string:"); gets(s); insert(s, strlen(s)); printf("The sorted string is: %s.\n", s); getch(); return 0; } void insert(char *items, int count) { register int a, b; char t; for(a=1; a < count; ++a) { t = items[a]; for(b=a-1; (b >= 0) && (t < items[b]); b--) items[b+1] = items[b]; items[b+1] = t; } } design an algorithm for Insertion Sort

856


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

140


How connect plc and pc through software

736


I want explanation for this assignment: how to connect mysql database using c/c++,please explain this detailly?

561


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.

709


i wanted to know about questions about c,c++ , which is required for placements.... im a fresher

629