C interview questions – page 19

2,130 questions. Tap “Show answer” to check yourself.

Advertisement
  1. Under which conditions the default assignment operator is not generated by the compiler for your class? (assuming that you do not declare the assignment operator yourself)

  2. C++ (What are virtual functions) what happened if I do Base *d = new Derived(); and Derived *d = new Base(); is it error(in which statement) or not if yes what type of error?

  3. Example of Polymorphism

  4. Explain how a pointer to function can be declared in C++?

  5. What is unary operator? List out the different operatorsinvolved in the unary operator.

  6. What is the point of making global static functions

  7. Dasda a a da as dasd as das as sd as d as a dasd

  8. Basics of c

  9. A positive integer entered through the keyboard. Write a function to obtain the prime factors of this number.For example : prime factors of 24 are 2,2,2 and 3,null, where as prime factor of 35 are 5

  10. . For the following C program#define AREA(x)(3.14*x*x)main(){float r1=6.25,r2=2.5,a;a=AREA(r1);printf(" Area of the circle is %f", a);a=AREA(r2);printf(" Area of the circle is %f", a);}What is the Output?

  11. Base class has some virtual method and derived class has a method with the same name. If we initialize the base class pointer with derived object,. calling of that virtual method will result in which method being called?

  12. How can I set the background in flash like camera?( black color that some times for a specific time your background becomes white)

  13. Advertisement
  14. Where we use reference and where we use pointers ?Write their differences and advantages and disadvantages .

  15. What is the name of c#.net compiler?

  16. What is mean "Death of Diamod"?

  17. Please tell me all about dos.h and all its functions? how are the functions od dos.h are used ?

  18. Why we using in header file using system and more header file is in C# what is difference between and all header file ?

  19. What is abstraction in c++?

  20. What are the disadvantages of copy constructor??

  21. How to use HASH TABLE,ARRAYLIST in c# explain with example?

  22. What is the difference between composition and inheritance?

  23. Can the structures contain the constructor?If yes, then how?

  24. I was creating a program that has a 2 dimensional array with 25 elements.How can I display the highest row sum?lowest row sum?highest col sum?lowest row sum?

  25. What is the main difference between delegate and an event in c#?

  26. Advertisement
  27. How can we made digital calendar by using c++ class

  28. HOW TO READ TEXT FILE AND READ IT INTO ANOTHER TEXT FILE?

  29. How is memory allocated by new ?a) In a heap b) in a stack b) both a & b c) None of these.

  30. What are the differences between c and c++.what are the advantages the are only in c++ but not in c

  31. What is aggression and association?

  32. What is the real-time example for abstract class and pure virtual function?

Advertisement