C++ Cloud

string c, c string, memset, vector c, c tutorial c vector, cplusplus, fopenc, array pointers, pointer, constructor,  c function, pointer, placement new, c, constructor, private inheritance ,newline c, inheritance, string c, define c, string c, strings, vector c, c map, c vector, c data, types ascii ,chart,  learn C, C tutorial, learning c, how to learn C, copy constructor, c string, strcmp, c tutorial, c programming, c code, c string, c tutorial, programming in c  c example code, html to pdf, c code examples, c code C++ interview questions.

1.How do you check whether a linked list is circular?
2.How do you decide which integer type to use?
3.How do you differentiate between a constructor and destructor?
4.How do you differentiate between aggregation and association?
5.How do you find out the size of a class?
6.How do you implement an itoa function?
7.How do you initialize a pointer to a function?
8.How do you link a C++ program to C functions?
9.How do you return a structure from functions?
10.How do you write a function that can reverse a linked-list?
11.What are the benefits of using exceptions in C++?
12.What are the differences between a struct and a class in C++?
13.What are the different types of Storage classes?
14.What do you mean by inline function?
15.What does extern mean in a function declaration?
16.What does extern mean in a function declaration?
17.What does it mean to declare a function or variable as static?
18.What is a conversion constructor?
19.What is a copy constructor?
20.What is a namespace?
21.What is a pure virtual function?
22.What is a scope resolution operator?
23.What is abstraction?
24.What is difference between #define and const?
25.What is difference between function overloading and overriding?
26.What is encapsulation?
27.What is function overloading?
28.What is multiple inheritance?
29.What is operator overloading?
30.What is partial specialization or template specialization?
31.What is polymorphism?
32.What is the difference between “passing by value” and “passing by reference”?
33.What is the difference between an object and a class?
34.What is the difference between declaration and definition?
35.What is the difference between declaration and definition?
36.What is the difference between delete and delete[]?
37.What is the difference between inner class and abstract class?
38.What is the difference between persistent & non-persistent objects?
39.What is the difference between structure and union?
40.What is the difference between the deep copy and shallow copy?
41.What is the difference between the private public and protected members?
42.What is the maximum size that an array can hold?
43.What is the most efficient way to reverse a linked-list?
44.What is the size of an empty class?
45.What is the use of virtual destructor?
46.What is virtual class and friend class?
47.What’s the best way to declare and define global variables?
48.Where is memory for class-object allocated?
49.Where is memory for struct allocated?
50.Why an array always starts with index zero in C++?
51.How do you decide which integer type to use?
52.What should the 64-bit integer type on new, 64-bit machines be?
53.What’s the best way to declare and define global variables?
54.What does extern mean in a function declaration?
55.What’s the auto keyword good for?
56.I can’t seem to define a linked list node which contains a pointer to itself.
57.How do I declare an array of N pointers to functions returning pointers to functions returning pointers to characters?
58.How can I declare a function that returns a pointer to a function of its own type?
59.My compiler is complaining about an invalid redeclaration of a function, but I only define it once and call it once. What’s happening?
60.What can I safely assume about the initial values of variables which are not explicitly initialized?
61.Why can’t I initialize a local array with a string?
62.What is the difference between char a[] = “string”; and char *p = “string”; ?
63.How do I initialize a pointer to a function?

References:
http://www.allinterview.com/
http://www.coolinterview.com/
http://www.techinterviews.com/

Few more C++ Interview questions and answers

1 comment:

  1. C++ Cloud
    string c, c string, memset, vector c, c tutorial c vector, cplusplus, fopenc, array pointers, pointer, constructor, c function, pointer, placement new, c, constructor, private inheritance ,newline c, inheritance, string c, define c, string c, strings, vector c, c map, c vector, c data, types ascii ,chart, learn C, C tutorial, learning c, how to learn C, copy constructor, c string, strcmp, c tutorial, c programming, c code, c string, c tutorial, programming in c c example code, html to pdf, c code examples, c code C++ interview questions.

    ReplyDelete