Monday, December 8, 2014

[OneStopGATE] Digest Number 1991

1 Message

Digest #1991

Message

Sun Dec 7, 2014 8:38 pm (PST) . Posted by:

"Sruti" a.maheshi



|
|
| C++ INTERVIEW QUESTIONS |
|
 
| | Download Free Interview Questions eBook of 500 Questions 

(If you do not have a Yahoo! account, you can get it by simply sending a blank email to CoolInterview-Subscribe@yahoogroups.com and confirm the verification email received. Once your email is confirmed, we will instantly send the download link to you.) |

|
| C++ Interview Questions |
|
- When do use "const" reference arguments in function? 
http://www.coolinterview.com/interview/29496/ 

 
- What is the dangling pointer in c++ 
http://www.coolinterview.com/interview/29519/ 

 
- What is the difference between a copy constructor and an overloaded assignment operator? 
http://www.coolinterview.com/interview/29380/ 

 
- ell how to check whether a linked list is circular. 
http://www.coolinterview.com/interview/29460/ 

 
- What is the difference between char a[] = "string"; and char *p = "string"; ? 
http://www.coolinterview.com/interview/29389/ 

 
- Write a short code using C++ to print out all odd number from 1 to 100 using a for loop 
http://www.coolinterview.com/interview/29458/ 

 
- What is class invariant? 
http://www.coolinterview.com/interview/29343/ 

 
- When are temporary variables created by C++ compiler? 
http://www.coolinterview.com/interview/29497/ 

 
- What is the difference between Mutex and Binary semaphore? 
http://www.coolinterview.com/interview/29486/ 

 
- What is a Makefile? 
http://www.coolinterview.com/interview/29490/ 

 
- How can you quickly find the number of elements stored in a a) static array b) dynamic array ? Why is it difficult to store linked list in an array? How can you find the nodes with repetetive data in a linked list? 
http://www.coolinterview.com/interview/29487/ 

 
- Will the inline function be compiled as the inline function always? Justify. 
http://www.coolinterview.com/interview/29507/ 

 
- What are storage qualifiers in C++ ? 
http://www.coolinterview.com/interview/29495/ 

 
- How do I initialize a pointer to a function? 
http://www.coolinterview.com/interview/29371/ 

 
- What are the main underlying concepts of object orientation? 
http://www.coolinterview.com/interview/29504/ 

 
- Is there anything you can do in C++ that you cannot do in C? 
http://www.coolinterview.com/interview/29309/ 

 
- Explain term POLIMORPHISM and give an example using eg. SHAPE object: If I have a base class SHAPE, how would I define DRAW methods for two objects CIRCLE and SQUARE 
http://www.coolinterview.com/interview/29408/ 

 
- What are the differences between new and malloc? 
http://www.coolinterview.com/interview/29322/ 

 
- What do u meant by "SBI" of an object? 
http://www.coolinterview.com/interview/29503/ 

 
- What is a COPY CONSTRUCTOR and when is it called? 
http://www.coolinterview.com/interview/29405/ 

 
- What are 2 ways of exporting a function from a DLL? 
http://www.coolinterview.com/interview/29463/ 

 
- What do you meant by active and passive objects 
http://www.coolinterview.com/interview/29501/ 

 
- Write a program that ask for user input from 5 to 9 then calculate the average 
http://www.coolinterview.com/interview/29457/ 

 
- What is Memory alignment?? 
http://www.coolinterview.com/interview/29498/ 

 
- What is a mixin class? 
http://www.coolinterview.com/interview/29518/ 

 
- When can you tell that a memory leak will occur? 
http://www.coolinterview.com/interview/29514/ 

 
- What is the difference between Stack and Queue? 
http://www.coolinterview.com/interview/29323/ 

 
- What is the difference between an external iterator and an internal iterator? Describe an 
http://www.coolinterview.com/interview/29401/ 

 
- Is it possible to have Virtual Constructor? If yes, how? If not, Why not possible ? 
http://www.coolinterview.com/interview/29305/ 

 
- What's the output of the following program? Why? #include main() { typedef union { int a; char b[10]; float c; } Union; Union x,y = {100}; x.a = 50; strcpy(x.b,"hello"); x.c = 21.50; printf("Union x : %d %s %f ",x.a,x.b,x.c ); printf("Union y :%d %s%f ",y.a,y.b,y.c); } Given inputs X, Y, Z and operations | and & (meaning bitwise OR and AND, respectively) What is output equal to in 
http://www.coolinterview.com/interview/29392/ 

 
- Anything wrong with this code? T *p = 0; delete p; 
http://www.coolinterview.com/interview/29523/ 

 
- Input three positive integers representing the sides of triangle and determine wether they form a valid triangle.hint: in triangle the sum of any two sides must always be greater than the third side 
http://www.coolinterview.com/interview/34353/ 

 
- what should the 64-bit integer type on new,64-bit machines be? 
http://www.coolinterview.com/interview/34119/ 

 
- How do you write a function that can reverse a linked-list? 
http://www.coolinterview.com/interview/29426/ 

 
- Define precondition and post-condition to a member function. 
http://www.coolinterview.com/interview/29345/ 

 
- Differentiate between a deep copy and a shallow copy? 
http://www.coolinterview.com/interview/29512/ 

 
- How do I declare an array of N pointers to functions returning pointers to functions returning pointers to characters? 
http://www.coolinterview.com/interview/29390/ 

 
- How do you know that your class needs a virtual destructor? 
http://www.coolinterview.com/interview/29316/ 

 
- How can you tell what shell you are running on UNIX system? 
http://www.coolinterview.com/interview/29452/ 

 
- Define a constructor - What it is and how it might be called (2 methods). 
http://www.coolinterview.com/interview/29524/ 

 
- What is conversion constructor? 
http://www.coolinterview.com/interview/29493/ 

 
- What is an opaque pointer? 
http://www.coolinterview.com/interview/29511/ 

 
- Differentiate persistent & non-persistent objects? 
http://www.coolinterview.com/interview/29502/ 

 
- What does extern mean in a function declaration? 
http://www.coolinterview.com/interview/29391/ 

 
- What is an incomplete type? 
http://www.coolinterview.com/interview/29437/ 

 
- Tell how to check whether a linked list is circular. 
http://www.coolinterview.com/interview/29418/ 

 
- What's the best way to declare and define global variables? 
http://www.coolinterview.com/interview/29428/ 

 
- What are all the implicit member functions of the class? Or what are all the functions which compiler implements for us if we don't define one.?? 
http://www.coolinterview.com/interview/29492/ 

 
- What is a mutable member? 
http://www.coolinterview.com/interview/29525/ 

 
- How can a '::' operator be used as unary operator? 
http://www.coolinterview.com/interview/29505/ 

 
|

|

|

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
FREE GATE EXAM PREPARATION RESOURCES
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=

<*> http://www.onestopgate.com - Complete Resources on GATE Exam (General Aptitude Test of Engineering). Visit now at http://www.onestopgate.com

<*> http://forum.onestopgate.com - GATE Discussion Forum - Share all your experiences and discuss all the queries here at http://forum.onestopgate.com

<*> http://groups.yahoo.com/group/OneStopGATE/join - JOIN ONESTOPGATE GROUP - Join OneStopGATE group now and receive the latest information and preparation material on GATE Exam now! http://groups.yahoo.com/group/OneStopGATE/join



---------------------------------------------------------------



Join http://groups.yahoo.com/group/OneStopGATE/join
  Join http://groups.yahoo.com/group/OneStopGATE/join
    Join http://groups.yahoo.com/group/OneStopGATE/join
      Join http://groups.yahoo.com/group/OneStopGATE/join
        Join http://groups.yahoo.com/group/OneStopGATE/join
      Join http://groups.yahoo.com/group/OneStopGATE/join
    Join http://groups.yahoo.com/group/OneStopGATE/join
  Join http://groups.yahoo.com/group/OneStopGATE/join
Join http://groups.yahoo.com/group/OneStopGATE/join

No comments: