C++ Programming Questions Answers - Set 2
-
57. What is object in C++ ?
- Object is part of syntax of a class.
- Object is datatype of a class.
- Object is an instance of a class.
- Object is function of a class.
Answer :
Option C
-
58. What is default scope for a structure ?
- Private
- Protected
- Public
- None of aobve
Answer :
Option C
-
59. Destructors are called ?
- not defined
- in any order
- in the reverse order of constructor calls
- in the same order of constructor calls
Answer :
Option C
-
60. When one class inherits from the base class, then the original class is called ?
- derived class
- base class
- sub class
- basic class
Answer :
Option B
-
61. << operator is ?
- stream extraction operator
- stream insertion operator
- left shift operator
- right shift operator
Answer :
Option B
-
62. Stacks are based on ?
- FIFO
- LIFO
- FILO
- All of above
Answer :
Option B
-
63. int *ptr[5];
- a pointer of 5 int elements
- an array of 5 int pointers
- an array of 5 elements returning an int value
- none of above
Answer :
Option B