Technical Interview Questions- Common
C/C++ Questions
- What is the output of printf("%d")
- What will happen if I say delete this
- Difference between "C structure" and "C++ structure".
- Difference between a "assignment operator" and a "copy constructor"
- What is the difference between "overloading" and "overriding"?
- Explain the need for "Virtual Destructor".
- Can we have "Virtual Constructors"?
- What are the different types of polymorphism?
- What are Virtual Functions? How to implement virtual functions in "C"
- What are the different types of Storage classes?
- What is Namespace?
- What are the types of STL containers?
- Difference between "vector" and "array"?
- How to write a program such that it will delete itself after execution?
- Can we generate a C++ source code from the binary file?
- What are inline functions?
- Talk some timing about profiling?
- How many lines of code you have written for a single program?
- What is “strstream”?
- How to write Multithreaded applications using C++?
- Explain "passing by value", "passing by pointer" and "passing by reference"
- Write any small program that will compile in "C" but not in "C++"
- Have you heard of "mutable" keyword?
- What is a "RTTI"?
- Is there something that I can do in C and not in C++?
- Why pre increment operator is faster than post increment?
- What is the difference between "calloc" and "malloc"?
- What will happen if I allocate memory using "new" and free it using "free" or allocate sing "calloc" and free it using "delete"?
- What is Memory Alignment?
- Explain working of printf.
- Difference between "printf" and "sprintf".
- What is "map" in STL?
- When shall I use Multiple Inheritance?
- What are the techniques you use for debugging?
- How to reduce a final size of executable?
- Give 2 examples of a code optimization.
Java Interview Questions
- Meaning - Abstract classes, abstract methods
- Difference - Java, C++
- Difference between == and equals method
- Explain Java security model
- Explain working of Java Virtual Machine (JVM)
- Difference: Java Beans, Servlets
- Difference: AWT, Swing
- Disadvantages of Java
- What is BYTE Code?
- What gives java its "write once and run anywhere" nature?
- Does Java have "go to"?
- What is the meaning of "final" keyword?
- Can I create final executable from Java?
- Explain Garbage collection mechanism in Java
- Why Java is not 100% pure object oriented language?
- What are interfaces? Or How to support multiple inheritances in Java?
- How to use C++ code in Java Program?
- Difference between "APPLET" and "APPLICATION"
No comments:
Post a Comment