C++ Programming Questions Answers - Chapter 1
-
29. Which arithmetic operation can be done in pointer
- Multiplication
- Division
- Addition
- None of above
Answer :
Option C
-
30. What is the meaning of base class in C++
- Another class got inherit from this class
- It inherit other class
- It has a pointer variable
- It is the first class declared
Answer :
Option A
-
31. Constructor is
- A class automatically called whenever a new object of this class is created
- A class automatically called whenever a new object of this class is destroyed
- A function automatically called whenever a new object of this class is created
- A function automatically called whenever a new object of this class is destroyed
Answer :
Option C
-
32. How we define our name for constants
- #constant
- #define
- #define_constant
- #constant_define
Answer :
Option B
-
33. Every class has atleast one construtor
- True
- False
Answer :
Option A
-
34. Which operator is used for comparing two variables
- :=
- =
- =:
- ==
Answer :
Option D
-
35. C++ programs must contain
- start()
- system()
- main()
- program()
Answer :
Option C