C++ Programming Questions Answers - Chapter 1
-
15. Which of the following cannot be inherited from the base class
- Constructor
- Friend
- Both A and B cannot be inherited
- Both A and B can be inherited
Answer And Explanation
Answer: Option C
-
16. cout is declared in the _____ standard file within the std namespace
- outstream
- stdin
- iostream
- None of above
Answer And Explanation
Answer: Option C
-
18. Dereference operator is also called as
- pointer
- Reference operator
- Offset operator
- Deoffset operator
Answer And Explanation
Answer: Option C
-
19. ios::ate is used for
- Set the initial position at the start of the file
- Set the last position at the end of the file
- Set the initial position at the end of the file
- Set the last position at the start of the file
Answer And Explanation
Answer: Option C
-
20. Which class has only one unique value for all the objects of class
- this
- friend
- static
- none of above
Answer And Explanation
Answer: Option C
-
21. Which of the following functions below can be used Allocate space for array in memory
- calloc()
- malloc()
- realloc()
- All of above
Answer And Explanation
Answer: Option A