Question
Easy
In context of C++, which of the following is valid statement ?
1
Friend function of class is always a member function of that class.
2
Value of static data member cannot be manipulated once assigned.
3
Static data member of a class can be accessed only by static member function of that class.
4
Keywords private, protected and public may appear in any order and any number of times in a class.
Question Details
Time to Solve: 12
Exam: HTET
Level/Paper: Level 3
Chapter: Object-Oriented Programming (C++)
Topic: Advanced Class Concepts
Correct Answer
Option D
Explanation
The correct option is (4): The statement that "Keywords private, protected and public may appear in any order and any number of times in a class" is absolutely valid in C++ programming. These access specifiers serve as labels to divide the class definition into sections, controlling the visibility of the members declared after them until the next specifier or the end of the class is reached. A programmer might need…Read More
Similar Questions from HTET Exam - Level 3 - Year 2020
Question 1
Easy
Source :
HTET 2020
Which key combination shall insert a new slide in current presentation in MS PowerPoint ?
Chapter :
Office Automation Tools
Topic :
Presentation Software (MS Power-Point)
Question 2
Easy
Source :
HTET 2020
Which of the following networks is considered as the first network that initiated the internet ?
Chapter :
Computer Networks & Internet
Topic :
Internet Fundamentals
Question 3
Easy
Source :
HTET 2020
Which of the following is not one of PowerPoint's views?
Chapter :
Office Automation Tools
Topic :
Presentation Software (MS Power-Point)
Question 4
Easy
Source :
HTET 2021
What is used to input text and numerical data in a computer?
Chapter :
Computer System & Hardware Fundamentals
Topic :
Architecture