OpenTechBook
  • Home
  • Open Books
    • All Open Books

    • Free eBooks
    • Free Magazines
    • Free Journals

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

What is the default access specifier for a base class in C++? 

Difficulty level
  • private 
  • public 
  • protected 
  • internal
In C++, if you don't specify an access specifier for the members of a class, they are implicitly set to private. This means that they can't be accessed or viewed from objects of the class or any derived class unless friends.
Add your answer
Loading...
Facebook Twitter Linkedin Reddit Pinterest
C++ Quiz
Quiz
When passing by reference, changes made to the parameter within the function _______ the original argument. 
Which of the following is a characteristic of an enum in C++? 

Related Quiz

  • What value does a function with return type void return? 
  • Which of the following C++ versions introduced the auto keyword for automatic type deduction? 
  • Which of the following stream classes is suitable for both reading and writing operations? 
  • How does the short-circuit evaluation work in logical operators? 
  • What happens if an exception is thrown but not caught in a C++ program? 

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