GPH Theory: Your Ultimate Guide to General Topics, News, SEO, and Technology

Welcome to GPH Theory, your go-to source for the latest news, insights, and analysis on general topics, SEO, technology, and more. Our mission is to provide you with the most relevant and up-to-date information to help you stay ahead of the curve. From beginners to experts, we have something for everyone. Join us and start your journey towards digital excellence today.

Top 50 C++ language interview question for freshers

  Bittu      

INTERVIEW QUESTIONS 

1. What is C++?
2. How do you find out if a linked-list has an end? (i.e. the list is not a cycle)
3. What is the difference between realloc() and free()?
4. What is function overloading and operator overloading? 

 5. What is the difference between declaration and definition?
6. What are the advantages of inheritance?
7. How do you write a function that can reverse a linked-list?
8. What do you mean by inline function?
9. Write a program that ask for user input from 5 to 9 then calculate the average
10. Write a short code using C++ to print out all odd number from 1 to 100 using a for loop
11. What is public, protected, private?
12. Write a function that swaps the values of two integers, using int* as the argument type.
13. Tell how to check whether a linked list is circular.
14. What is polymorphism?
15. What is the difference between an ARRAY and a LIST?
16. What is a template?
17. What is the difference between an object and a class?
18. What is a class?
19. What is friend function?
20. Which recursive sorting technique always makes recursive calls to sort subarrays that are about half size of the original array?
21. What are virtual functions?
22. What is the difference between an external iterator and an internal iterator? Describe an advantage of an external iterator.
23. What is a scope resolution operator?
24. What do you mean by pure virtual functions?
25. What is polymorphism? Explain with an example?
26. Why are arrays usually processed with for loop?
27. What is an HTML tag?
28. How do you decide which integer type to use?
29. What’s the best way to declare and define global variables?
30. What does extern mean in a function declaration?
31. What is the difference between char a[] = “string”; and char *p = “string”;?
32. What does extern mean in a function declaration?
33. Explain the scope resolution operator.
34. What is a default constructor?
35. What is the difference between a copy constructor and an overloaded assignment operator?
36. When should you use multiple inheritance?
37. Explain the ISA and HASA class relationships. How would you implement each in a class design?
38. When is a template a better solution than a base class?
39. What is an explicit constructor?
40. What is the Standard Template Library (STL)?
41. In C++, what is the difference between method overloading and method overriding?
42. What are the defining traits of an object-oriented language?
43. What is class invariant?
44. What is a protocol class?
45. What is a parameterized type?
46. What is reflexive association?
47. What are proxy objects?
48. Describe the main characteristics of static functions.
49. How can a '::' operator be used as unary operator? 

50. What is a concrete class?

logoblog

Thanks for reading Top 50 C++ language interview question for freshers

Previous
« Prev Post

No comments:

Post a Comment