Académique Documents
Professionnel Documents
Culture Documents
By www.Coders2020.com
-----------------------------------------------------------------------------------------------------------
Copyright – You are Free to use this document for your personal use as well to
freely redistribute provided you will not edit this book neither change any links to
it. You can take the printouts of this for your personal reference.
-----------------------------------------------------------------------------------------------------------
Topics
© http://www.coders2020.com
2
FAQ on Placements by www.Coders2020.Com
Data Structures
49. Reverse a singly linked list using only one variable? Reverse it using recursion?
50. Given only a pointer to a node to be deleted in a singly linked list, how do you
delete it?
51. How do you sort a linked list? Write a C program to sort a linked list.
52. How would you detect a loop in a linked list? Write a C program to detect a loop
in a linked list
53. How do you find the middle of a linked list?
54. Write a C program to return the nth node from the end of a linked list
55. How to read a singly linked list backwards?
56. Write a C program to find the depth or height of a tree? Find the nodes of the
tree?
57. Write C code to determine if two trees are identical
58. Write a C program to find the minimum value in a binary search tree
59. Write a C program to compute the maximum depth in a tree?
60. Write a C program to create a copy of a tree
© http://www.coders2020.com
3
FAQ on Placements by www.Coders2020.Com
61. What is Preorder, Inorder and Postorder traversal? Print the Tree in all three
orders
62. How many different trees can be constructed using n nodes?
63. Implement Breadth First Search (BFS) and Depth First Search (DFS)
C++
64. What are Objects? What is Class? What is the difference between structure and
Class?
65. What is Data Abstraction and Data encapsulation?
66. State all the class access modifiers and explain each one of them
67. What are Vectors in C++ and how are they used?
68. What are containers in C++? Which objects are available as containers?
69. What are References in C++ and how are they different from Pointers?
70. What is the Exception Handling mechanism in C++? What is Try and Catch in
C++?
71. What is Operator Overloading in C++?
72. What are Friend Functions and Friend Classes in C++?
73. What are Constructors and Destructors in C++?
74. What is Inheritance? How is a Class Inherited in C++?
75. What are Virtual Functions? Why do we need Virtual Functions? Explain with an
example
76. What are Templates in C++? How are Templates declared and used?
77. What is Polymorphism? How is Polymorphism achieved in C++?
78. What is Multiple Inheritance in C++? Explain with an example
79. How is memory allocation and de-allocation done in C++?
80. What is procedural programming?
81. What is Function Overloading in C++?
82. What is the Difference between Overloaded Functions and Overridden Functions?
83. What are Mutable and Const in C++
84. What is ‘this’ Pointer (object) in C++
85. What is Scope Resolution Operator?
86. What is a Pure Virtual Member Function?
87. Explain various access specifies like private, public, protected and there scopes in
C++
88. What is a forward reference in C++?
89. What is the difference between a deep copy and a shallow copy?
© http://www.coders2020.com
4
FAQ on Placements by www.Coders2020.Com
Java
90. What is a class and package in Java? Explain difference between them
91. Explain the differences between interface and class in Java
92. Give differences between early binding and late binding in Java?
93. Explain Memory management of Java and How it is different from say C++
94. Can RuntimeExceptions be caught in Java?
95. Explain Serialization mechanism in Java?
96. What are the names of access control specifiers in Java?
97. What are the differences between C++ and Java?
98. What are the advantages of polymorphism in Java?
99. What is multiple inheritance? Does Java Support Multiple Inheritance or not?
100. What is finalize in Java and it’s importance?
101. What are the difference between Set and List.in Java ?
You can get Answer to all these Java Questions and Many more at
http://www.coders2020.com/java-interview-questions
Final Words – These are only very limited set of questions which we feels are very
important and frequently asked but there are many more similar questions which you may
want to know. For that do check www.coders2020.com .
You are welcome to tell us how did you liked the book and what else can be added in it.
We will create many such books for your references in coming time.
Cheers
© http://www.coders2020.com