1. Home
  2. Subjects
  3. Computer Science MCQs

Computer Science MCQs · Page 12

992 multiple choice questions with answers across 24 topics.

Showing 276–300 of 992

What is the purpose of declaring a member function virtual in C++?

  1. To stop derived classes from redefining it
  2. To force the function to be inlined everywhere
  3. To hide the function from other translation units
  4. To allow dispatch at runtime through a base pointer Correct answer
MCQSEXAM Read explanation