GeekInterview.com
   Home |  Tech FAQ  |   Interview Questions |  Placement Papers |  Tech Articles |  Learn |  Freelance Projects |  Online Testing |  Geeks Talk |  Job Postings |  Knowledge Base | Site Search |  Add/Ask Question

C++ Interview Questions


C++ Interview Questions

Questions: 200
Comments: 853
 Showing Questions 1-10 of 200 Questions
[1] 2 3 4 5 6 7 8 9 10 Next >>
 Sponsored Links

 
 C++ Interview Questions
Sorting Options :  

Which one of the following statements regarding C++ class inheritance is FALSE? a. Inheritance promotes generic design and code reuse.b. Struct cannot be inherited in C++. c. C++ supports multiple 
Latest Answer: a. Inheritance promotes generic design and code reuse. ...

Which one of the statements concerning data encapsulation is FALSE? A. Data encapsulation lets the programmer create an object and then provide an interface that other objects can use to invoke the methods 
Latest Answer: E is false, because encapsulation decreases the complexity of the program (encapsulation is to wrap data and associated functions into a single unit called class) ...

Why p++ is faster than p+1? 
Latest Answer: p++ is faster because on compilation, it gets translated to three machine instructions, where as p=p+1 needs four machine instructions. All machine instructions take the same time. For p++, the instructions are: mov ax, inc ax mov, ax For ...

When we allocates the memory using malloc() and calloc(), it returns pointer pointing to the base address to the allocated memory. But while freeing the memory we call free(pointer) thenHow the operation 
Latest Answer: Dynamic memory is allocated on heap. De-allocation is counterpart of the allocation operation. the task of allocation and De-allocation is handled by the base/standard libraries. These store information about the allocated memory like base address ...

What are the advantages of inline functions over macros? 
Latest Answer: Inline functions are not always advantageous.They are appropriate when their impact on code size in not adverse i.e. their size is small and they are not called from too many different places.They are suitable when they are in the deepest of the loop ...
Read Answers (4) | Asked by : chilton

What is default parameter? Can a overloaded function have a default parameter? 
Latest Answer: The overloads may not always be banned. The compiler could remove the parameter with default values for the overload resolution. e.g. The signature of the fuction after removing the default parameters should not match any other fuction signature.Moreover ...

Write a program that will read in a length in feet and inches and will output the equivalent length in meters and centimeter. Use at least three functions: one for input, one or more for calculating, and 
Latest Answer: #include "iostream"using namespace std;struct metric{ int meters; int centimeters;};struct english{ int feet; int inches;};void input( english &value ) { std::cout

What is the concept of file stream in C++? How is a file opened and closed in C++? 
View Question | Asked by : ayaan_deep

What are Default Constructor and Do Nothing Constructor 
Latest Answer: Constructor with no arguments or arguments with default value are called default constructor. ...
Read Answers (2) | Asked by : amiomi

How will you write object into file using file concepts in C++? 
Latest Answer: A function in the class definition can be included which writes to the standard file stream and takes the name of target file as a parameter. Function prototype will be like this:WriteObjectToFile (const char* fileName){ofstream fout(fileName);fout

View page [1] 2 3 4 5 6 7 8 9 10 Next >>

Ask A Question
Go Top
 Sponsored Links

 
Ask Question
You must login to Ask Question or Register your free account

Category:

 
Question Title:


Question in Detail:

Add this to my Subscribed Questions (?)
Send me email when new answer is posted (?)

 
Subscribe
Get Latest Updates Via RSS Reader or by Email
 Forum Discussion Subscribe to Forum Discussions Via E-Mail Latest Forum Discussions Subscribers
 Knowledge Base Subscribe to Knowledge Base Series Via E-Mail Knowledge Base Subscribers
 Learning Series Subscribe to GeekInterview Learning Series Via EMail Learning Series Subscribers
 Freelance Jobs Subscribe to GeekInterview Freelance Jobs Via EMail Latest Freelance Jobs Subscribers
 GeekInterview Blog Subscribe to GeekInterview Blog Via EMail GeekInterview Blog Subscribers
 Testing Interview Questions Subscribe to Testing Interview Questions Via EMail Testing Interview Questions Subscribers
 Oracle Interview Questions Subscribe to Oracle Interview Questions Via EMail Oracle Interview Questions Subscribers
 Java Interview Questions Subscribe to Java Interview Questions Via EMail Java Interview Questions Subscribers
 Latest Placement Papers Subscribe to Latest Placement Papers Placement Papers Subscribers
 Free Training Subscribe to Free Training Via EMail Free Training Subscribers
 Learn AJAX Subscribe to AJAXwith.com Via EMail AJAXwith Subscribers
Sponsored Links

 




About Us  |   Privacy Policy  |   Terms and Conditions  |   Contact  |   Site Map  |   Add Question  |   Propose Category  |   RSS Feeds  |   Articles Sitemap  |   Site Updates  |   Add Resource

Copyright © 2005 - 2008 GeekInterview.com. All Rights Reserved
Page copy protected against web site content infringement by Copyscape