OpenTechBook
  • Home
  • Open Books
    • All Open Books

    • Free eBooks
    • Free Magazines
    • Free Journals

    • Submit an Open Book
  • Quizzes
Home » Quiz » C++ Quiz

The _______ keyword is used to specify a class should not be instantiated directly, but only used as a base class. 

Difficulty level
  • virtual 
  • abstract 
  • sealed 
  • interface
In C++, an "abstract" class is one that cannot be instantiated directly. It is intended to be used as a base class from which other classes are derived, and it may have one or more pure virtual functions.
Add your answer
Loading...
Facebook Twitter Linkedin Reddit Pinterest
C++ Quiz
Quiz
Imagine a scenario where you have to maintain a collection of elements while keeping them sorted after insertions and deletions. Which STL container would be the most efficient choice for this task? 
What is the impact of a function having a default argument? 

Related Quiz

  • What is a potential risk of using recursion? 
  • The memory allocated for a struct is equal to the sum of the memory of its individual members, considering _______. 
  • Your team is developing a C++ application involving several classes with complex interrelationships and data handling. How can abstraction be effectively implemented to simplify the interactions between different class objects and the user? 
  • The _______ statement is used to prematurely exit a switch-case block. 
  • Which access specifier allows a class member to be accessible only within its own class and friends? 

Leave a commentCancel

Your email address will not be published. Required fields are marked *

Hot Quiz

Python QuizPHP QuizServlet QuizData Analyst QuizAppium QuizSpring Boot QuizADO.NET QuizAPI Testing QuizNode.js QuizDatabase Testing QuizAWS Lambda QuizAutomation Testing QuizData Science Statistics QuizWeb Services QuizSoftware Testing QuizC Language QuizR Programming QuizC++ QuizBootstrap QuizAlgorithm Quiz
Copyright © 2024 Open Tech Book
  • About
  • Contact
  • FAQ
  • DMCA
  • Disclaimer
  • Privacy Policy