Question
Easy
In C++, which of the following is not a valid access specifier ?
1
private
2
public
3
protected
4
mutable
Question Details
Time to Solve: 12
Exam: HTET
Level/Paper: Level 3
Chapter: Object-Oriented Programming (C++)
Topic: Class & Object in C++
Correct Answer
Option D
Explanation
The correct option is (4): The keyword mutable is not an access specifier in C++; rather, it is a storage class specifier with a specific, unrelated purpose. Access specifiers—which are limited to private, public, and protected—are primarily used to enforce encapsulation and define the accessibility boundaries of a class’s members (data and methods) to the rest of the program. Mutable, by contrast, is used exclusively to permit a specific non-static…Read More
Similar Questions from HTET Exam - Level 3 - Year 2019
Question 1
Easy
Source :
HTET 2019
In context of C++, which of the following is invalid statement?
Chapter :
Object-Oriented Programming (C++)
Topic :
Class & Object in C++
Question 2
Easy
Source :
HTET 2019
OSI stands for:
Chapter :
Computer Networks & Internet
Topic :
Computer Network
Question 3
Easy
Source :
HTET 2019
Consider the following SQL query to retrieve ecode of employees from EMPLOYEE table, whose address contains 'INDIA': SELECT ecode FROM EMPLOYEE WHERE _______; Which of…
Chapter :
Database Management System (DBMS) & SQL
Topic :
SQL
Question 4
Easy
Source :
HTET 2020
In MS Excel, creating resulting 'what-if conditions based on several uncertain future conditions is called:
Chapter :
Office Automation Tools
Topic :
Spreadsheet (MS Excel)