Submitted by: ELearnersBook Training

C++ programming language is a basic programming language to learn.Freshers who wants a software job faces a lot of questions in job interview.Some basic interview questions are listed below

1. What is the difference between C and C++ ?

2. How do you check whether a linked list is circular?

3.How do you decide which integer type to use?

4.What are the constants? What are the different types of constants in c ?

5 How do you differentiate between a constructor and destructor?

6.What is the difference between Calloc() and Malloc() ?

7.How do you differentiate between aggregation and association?

8.How are pointer variables initialized?

9. How do you find out the size of a class?

10.What is storage class? What are the different storage classes in C?

11.How do you implement an itoa function?

12. How do you initialize a pointer to a function?

13.What the advantages of using Unions?

14.How do you link a C++ program to C functions?

15.Can a Structure contain a Pointer to itself?

16. How do you return a structure from functions?

17.what is the difference between Strings and Arrays?

18.How do you write a function that can reverse a linked-list?

19.What is the difference between syntax vs logical error?

20.What are the benefits of using exceptions in C++?

21.what is a huge pointer?

22.What are volatile variables? Where we should use?

23.What are the differences between a struct and a class in C++?

24.In C, why is the void pointer useful? When would you use it?

25.What are the different types of Storage classes?

26.What are the types of constants in c?

27.What do you mean by inline function?

28.What is a pointer?

[youtube]http://www.youtube.com/watch?v=woiCBcqXAeg[/youtube]

29.What does extern mean in a function declaration?

30.what is qualifiers?

31.What does extern mean in a function declaration?

32.What is the difference between arrays and pointers?

33.What does it mean to declare a function or variable as static?

What are the uses of a pointer?

34.What is a conversion constructor?

35.What is the purpose of main() function?

36.What is a copy constructor?

37.What are the different storage classes in C?

38.What is a namespace?

39.What is a structure?

40.What is a pure virtual function?

41.What does the keyword const mean? What do the following declarations mean?

42.What is a scope resolution operator?

43.What is a macro?

44.What is abstraction?

45.What is arrays?

46.What is Storage class? Explain with example

47.What is the difference between #include and #include ?

48.What is difference between #define and const?

49.What are the advantages of the functions?

50.What is difference between function overloading and overriding?

51.How do declare an array?

52.What is encapsulation?

53.Can a parameter be both const and volatile ? Explain.

54.What is function overloading?

55.What is static identifier?

56.What is multiple inheritance?

57.What is the difference between an Array and a List?

58.What is operator overloading?

59.Can a pointer be volatile ? Explain.

60.What is partial specialization or template specialization?

61.What is the invalid pointer arithmetic?

62.What is polymorphism?

63.What are Dangling pointers and Wild Pointers

64.What is the difference between passing by value and passing by reference ?

65.What is a pointer variable?

66.What is the difference between an object and a class?

67.What is the difference between a string copy (strcpy) and a memory copy (memcpy)?

68.What is the difference between declaration and definition?

69.What is the difference between a NULL Pointer and a NULL Macro?

70. What is the difference between declaration and definition?

71.What is the purpose of realloc()?

72. What is the difference between delete and delete[]?

73.When should unions be used? Why do we need them in Embedded Systems programming?

74.What is the difference between inner class and abstract class?

75.what is a pointer value and address?

76.What is the difference between persistent & non-persistent objects?

77.what is Data Alignment & Structure Padding

78.What is the difference between structure and union?

79.What is recursion?

80.What is the difference between the deep copy and shallow copy?

81.Advantages of a macro over a function?

82.What is the difference between the private public and protected members?

83.What are the characteristics of arrays in C?

84.What is the maximum size that an array can hold?

85.Difference between const char* p and char const* p

86.What is the most efficient way to reverse a linked-list?

87.What is the differentiate between for loop and a while loop? What are it uses?

88.What is preincrement and post increment?

89.What is the size of an empty class?

90.What is the difference between printf(…) and sprintf(…)?

91.What is the use of virtual destructor?

92.Can a variable be both const and volatile?

93.What is virtual class and friend class?

94.What is the difference between malloc and calloc?

95.What is the difference between the functions memmove() and memcpy()?

96.what is a stream?

97.What is meant by file opening?

98.what is a file pointer?

99.what are the advantages of using array of pointers to string instead of an array of strings?

100.what are the pointer declarations used in C?

101.What s the best way to declare and define global variables?

102.How are pointer variables initialized?

103. Where is memory for class-object allocated?

104.What is null pointer?

105. Where is memory for struct allocated?

106.When should a type cast not be used?

107.Why an array always starts with index zero in C++?

eLearnersBook

www.embeddedsiliconnetwork.com

Near ITER College square

Bhubaneswa

About the Author: eLearnersBook

embeddedsiliconnetwork.com

Near ITER College squareBhubaneswar

Source:

isnare.com

Permanent Link:

isnare.com/?aid=1876948&ca=Finances