Question 99Asked in BPSC TRE 2.0 (2023) Computer Science Class 11-12

In C++, what does a class hold?

  1. AArray
  2. BData
  3. CData and functions
  4. DMore than one of the above
  5. ENone of the above
Show answerHide answer

Correct answer: (C) Data and functions

Explanation

A C++ class bundles data members and member functions together into one unit, which is encapsulation.

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

This is question 99 of BPSC TRE 2.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.