Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...



C++ Interview Questions
Questions Answers Views Company eMail

What is a macro? And how is a macro same as a template?

4 6759

What is the default size allocated for array in the statement if size not specified " int a[] "

CTS,

4 10266

int main() { int i ,a[i]; i = 0; a[i] = 10; cout<< a[i] << endl; return 0; } What will be output of this program?

HCL, Mphasis,

11 20018

What is the difference between Home and $Home?

TCS,

2 5621

what is the abstract class,interface ,its difference with a programatic eg.? hi,recently i went for an interview they ask me what is abstract class ,interface and its difference I said abstract class contain abstact method ,abstract method is a method with no body.Abstract class cannot be instantiated.Abstract class is a base class it required derived class for the implementation of method. Interface is a syntactical contract that all derived class should follow it define properties ,method,events which are known as member of interface. Then They asked me what is the difference between them. I said abstract class interface 1.abstact class can implement method 1.interface cant 2.abstact class can contain constructor, 2.interface cant destructor 3.abstract class cannot support multiple 3.interface support inheritance etc Then they said some different answer I said dont no. Then they ask me when i should make abstract class for an project and when i should make interface. I said if suppose there is two class which must be having method with different logic then we sholud make abstract class. and if suppose we have two class having method .with different logic then we can make interface . Am i correct with my explaination.if not correct me .please provide me that when should we create abstract class and interface and what is difference .please help me

1 4764

difference between abstraction and encapsulation with progarammatic eg. hi,just recently i went for an interview .The interviewer asked what is the difference between abstraction and encapsulation with programmatic eg. I gave the answer as encapsulation mean hiding the relevant data which is not useful for the user, eg a electric fan .hiding the information how the electricity is converted into machanical energy. abtraction showing only the relevant data to the user eg electric fan. it look ,its color ,it design etc only relevant data. Then the interviewer asked me, give me some programmic eg .I Said Let assume a web form having control like textbox,button etc. The user can view textbox,button etc this is the eg of abstraction and when the user click on the button how he is redirected is not known by the user is the eg of the encapsulation. Am I Correct .was the answer given by me is perfect .now i am planing to go for an another interview should i give the same answer.IF not please suggest me a better answer.with some good eg Please help

1 4669

What is the use of fflush(stdin) in c++?

HCL,

4 8497

Why is it so that we can have virtual constructors but we cannot have virtual destructors?

2 5060

CAN U SAY WHICH PROGRAMING LANGUAGE IS USED BY DOCTORS....?

1 4425

WHAT IS THE ABREVATION OF FORTRAN?

4 7096

WHO DEVELOPED C++?

6 12527

Which keyword is written to use a variable declared in one class in the other class?

TCS,

5 10328

int *p = NULL; printf("%1d",p) ; what will be the output of this above code?

Microsoft,

3 12581

What is size of a empty class?

Microsoft, Tata Elxsi, Wipro,

7 14051

can you give real time example for polymarphism

TCS,

5 8624


Un-Answered Questions { C++ }

What is microsoft c++ redistributable?

1153


Explain stack & heap objects?

1102


can any one help to find a specific string between html tags which is changed to a sting.. weather.html looks (for location) is somewhere #include #include #include using namespace std; string find_field(string myPage,string); int main (void) { string page, line, location, temperature; ifstream inputFile("weather.xml"); while(getline(inputFile, line)) { page.append(line); line.erase(); } // Now page is a string that contains the whole xml page // Here you need to write something that finds and // extracts location and temperature from the XML // data in the string page and stores them in // the strings location and temperature respectively location=find_field(page,"location"); temperature=find_field(page,"temp_c"); cout << "Location: "<

2120


Is c the same as c++?

1062


What are the advantage of using register variables?

1216


Is react oop?

1112


What is pointer -to-members in C++? Give their syntax?

1082


Do you like to Submit Questions in Bulk under Same Category?? Then use our Bulk ListerDo you like to Submit Questions in Bulk under Same Category?? Then use our Bulk Lister

2148


Can constructor be private in c++?

1091


What are references in c++? What is a local reference?

1110


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

2313


What is persistence in oop?

1209


What is an object in c++?

1363


Comment on assignment operator in c++.

1172


What is the real time example of encapsulation?

1120