12. | Which of the following operators can not be overloaded in C+ + ? |
Discuss |
Answer: (d).::
|
13. | __________allows to create classes which are derived from other classes, so that they automatically include some of its "parent' s" members plus its own members. |
Discuss |
Answer: (b).Inheritance
|
14. | The correct way to round off a floating number x to an integer value is |
Discuss |
Answer: (a).y = (int) (x + 0.5)
|
15. | Which of the following correctly describes overloading of functions ? |
Discuss |
Answer: (c).Ad-hoc polymorphism
|
16. | C++ actually supports the following two complete dynamic systems: |
Discuss |
Answer: (a).One defined by C++ and the other not defined by C
|
17. | Important advantage of using new and delete operators in C++ is |
Discuss |
Answer: (d).Allocation of memory and frees the memory previously allocated
|
18. | When an array is passed as parameter to a function, which of the following statements is correct? |
Discuss |
Answer: (a).The function can change values in the original array.
|
19. | What does the following expression means? char *(*(*a[N]) ()) (); |
Discuss |
Answer: (d).an array of n pointers to function returning pointers to functions returning pointers to characters
|
20. | What will be the output of the following 'C' code? main ( ) { int x = 128; printf("\n%d”, 1 + x ++); } |
Discuss |
Answer: (b).129
|