C interview questions – page 7
2,130 questions. Tap “Show answer” to check yourself.
-
What is the Difference between "C structure" and "C++ structure"?
-
What is the Diffrence between a "assignment operator" and a "copy constructor"?
-
What is the difference between "overloading" and "overridding"?
-
Explain the need for "Virtual Destructor"?
-
what is the behaviour of C and C++ compiler for the below statements. int *p; p = malloc(100); Is the behaviour same ? or different ?
-
Find out the bug in this code,because of that this code will not compile....... #include #include #include using namespace std; class balance { double cur_bal; char name[80]; public: balance(double n, char *s) { cur_bal = n; strcpy(name, s); } ~balance() { cout Impetus,
-
what is meaning of isa and hsa
-
What is the output of printf("%d")?
-
How is an Abstract Base Class(ABC) related to an "Abstract Data Type" (ADT)
-
In a class only declaration of the function is there but defintion is not there then what is that function?
-
How do I open binary files?
-
catch(exception &e) { . . . } Referring to the sample code above, which one of the following lines of code produces a written description of the type of exception that "e" refers to? a) cout
- Advertisement
-
int f() { int I = 12; int &r = I; r += r / 4; int *p = &r; *p += r; return I; } Referring to the sample code above, what is the return value of the function "f()"? a) 12 b) 15 c) 24 d) 17 e) 30
-
what is the diff b/n c and c++ a. dynamic scoping b. nested switching c. declaration of variables in any code block d. separation of compilation and linking
-
What is "mutable" keyword?
-
What is a "RTTI"?
-
Is there something that we can do in C and not in C++?
-
What is "strstream" ?
-
Explain "passing by value", "passing by pointer" and "passing by reference" ?
-
How to write a program such that it will delete itself after exectution?
-
What is the Difference between "vector" and "array"?
-
What are Virtual Functions? How to implement virtual functions in "C" ?
-
Can you explain the term "resource acquisition is initialization?"
-
Explain the ISA and HASA class relationships. How would you implement each in a class design?
- Advertisement
-
1. What does the following do: void afunction(int *x) { x=new int; *x=12; } int main() { int v=10; afunction(&v); cout
-
How long does this loop run: for(int x=0; x=3; x++) a) Never b) Three times c) Forever
-
Why is it difficult to store linked list in an array?
-
What is Pure Virtual Function? Why and when it is used ?
-
How do you know that your class needs a virtual destructor?
-
Why do C++ compilers need name mangling?