1. Home
  2. MCQs by exam
  3. NTS
  4. Computer Science MCQs

NTS MCQs – Computer Science MCQs · Page 12

455 multiple choice questions typical of the NTS exam, with answers and explanations. Switch on practice mode to test yourself first.

Showing 276–300 of 455

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