C++ Programming Questions Answers - Chapter 1
-
8. Reference is like a
- Pointer
- Structure
- Array
- None of above
Answer :
Option A
-
9. Stack unwinding deals with
- deals with polymorphism
- deals with inheritance
- deals with exception handing
- deals with classes
Answer :
Option C
-
10. Default constructor has how many arguments
- 1
- 2
- 3
- 0
Answer :
Option D
-
11. Which of the following functions below can be used Allocate space for array in memory
- calloc()
- malloc()
- realloc()
- All of above
Answer :
Option A
-
12. What is the value of sizeof(char)
- 1
- 2
- 4
- 8
- .5%
- 1%
- 1.5%
- 2%
Answer :
Option F
-
13. Can we overload constructors in C++
- Yes
- No
Answer :
Option A
-
14. Which operator is used to define a member of a class from outside the class definition
- ->
- ::
- .
- >>
Answer :
Option B