Question 117Asked in BPSC TRE 1.0 (2023) Computer Science Class 11-12

Which of the following statements is correct about the C++ programming language?

  1. AIn C++, both the static and dynamic types checking are allowed.
  2. BIn C++, member function are allowed to be of the type const.
  3. CIn C++, dynamic checking is allowed.
  4. DMore than one of the above
  5. ENone of the above
Show answerHide answer

Correct answer: (D) More than one of the above

Explanation

All three statements are true. C++ does static type checking at compile time and dynamic checking with RTTI and dynamic_cast, and member functions can be declared const.

From BPSC TRE 1.0 (2023) Computer Science Class 11-12 — Previous Year Paper

This is question 117 of BPSC TRE 1.0 (2023) Computer Science Class 11-12 — Previous Year Paper. See all questions of this paper with answers, or attempt the paper as a timed online test to get your score and all-India rank.