Question
Easy
By default the members of a class are........
1
Public
2
Private
3
Protected
4
All options are wrong
Question Details
Time to Solve: 12
Exam: HTET
Level/Paper: Level 3
Chapter:
Topic:
Correct Answer
Option B
Explanation
The correct option is (2): In C++, which is the language context for this question, the Private access specifier is the default accessibility for all members—both data variables and member functions—declared within a class definition. This is a deliberate design choice that directly enforces the fundamental Object-Oriented Programming (OOP) principle of encapsulation and data hiding. By default, marking members as private means they are only accessible from within the class's…Read More
Similar Questions from HTET Exam - Level 3 - Year 2016
Question 1
Easy
Source :
HTET 2016
Each string literal is automatically added with a ........... terminating character.
Question 2
Easy
Source :
HTET 2016
.......... mean unification of several otherwise distinct data files with data redundancy among those files partially or wholly eliminated.
Question 3
Easy
Source :
HTET 2016
In a presentation which view is used to enter speaker comments?
Question 4
Easy
Source :
HTET 2016
........... data type specifies an empty set of values.