Question
Easy
In context of C++, which of the following is a valid statement ?
1
Friend function of a class is always member function of that class.
2
Value of static data member cannot be changed once assigned.
3
Keywords private, protected and public may appear in any order and any number of times in a class.
4
Static data member of a class can be accessed only by static member function of that class.
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 C
Explanation
The correct option is (3): Keywords private, protected and public may appear in any order and any number of times in a class. This statement is a correct principle in C++ class design. The access specifiers—private, protected, and public—are used to group class members and define their visibility from outside the class. A programmer is entirely free to organize their class definition by using any of these keywords multiple times…Read More
Similar Questions from HTET Exam - Level 3 - Year 2022
Question 1
Easy
Source :
HTET 2022
Which of the following recurrence relation is related to worst case time complexity of quick sort ?
Chapter :
Software Engineering & Problem Solving
Topic :
Programming Concepts
Question 2
Easy
Source :
HTET 2022
In MS-Office Word, _______ option is used to navigate through structural view of document and _______ option is used to navigate long document through small…
Chapter :
Office Automation Tools
Topic :
Word Processor (MS Word)
Question 3
Easy
Source :
HTET 2022
Which of the following pairs represents types of charts in MS-PowerPoint ?
Chapter :
Office Automation Tools
Topic :
Spreadsheet (MS Excel)
Question 4
Easy
Source :
HTET 2022
Which of the following is not a web-browser?
Chapter :
Computer Networks & Internet
Topic :
Internet Fundamentals